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
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:| Key Name | Use Case |
|---|---|
Production | Your deployed agent |
Development | Local testing |
Claude Desktop | Personal use |
Cursor | IDE integration |
Rotating Keys
To rotate a 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