The split exists so that an agent runaway on AI tokens doesn’t drain the wallet you use for data lookups, and vice versa. Both wallets are organization-scoped: every workspace in the org draws from the same balance.
Data credits
Data credits are deducted on every successful API request to/v1/data/*, /v1/connections/*, /v1/db/*, and webhook-event consumption.
1
Make a request
The endpoint has a base cost in cents. Each request consumes that amount, possibly discounted by your plan tier.
2
Plan discount applies
If you hold an active credit package, the discount lowers the effective cost.
3
Wallets drain in order
Subscription allowance first, then purchased balance, then trial credits. The response tells you how much of each is left.
AI credits
AI credits fund Anthropic model calls for deployed agents — every turn the agent takes, every cache read/write, and the managed-runtime compute time. The wallet is debited per session: each session writes one or moreagent_compute_usage rows that aggregate token + runtime cost and deduct against the AI balance.
What’s billed to the AI wallet:
- Input tokens sent to the model
- Output tokens generated by the model
- Cache reads and cache writes
- Managed-agent runtime usage
- Any other model I/O Anthropic charges for the agent run
Checking your balance
From the dashboard
The Billing page shows both wallets — subscription allowance, purchased balance, and any trial credits still available — with a usage chart on top.From the API
agnt_credits_balance as an MCP tool to check before doing something expensive.
Buying credits
Add to either wallet from the dashboard:- Open Billing.
- Choose Buy data credits or Buy AI credits.
- Pick an amount and complete Stripe checkout.
- Credits land in the chosen wallet immediately.
Auto-reload
Auto-reload tops a wallet up automatically when the balance drops below a threshold. The wallets are configured independently — you can enable auto-reload on data credits and leave AI credits manual, or vice versa.
Auto-reload requires a saved payment method on the org. The dashboard’s Billing tab walks through the Stripe setup intent flow.
Subscription vs. purchased vs. trial
Across all sources, drain order is: subscription → purchased → trial.
Workspace credit sharing
Credits live at the organization level, not on individual workspaces or users:- Every API key in any workspace in the org draws from the same wallets.
- Members see the same balance regardless of which workspace they’re viewing.
- The Billing tab is identical across workspaces in the same org.
Insufficient credits
When the data wallet is empty, billable API calls return:Next steps
Usage
Per-call drill-down on data credit consumption and per-session AI credit burn.
Trial
How trial credits land in each wallet and how the deploy gate works.
Rate limits
Per-plan RPM caps and backoff guidance.
Errors
Error codes you might see when a wallet is empty.