Connecting LLM Providers
Administrate.dev can track your AI spending by connecting directly to LLM provider APIs.
Supported Providers
| Provider | What's Tracked | Company Attribution |
|---|---|---|
| OpenAI | Projects, usage, costs | Via OpenAI Projects |
| Anthropic | Usage and costs | Via Default Company |
| OpenRouter | Projects, usage, costs via API keys | Via API Keys |
| Azure AI | All Azure costs by Resource Group | Via Resource Groups |
Prerequisites
- An account with the LLM provider
- An API key with billing/usage access
- For some providers, an Organization ID
Adding a Provider
- Go to LLM Providers in the sidebar
- Click Add Provider
- Select the provider type
- Enter your credentials:
- Name - A descriptive name (e.g., "OpenAI Production")
- API Key - Your provider API key
- Organization ID - If required by the provider
- Default Company - Which company to attribute costs to
- Click Create Provider

API Key Validation
When you add a provider, we immediately:
- Validate the API key works
- Sync any projects/API keys
- Pull recent usage data
If validation fails, you'll see an error explaining what's wrong.
Default Company Assignment
When you set a Default Company, any usage that isn't explicitly assigned to a project will be attributed to that company.
This is useful when:
- You have one API key per company
- You want a catch-all for unassigned costs
Initial Sync
After adding a provider, data syncs automatically. The first sync may take a few minutes depending on how much historical data exists.
Supported Features by Provider
| Feature | OpenAI | Anthropic | OpenRouter | Azure |
|---|---|---|---|---|
| Projects | Yes (OpenAI Projects) | No | Yes (API Keys) | Yes (Resource Groups) |
| Per-company costs | Yes | Via separate accounts | Yes | Yes |
| Model breakdown | Yes | Yes | Yes | Yes (Meter Categories) |
| Daily trends | Yes | Yes | Yes | Yes |