1
Set X-Toolken-Metadata-Environment on every request
Add
X-Toolken-Metadata-Environment to your requests. The value is any string, but production and staging are the most useful conventions.2
Open the dashboard and filter or group by Environment
Go to the cost view. Use the filter to show only
production or only staging. Or group by Environment to see both side by side with their totals.Combine environment with feature
Combine environment with feature
Layer Group by Feature and filter to
X-Toolken-Metadata-Feature and X-Toolken-Metadata-Environment to get a full picture: how much did each agent cost, split by environment?production to see production-only cost per agent.Track per session
Track per session
Add The
X-Toolken-Metadata-Session-Id to group all the LLM calls in a single user session. Combine with environment to separate session costs by deployment:X-Toolken-Metadata-* convention maps any header suffix to a metadata key. X-Toolken-Metadata-Session-Id becomes the session_id dimension in the dashboard.Next
Per-Customer Cost
Attribute spend to individual end-customers.
Compare Providers by Cost
See what the same workload costs across providers.