Skip to main content
Tokonomics proxies your Anthropic requests without modifying them. You point the Anthropic SDK at https://tokonomics.ca/proxy/anthropic, pass your Tokonomics key as a bearer token, and every Claude call is metered and attributed automatically. Your prompts, message format, and streaming behaviour are unchanged.

The URL change

Replace the Anthropic base URL with your Tokonomics proxy URL. Everything else — your API key, your request bodies, your headers — stays the same. A messages request is forwarded to:

Cache token tracking

Tokonomics automatically captures Anthropic’s prompt caching token fields from every response. Alongside standard input_tokens and output_tokens, your usage records include:
  • cache_read_tokens — tokens served from the prompt cache (billed at the reduced cache-read rate)
  • cache_creation_tokens — tokens written into the prompt cache (billed at the cache-write rate)
You can view cache savings on the Usage dashboard. No additional configuration is needed — Tokonomics reads these fields from every response that includes them.
Tagging works the same as OpenAI. Add an X-Metering-Tags header to any request — for example, {"team":"platform","feature":"document-qa"} — to attribute costs to teams or features. See Tagging for details.