Documentation

Get started in two minutes

Install Tokeven, make a call, and see your first cost data. Your prompt content never reaches Tokeven — only metadata.

Quickstart

1Install the wrapper
pip install tokeven
2Connect to Tokeven
from anthropic import Anthropic
from tokeven import connect

client = Anthropic()
tracked = connect(client, ingest_token="tkv_ing_...")
3Use it exactly as before
response = tracked.messages.create(
    model="claude-sonnet-4-6",
    max_tokens=1024,
    messages=[{"role": "user", "content": "Hello"}]
)
# Cost, tokens, and model tracked automatically

Browse the docs

Getting Started

Install, configure, and make your first tracked call

SDK Reference

Python wrapper API, configuration options, and advanced usage

Dashboards

Seven real-time dashboards for cost, models, tokens, patterns, drivers, and skills

Integrations

Connect Tokeven to your existing tools and workflows

API Reference

REST API for ingest, analytics, and export

Guides

Best practices for cost optimization and team rollout