1
Tag every request with a customer identifier
Pass your customer’s identifier as a metadata key using
X-Toolken-Metadata-Customer-Id. The header suffix maps directly to the customer_id metadata key in the dashboard. Use whatever ID you already have — a user ID, an org slug, or an account number.2
Open the dashboard and group by Customer
Go to the cost view in the dashboard. Use the “Group by” control to select Customer. Each customer ID appears as a row showing cost, token usage, and request count.

Set customer via metadata (precedence)
Set customer via metadata (precedence)
You can set the customer dimension in more than one way on the same request. If you send multiple, the highest-priority one wins:
Pick one method and stay consistent. The priority only matters when you accidentally set it multiple ways.
Cost per customer per agent
Cost per customer per agent
Add Group by Customer then by Agent in the dashboard to see the breakdown.
X-Toolken-Metadata-Agent alongside X-Toolken-Metadata-Customer-Id to get a two-dimensional view. You can then answer questions like “how much did cust_acme spend on the report-generator agent this month?”.Next
Cost Per Agent
Break down spend by agent or workflow.
Cost by Environment
Separate production and staging spend.