Skip to main content
See which agent is driving LLM costs by tagging every request with that agent’s name.
1

Set X-Toolken-Metadata-Agent to your agent's name

Add X-Toolken-Metadata-Agent to every request the agent makes. Use the agent’s name as the value. The gateway records that value against every token used on the call.
Pick a short, stable agent name and use it consistently so dashboard groupings stay readable over time.
2

Open the dashboard and group by Agent

Go to the cost view in the dashboard. Use the “Group by” control to select Agent. Each agent name appears as its own row with cost, token count, and request volume.
Dashboard showing cost broken down by feature
If the same agent uses different providers depending on the task, the dashboard already splits that for you. Group by both Agent and Provider (or Model) to see the breakdown. No extra headers needed.
Add X-Toolken-Metadata-Customer-Id alongside X-Toolken-Metadata-Agent on the same request. The dashboard can then show cost per agent per customer, or cost per customer per agent, depending on how you group.

Next

Per-Customer Cost

Attribute spend to individual end-customers.

Compare Providers by Cost

See what the same workload costs across different providers.