> ## Documentation Index
> Fetch the complete documentation index at: https://docs.cloudcapital.co/llms.txt
> Use this file to discover all available pages before exploring further.

# Integrate LiteLLM

> Connect modelled spend from a LiteLLM proxy with a restricted viewer key.

<Info>
  LiteLLM support is flag-gated. Ask your Cloud Capital Customer Success Manager to enable it for
  your organization.
</Info>

Cloud Capital reads daily activity from your LiteLLM proxy and imports spend by team or user,
upstream provider, model, and key alias. LiteLLM spend is modelled at list price unless your proxy
defines custom pricing. The key is used only to read cost activity.

<Warning>
  Connect either LiteLLM or the upstream OpenAI or Anthropic billing integration for the same
  traffic. Cloud Capital preserves every source and does not deduplicate overlapping rows.
</Warning>

### Requirements

* A publicly reachable HTTPS LiteLLM base URL on port 443. Private, loopback, link-local, local DNS
  names, redirects, and other non-global destinations are refused.
* A `proxy_admin_viewer` key restricted from inference. Configure
  `models: ["no-default-models"]` or `max_budget: 0`.

### Setup

<Steps>
  <Step title="Create a restricted viewer key">
    Create a LiteLLM `proxy_admin_viewer` key and restrict it from inference. Cloud Capital calls
    only `GET /team/daily/activity`.
  </Step>

  <Step title="Create the integration">
    Choose **LiteLLM**, enter the public base URL and viewer key, then select **Test Connection**.
    The test makes the same guarded daily-activity read as the nightly loader.
  </Step>

  <Step title="Enable and save">
    After a successful test, set the integration to **Enabled** and save it. Daily ingestion runs
    on the shared vendor-billing runtime.
  </Step>
</Steps>

LiteLLM spend does not appear in Cost Insights or forecasts yet. The integration loads and
aggregates daily LiteLLM spend.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.