Skip to main content
Open an agent’s Metrics tab, or Metrics in the console’s sidebar for every agent. Choose the time window at the top of the chart. agent/instrumentation/jaccard.ts sends these counts, so keep it in your project. The CLI has no metrics command yet.

When the platform routes your model calls

The platform can send an agent’s model calls through its model router. For an agent that calls all its models through the router, the router counts model calls and tokens, not the agent. Sessions, turns and tool calls still come from agent/instrumentation/jaccard.ts. The console’s Metrics tab lists the figures the router adds, and Failed model calls says what the failed count includes. The router’s counts have these limits:
  • Tokens: input and output tokens show separately, with no total. Input tokens include the tokens written to the provider’s prompt cache, which Anthropic reports apart from its input tokens.
  • Latency: the figures are means, not percentiles.
  • Model names: a call isn’t counted when the model name in its request or response is longer than 64 characters, or has a character other than letters, digits and _, ., :, /, @, -.
  • Other providers: the platform knows only the providers whose keys it stores: Anthropic, OpenAI and OpenRouter. If the agent also calls another provider, the counts leave those calls out.
  • Time before routing: the console takes model calls and tokens from one source for the whole window, chosen by how the agent is routed now. A window that starts before the agent was routed leaves out the earlier calls.
Last modified on November 23, 2026