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 standardinput_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)