TokenID documentation
Capture, audit, and control every AI API call across your stack.
TokenID wraps your existing Anthropic, OpenAI, and xAI clients with one line of code. Every request is captured — cost, tokens, model, session, tool calls — and surfaced in your dashboard in real time. No infrastructure, no migrations, no changes to your logic.
Quickstart
Install the SDK and send your first captured call in under five minutes.
Connect a providerAnthropic, OpenAI, and xAI / Grok all supported out of the box.
EnforcementBlock runaway spend before it happens with pre-call enforcement rules.
API referenceFull REST API for programmatic access to all data and configuration.
How it works
- Install the SDK```bash pip install --extra-index-url https://tokenid:@pypi.token.audit.id/simple/ tokenid ```
- Swap in the wrapperReplace your existing SDK client with the journaled equivalent. Your code stays the same. ```python from tokenid import JournaledAnthropic client = JournaledAnthropic(api_key="sk-ant-…", session_id="my-session") ```
- See your dataOpen your [dashboard](https://token.audit.id/app). Usage, cost, violations, and enforcement all update in real time.