Connect a provider
Add your AI provider credentials so TokenID can pull billing data for reconciliation.
TokenID captures usage via the SDK wrapper automatically. To enable billing reconciliation — comparing what your providers invoiced against what your code actually used — you also need to connect your provider accounts from the dashboard.
Go to token.audit.id/app/connections.
Anthropic
You need an Anthropic Admin API key with read access to usage data.
- Go to console.anthropic.com → Settings → API Keys.
- Create a key with Usage Read scope.
- In TokenID, click Add connection → Anthropic and paste the key.
OpenAI
- Go to platform.openai.com → API Keys.
- Create a key with Usage Read permissions.
- In TokenID, click Add connection → OpenAI and paste the key.
xAI / Grok
- Go to console.x.ai → API Keys.
- Create a read-only usage key.
- In TokenID, click Add connection → xAI and paste the key.
Google Gemini
Gemini usage is captured automatically whenever you use the JournaledGemini
SDK wrapper — there is no separate connection to set up. The wrapper writes every
generate_content call to the events ledger with full token counts and cost.
Azure OpenAI
Azure OpenAI billing reconciliation pulls daily cost data from the Azure Cost Management API using an Azure AD service principal.
- In the Azure portal, go to Microsoft Entra ID → App registrations → New registration. Note the resulting
tenant_idandclient_id. - On the target subscription, go to Access control (IAM) → Add role assignment and grant the new app the Cost Management Reader role.
- In the app registration, go to Certificates & secrets → New client secret. Note the secret value — it is shown only once.
- In TokenID, click Add connection → Azure OpenAI and provide
tenant_id,client_id,client_secret, andsubscription_id.