Overview
Agent API keys (tokens) authenticate your agent when calling paid MCP tools. Each key has scopeagent:connect which allows connecting to MCP servers and being charged for tool calls.
Creating Keys
1
Go to API Keys
Navigate to API Keys in your dashboard sidebar.
2
Click Create Key
Click the Create Key button.
3
Name your key
Give it a descriptive name like “Production”, “Development”, or “Claude Desktop”.
4
Copy immediately
The full key is shown once. Copy it and store it securely.
Key Format
Agent keys follow this format:sk_- Secret key prefixlive_- Production environmenta1b2...- 64 random hex characters
Multiple Keys
Create separate keys for different purposes:
Each key shares your account balance but can be revoked independently.
Rotating Keys
To rotate a key:1
Create a new key
Create a new key with the same name (add “v2” or date).
2
Update your agents
Update your agent configurations to use the new key.
3
Delete the old key
Once all agents are updated, delete the old key.
Deleting a key is immediate and permanent. Any agents still using it will receive
TOKEN_INVALID errors.Deleting Keys
To delete a key:- Go to API Keys
- Find the key you want to delete
- Click the Delete button (trash icon)
- Confirm deletion
Troubleshooting
”TOKEN_INVALID” Error
Your key may be:- Deleted from the dashboard
- Incorrectly copied (missing characters)
- From a different account
”TOKEN_MISSING” Error
The MCP server didn’t receive your token. Check:AGENT_TOKENenvironment variable is set- HTTP
Authorizationheader is being sent - No typos in your configuration