Rate limits
Every rate limit Token Vault enforces, covering per-entity floors, the account-wide ceiling, per-IP limits, the penalty box and how to back off.
Token Vault limits requests at four layers: a floor on each agent, key and MCP server, a dynamic ceiling across your account, fixed per-IP limits on unauthenticated endpoints, and an escalating lockout (the penalty box) for repeat offenders. A policy rate_limit rule adds its own ceiling on top.
Per-entity floors
Each entity gets its own fresh allowance. Creating more agents does not raise one agent's limit.
| Scope | Limit | Applies to |
|---|---|---|
agent_credentials | 60 / min | GET /api/agents/credentials and /api/agents/mcp, per agent or per scoped key. Both transports share one counter |
proxy_mcp | 300 / min | MCP server traffic at /api/mcp/{service}/{server}, per MCP server ({service}:{server}). Also the legacy proxy API, per proxy |
mcp_handshake | 120 / min | initialize, tools/list and notifications/*, per agent (and per MCP server) |
agent_no_grant | 10 / min | NO_GRANT and GRANT_EXPIRED misses, per agent. Never a penalty-box strike |
credential_history | 20 / min | The credential_history tool, per agent. A second, tighter cap on top of agent_credentials |
token_refresh | 10 / hour | Manual refresh, per credential |
key_reveal | 20 / hour | Revealing an agent's key |
Account-wide ceiling
user_aggregate caps credential-access traffic across your whole account, however many agents you have:
clamp(ceil(1.5 × (60 × active_agents + 300 × proxies)), 600, 3000)- Floor: 600 / min even for a new account.
- Maximum: 3000 / min.
- It grows with your active agents and legacy proxies, so real multi-agent use is not throttled, while an agent-creation loop gains nothing. Keys and MCP servers share the per-entity floors above but are not part of this sizing.
Other account-wide scopes
| Scope | Limit | Notes |
|---|---|---|
activity_summary | 30 / min | The Home page rollup, GET /api/activity/summary |
account_export | 5 / hour | Exporting your account data |
setup_step | 60 / day | Webhook setup wizard telemetry |
Per IP (unauthenticated endpoints)
| Endpoint | Limit |
|---|---|
MCP OAuth register | 30 / hour |
MCP OAuth authorize | 30 / hour |
MCP OAuth token | 60 / hour per (IP, client_id) |
MCP OAuth revoke | 60 / hour |
MCP OAuth introspect | 600 / min |
tvault login begin | 20 / hour |
tvault login exchange | 30 / hour |
tvault login refresh | 600 / hour |
The penalty box
Some scopes turn repeat violations into a lockout with a growing wait.
- Strike 1 waits 1 second, strike 2 waits 2 seconds, then 4, doubling each time, capped at 15 minutes.
- A strike decays after an hour with no further violation.
- Exceeding the floor strikes, and the resulting lockout lasts at least the floor window's own
Retry-After(up to 60 s). agent_no_grantmisses never strike. A mistyped service name cannot lock an agent out of services it does hold.- A lockout blocks all of that entity's credential access, on every transport, not only the service that tripped it. Owner-caused refusals (kill switch, suspended agent, MCP-only grant) never strike.
Policy rate limits
A rate_limit policy attached to an agent, credential, API key, label or MCP server adds its own ceiling. A denial is 429 with a Retry-After header, clamped to 1 to 900 seconds, and a retryAfter field. In an MCP tool result it is structuredContent.retryAfter; on POST /api/mcp/{service}/{server} it is a JSON-RPC -32029 error. The policy field names which policy denied. See Denials.
When you hit one
Every limit response carries a machine-readable wait: a Retry-After header and retryAfter in the JSON body on REST, or error.data.retryAfter in a JSON-RPC -32029 error on MCP calls. Wait that many seconds before retrying.
# A client that honours Retry-After
curl -sL --retry 3 "https://api.tokenvault.uk/api/agents/credentials?service=github" \
-H "Authorization: Bearer $TVAGENT_KEY"curl --retry honours Retry-After. The tvault CLI already retries GETs (3 attempts in all, waiting up to 10 s each time) and exits 7 when it gives up.
Ready to try it?
Sign in with Google or email. Your credentials stay on your own webhook, and the quickstart gets Claude Code making its first MCP tool call in about 15 minutes.
Scopes
All API key scopes (two retired), which are human-grant-only, which scope each endpoint needs, and the key and agent management API.
Token Refresh
How OAuth tokens stay fresh, covering webhook-autonomous refresh, the notify call Token Vault sends, the manual refresh endpoint and its errors, and the pause that stops a loop nobody can fix.