API Keys
Agentbot uses a “bring your own keys” model. You control your AI costs directly.Supported Providers
OpenRouter (Recommended)
Best for: General use, wide model selection- Anthropic: Claude 3.5 Sonnet, Claude 3 Opus
- OpenAI: GPT-4, GPT-4 Turbo
- Google: Gemini Pro
- Meta: Llama 3
- And 200+ more
Anthropic
Best for: Highest quality reasoningOpenAI
Best for: GPT-4 featuresGoogle AI
Best for: Gemini modelsAdding API Keys
Via Dashboard
- Go to Settings → API Keys
- Click Add Key
- Select provider
- Paste your key
- Click Save
Via Environment Variable
Set in your deployment:Cost Tracking
Monitor your usage in Dashboard → Costs:- API calls by agent
- Token usage (input/output)
- Cost per model
- Daily/weekly/monthly reports
Rate Limits
Each provider has rate limits:| Provider | Requests/min | Tokens/min |
|---|---|---|
| OpenRouter | 1000 | 100,000 |
| Anthropic | 50 | 100,000 |
| OpenAI | 500 | 150,000 |
| 60 | 60,000 |
Best Practices
- Use OpenRouter - Best model selection, competitive pricing
- Set budgets - Monitor costs in dashboard
- Rotate keys - Update keys periodically
- Don’t commit keys - Use environment variables only
Troubleshooting
Invalid API Key
Invalid API Key
Check:
- Key is correct and not expired
- Has sufficient credits/quota
- Correct format for provider
Rate Limited
Rate Limited
- Wait and retry
- Upgrade plan for higher limits
- Use OpenRouter for more capacity
Models Not Available
Models Not Available
Some models require approval:
- Apply for OpenRouter Prime
- Enable in Anthropic console
- Check Google AI quota