OpenRouter
Antenna automatically tracks AI usage from OpenRouter by pulling data from OpenRouter’s analytics API. You get insight into spend, tokens, and requests by person, by model, and by the app that routed each request.
Because OpenRouter reports the routing app, any client that runs through your OpenRouter account shows up without a separate integration for each tool — coding agents such as Cline and Kilo Code, CLI agents, and in-house tools that call the API directly.
Setup
- Create an OpenRouter management key (see Creating a management key below).
- In Antenna, go to Settings > Sources > Add source.
- Find OpenRouter and click Connect.
- Paste your management key.
- Click Connect.
Antenna validates the key when you connect and encrypts it at rest. Usage refreshes every two hours, and Antenna backfills up to 19 months of daily history so year-over-year comparisons are available.
Creating a management key
This integration uses the OpenRouter management API. Regular inference keys cannot read analytics, so a management key is required.
- Create one on the Management API Keys page in your OpenRouter organization settings.
- Management keys authenticate with
Authorization: Bearer <key>, the same as inference keys. - For details on key types and endpoints, see the OpenRouter API reference .
If the key is revoked or loses access, Antenna flags the source and stops collecting until you paste a new key on the source’s Edit Management Key page.
Data collected
We pull from the OpenRouter management API:
| Purpose | Endpoint |
|---|---|
| Available metrics and dimensions | GET /analytics/meta |
| Daily usage by user, model, app, and API key | POST /analytics/query |
| Organization members | GET /organization/members |
| Organization API keys | GET /keys |
Each analytics query covers a single UTC day and returns spend in USD, request counts, and prompt, completion, reasoning, and total token counts. Antenna runs three daily queries — user by model, user by app, and API key by model — because OpenRouter allows at most two dimensions per query.
We use the organization members response to sync your OpenRouter organization and match usage to identities. Usage from organization API keys has no user attached, so Antenna attributes it to the key instead of dropping it. Antenna does not collect prompts or completions.