Token VaultDocs
Policies and Activity

Stop all access

The kill switch that refuses every new agent, key and MCP request at once, and how to resume.

Stop all access refuses every new request from agents, keys and MCP clients across your account. Use it when a key may be compromised, or to pause everything while you investigate. Nothing is deleted or reconfigured.

Use it

The button is in the header and under Settings > Webhook > Overview ("Your webhook & kill switch"). The dialog says:

Stop all agent access? New requests from agents, keys and MCP clients are refused. Links already issued, and sessions your webhook or gateway has cached, can keep working for up to 60 seconds. Credentials an agent already fetched keep working until you rotate them with the provider.

$ tvault vault lock
$ tvault vault status
vault: locked (mode: webhook)
$ tvault vault unlock        # needs a recent sign-in

Under the hood: POST /api/vault/lock and POST /api/vault/lock/clear, flag isLocked on your account. Events VAULT_LOCKED and VAULT_UNLOCKED appear in Activity.

What callers see

GET /api/agents/credentials?service=github
Authorization: Bearer tvagent_...

HTTP/1.1 423 Locked
{"detail":{"code":"VAULT_LOCKED","message":"..."}}

MCP clients get the JSON-RPC equivalent. In Activity the refusal reads "You stopped all access, so every call is refused." The CLI exits with code 5.

A request-level switch

Tickets already issued can be redeemed for up to 60 seconds. A credential an agent already fetched keeps working. To kill a leaked credential, rotate it with the provider.

While stopped, you can still reduce access

Revoking and narrowing stay allowed: suspend an agent, turn off MCP for an agent, revoke a grant, revoke all of an agent's grants (POST /api/agents/{id}/grants/revoke-all, one atomic batch), revoke a key. Anything that increases access waits until you resume.

Resume

Press Resume access. It needs a sign-in within the last 5 minutes, so a stolen session cannot restore everything. Stopping has no such requirement.

The stronger stop

The switch is a Token Vault flag. Your credentials live on your webhook, which Token Vault has no keys to. Take the webhook offline and Token Vault has no credential path at all.

On this page