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.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.

Split one agent across providers
Split one agent across providers
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.
Combine with customer attribution
Combine with customer attribution
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.