Token VaultDocs
Reference

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.

ScopeLimitApplies to
agent_credentials60 / minGET /api/agents/credentials and /api/agents/mcp, per agent or per scoped key. Both transports share one counter
proxy_mcp300 / minMCP server traffic at /api/mcp/{service}/{server}, per MCP server ({service}:{server}). Also the legacy proxy API, per proxy
mcp_handshake120 / mininitialize, tools/list and notifications/*, per agent (and per MCP server)
agent_no_grant10 / minNO_GRANT and GRANT_EXPIRED misses, per agent. Never a penalty-box strike
credential_history20 / minThe credential_history tool, per agent. A second, tighter cap on top of agent_credentials
token_refresh10 / hourManual refresh, per credential
key_reveal20 / hourRevealing 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

ScopeLimitNotes
activity_summary30 / minThe Home page rollup, GET /api/activity/summary
account_export5 / hourExporting your account data
setup_step60 / dayWebhook setup wizard telemetry

Per IP (unauthenticated endpoints)

EndpointLimit
MCP OAuth register30 / hour
MCP OAuth authorize30 / hour
MCP OAuth token60 / hour per (IP, client_id)
MCP OAuth revoke60 / hour
MCP OAuth introspect600 / min
tvault login begin20 / hour
tvault login exchange30 / hour
tvault login refresh600 / 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_grant misses 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.

On this page