Tracking OpenRouter Costs by Company

Last updated February 8, 2026

Tracking OpenRouter Costs by Company

OpenRouter's API key model is ideal for per-company cost tracking. Each API key is tracked separately, making it easy to attribute costs.

How It Works

OpenRouter treats each API key as a project. When you create multiple keys:

  • Each key has its own usage tracking
  • Costs are reported per key
  • You can set credit limits per key

Administrate.dev shows each key as a "project" that you can assign to a company.

Best Practice: One Key Per Company

For accurate cost tracking:

  1. Create an API key in OpenRouter for each company
  2. Name the key after the company (e.g., "acme-production")
  3. Connect OpenRouter to Administrate.dev (see Setting Up OpenRouter)
  4. Assign each key to the corresponding company

Setting Up Company Tracking

Step 1: Create API Keys in OpenRouter

  1. Go to OpenRouter API Keys
  2. Click Create Key
  3. Name it after the company (e.g., "acme-corp-production")
  4. Set a credit limit if desired (optional but recommended)
  5. Click Create
  6. Repeat for each company

Tip: Set credit limits to prevent runaway costs. You can always increase them later.

Step 2: Connect to Administrate.dev

  1. Go to LLM Providers
  2. Click Add Provider
  3. Select OpenRouter
  4. Enter any of your OpenRouter keys (it will discover all keys)
  5. Click Connect Provider

Step 3: Assign Keys to Companies

  1. Click your OpenRouter provider
  2. In the Projects section, you'll see all your API keys
  3. Click the company dropdown for each key
  4. Select the appropriate company

Understanding OpenRouter Costs

OpenRouter reports costs in rolling windows:

Date Range Selected Cost Shown
1 day Daily rolling (last 24h)
2-7 days Weekly rolling (last 7 days)
8+ days Monthly rolling (last 30 days)

Lifetime costs show all-time spending per key.

Setting Credit Limits

Protect against unexpected costs:

  1. In OpenRouter, edit each API key
  2. Set a Credit Limit (e.g., $100/month)
  3. Keys stop working when the limit is reached

This acts as a safeguard even before Administrate.dev budget alerts trigger.

Related

Still need help?

Can't find what you're looking for? Get in touch with our support team.