Activity
The feed of every credential access, tool call, policy decision and config change, with filters, plain-words denials, export and 90-day retention.
Activity (/activity) records what agents, keys and you did, and what was refused. Events hold metadata, never values.
The feed is Token Vault's own copy. It has no client IP and no user agent, and it keeps working while your webhook is offline. Most event types are also forwarded to your webhook, which keeps the full original. Not forwarded: ACCESS_DENIED, lock and unlock, webhook bind, label and MCP server changes, API key events, AGENT_KEY_ROTATED, grant edits and revokes, and redirect-host changes.
The feed
Newest first. The app loads 200 per page (the API defaults to 50, maximum 200). Filters live in the URL, so a filtered view is a shareable link.
| Filter | Param | Values |
|---|---|---|
| Who | who | an agent or key |
| Credential | credential | credential name |
| MCP server | server | <service>/<server> |
| Policy | policy | policy id |
| Outcome | outcome | allowed, denied, error |
| Channel | channel | direct (browser or CLI), agent, proxy (MCP tools) |
| Since / Until | since, until | today, yesterday, 24h, 7d, 30d, or a date |
https://tokenvault.uk/activity?outcome=denied&who=cursor&since=24hAgent and key pages have an Activity tab, and a policy page has a Denials tab. Each is the same feed pre-filtered. From a terminal: tvault history github lists one credential's events.
Event drawer
Click a row (or open ?event=<id>). The drawer shows Outcome, When, Who, Credential, Policy, MCP server or tool, Reason, Denial code, Rule type, Rule settings, Applied via, Channel, Response and Event type. Actions: revoke the grant or suspend the holder, and jump to the agent, key or credential.
A denied tool call, as stored:
{
"eventType": "POLICY_DENIED",
"timestamp": "2026-11-02T22:15:09Z",
"source": "mcp_server",
"policyId": "3f9c2a71e0b84d5f9a6c1d2e7b8f40a1",
"policyName": "linear-5-per-5min",
"ruleType": "rate_limit",
"reason": "Rate limit exceeded: 5 requests per 5 minutes",
"appliedVia": { "type": "mcp_server", "id": "linear:linear" },
"rule": { "limit": 5, "windowSeconds": 300 },
"entityType": "mcp_server",
"entityId": "linear:linear",
"retryAfter": 212,
"httpMethod": "POST"
}A successful value fetch:
{
"eventType": "AGENT_CREDENTIAL_ACCESS",
"timestamp": "2026-11-02T09:41:22Z",
"source": "agent",
"serviceName": "github",
"agentId": "Xk3jQ9",
"agentName": "claude-code",
"httpMethod": "GET"
}Denials in plain words
Denied events open a panel that says what happened and offers a fix button. The agent gets a short code; you get the sentence.
| Cause | Sentence | Fix button |
|---|---|---|
rate_limit | Rate limit: 5 requests per minute (policy x, on MCP server linear/linear). Try again in 12 s. | Raise the limit |
time_window | Outside allowed hours: Mon–Fri 08:00–19:00 Europe/London (policy x, on label ai). | Change the hours |
max_usage | Lifetime cap reached: used 5 of 5. It does not reset by itself. | Raise the cap |
geo_restrict | Country not allowed: only GB, US may use this. | Change the countries |
ip_allowlist | Address not on the IP allowlist. | Edit the allowlist |
access_channel | Only agents may read this. | Change the channels |
manual_approval | Needs your approval, and approvals can't be asked for yet. | Detach |
| no grant | cursor has no access to github. | Give access |
| expired grant | cursor's access to github ended 2 days ago (granted for 24 hours). | Give access |
| MCP only | cursor can use github through MCP but not read the value. | Edit access: add Value |
| suspended | cursor is stopped (suspended), so every call is refused. | Resume the agent |
| vault locked | You stopped all access, so every call is refused. | Resume access (header) |
| Token Vault limit | cursor is calling faster than Token Vault allows. This is Token Vault's own safety limit, not one of your policies. | none |
Every policy sentence names the policy and where it is attached: agent, key, credential, label or MCP server. For a label it adds which side carries it.
What the caller sees
Policy denials differ by caller. Same refusal, two bodies:
{ "error": "Access denied by policy", "policy": "linear-5-per-5min", "rule": "rate_limit",
"reason": "Rate limit exceeded: 5 requests per 5 minutes", "code": "POLICY_DENIED", "retryAfter": 212 }{ "error": "Access denied by policy", "policy": "linear-5-per-5min", "rule": "rate_limit",
"reason": "Rate limit exceeded: 5 requests per 5 minutes", "code": "POLICY_DENIED", "retryAfter": 212,
"policyId": "3f9c2a71e0b84d5f9a6c1d2e7b8f40a1",
"appliedVia": { "type": "mcp_server", "id": "linear:linear" },
"ruleSettings": { "limit": 5, "windowSeconds": 300 } }The agent's body names the policy, rule and reason; you read the full detail in the drawer. Find the event by time, credential and outcome. Non-policy refusals use {"detail":{"code","message"}}. See Troubleshooting.
Export
Export N loaded events downloads what the page has loaded as CSV or JSON (audit-log-<date>.csv|json). Load more rows first, or narrow the filters, then export.
Retention
Activity rows expire after 90 days (a Firestore TTL on expireAt). Keep a longer record on your webhook, which holds the forwarded copy under your own retention rules.
Event types
| Group | Events |
|---|---|
| Credential access | SECRET_ACCESS, AGENT_CREDENTIAL_ACCESS |
| Credentials | TOKEN_CREATED, TOKEN_UPDATED, TOKEN_DELETED, TOKEN_STORE_AUTHORIZED, TOKEN_REFRESH, REFRESH_PAUSED |
| Agents | AGENT_CREATED, AGENT_UPDATED, AGENT_DELETED, AGENT_KEY_REVEALED, AGENT_KEY_ROTATED |
| API keys | API_KEY_CREATED, API_KEY_UPDATED, API_KEY_ROTATED, API_KEY_REVOKED |
| Access | GRANT_UPDATED, GRANT_REVOKED |
| Policies | POLICY_CREATED, POLICY_UPDATED, POLICY_DELETED, POLICY_DENIED, ACCESS_DENIED |
| Config | MCP_SERVERS_UPDATED, LABELS_UPDATED, MCP_REDIRECT_HOSTS_UPDATED |
| Account | VAULT_LOCKED, VAULT_UNLOCKED, WEBHOOK_BOUND, WEBHOOK_REBOUND |
| Legacy | PROXY_CREATED, PROXY_DELETED, PROXY_KEY_REVEALED |
Creating a new grant does not write an event yet; edits (GRANT_UPDATED) and revokes (GRANT_REVOKED) do. REFRESH_PAUSED is a legacy TV-mediated refresh pause, not webhook refresh. Live TOTP codes shown on the credential page are not logged.
POLICY_DENIED is a rule refusing. ACCESS_DENIED is everything else (no grant, expired grant, suspended, limits).
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.