Skip to main content
The only change to your code is the base URL. No SDK swap, no redeploy.
1

Get your keys

You need two keys:Toolken forwards your provider key untouched and never stores it.
2

Make a request

Set the base URL, add X-Toolken-Key, and tag the call with a metadata header.
X-Toolken-Metadata-Agent takes any string. Use one per agent, tool, or workflow you want costs for. Any X-Toolken-Metadata-* header becomes a groupable dimension in the dashboard.
Toolken reads and strips its own X-Toolken-* headers before forwarding the request. Your provider auth is left completely untouched. For OpenAI-compatible providers, your key travels in Authorization: Bearer. For the Anthropic SDK, set the base URL to https://gateway.toolken.ai and the SDK appends /v1/messages automatically.
The response body is identical to calling the provider directly. Toolken is a transparent proxy.
3

See your cost

Within seconds your request appears, grouped by the research-agent agent tag.
Tagged request cost in the Toolken dashboard

What’s next

Cost Attribution

Slice spend by agent, feature, and customer.

Rate Limits

Request-rate and concurrent-stream limits enforced at the edge.