LLM Gateway
Knowledge base

Agents Monitoring

Track cost, tokens, and sessions for every coding agent in a project

The Agents page groups your project's gateway traffic by the coding agent that produced it — Claude Code, Cursor, OpenCode, Cline, Codex, DevPass Code and others — so you can see which tool is spending your credits and drill into the individual sessions behind the numbers.

Agents Monitoring

Agents are identified by the x-source header their requests send. Anything that doesn't match a known agent stays out of this view — use Activity for the full request log.

Filtering the view

Three controls sit above the cards and all are stored in the URL, so a filtered view can be bookmarked or shared:

ControlOptionsDefault
Time range1h, 4h, 24h, 7d, 30d7d
Usage modeAll, Credits, BYOKAll
Group byAgents, ModelsAgents

Credits shows only traffic billed against your credit balance, BYOK only traffic served by your own provider keys. The summary on the right of the row totals the agents (or models), requests, and spend currently in view.

Agent Cards

Each agent that was active in the selected period gets a card:

FieldDescription
NameThe agent, matched from its request source
Total costSpend for this agent in the period
RequestsNumber of API requests
TokensPrompt and completion tokens combined
Last activeWhen the agent last sent a request
ModelsThe agent's top models by share of spend

Click a card to open its detail view, or click a model on it to open the detail view filtered to that model.

Models View

Agents grouped by model

Group by → Models turns the page around: each card is a model, regardless of the provider that served it, with the agents that used it ranked by share of spend. Click an agent to open its detail view filtered to that model.

Agent Detail

Agent Detail

A Models panel lists every model the agent used in the period with its requests, spend, and share. Click a model to show only its sessions; click it again, or clear the filter chip, to show all of them.

The detail view splits the agent's requests into sessions — consecutive requests with less than a 30-minute gap between them. Each session row shows its time range, request count, total tokens, duration, and cost. Expand a session to see the individual requests with their response previews, model, cache status, tokens, cost, and source.

Sessions load as you scroll; Load more sessions fetches the next page manually.

Exporting to CSV

Export CSV downloads every request in the selected period — not just the sessions currently loaded — for the agent you are viewing, narrowed to the selected model when a model filter is active. Use it to reconcile agent spend against your own reporting.

For the DevPass equivalent of this page, see Coding Agents.

How is this guide?

Last updated on

On this page

Ready for production?

Ship to production with SSO, audit logs, spend controls, and guardrails your security team will approve.

Explore Enterprise