Documentation Index
Fetch the complete documentation index at: https://concentrate.ai/docs/llms.txt
Use this file to discover all available pages before exploring further.
We guarantee full support with the Anthropic provider but have high support for many others.
Reasons to Use Concentrate with Claude Code
Reasons to Use Concentrate with Claude Code
- Model Fallbacks — Auto-retries across providers if a model is rate-limited or down.
- Save up to 90% — Mix cheap open-source models with frontier when you need it.
- Swap Models Mid-Session — Switch with
/modelon the fly, no restart needed. - Spend Controls — Set a monthly budget cap so you never get a surprise bill.
- Usage Analytics — See every request, model, token count, and cost in your dashboard.
- Zero Data Retention (ZDR) — You can choose to opt out of upstream provider data processing.
- We’re adding new ZDR providers weekly.
Quick Start
View prerequisites (before you begin)
View prerequisites (before you begin)
Create a Concentrate AI account with an active API key
Log in at concentrate.ai and create an API key. Your key should start with
sk-cn.Install Claude Code
If you haven’t installed Claude Code yet, follow the official installation instructions. On most systems:Verify it’s installed by running:
Verify Installation
After running the setup script:- Restart your terminal or source your shell profile:
- Launch Claude Code
- Verify the connection: Once inside Claude Code, run:
You should see output confirming the Concentrate endpoint and your API key:If the endpoint shows
api.anthropic.cominstead, your environment variables are not being picked up — see Troubleshooting.
Manual Setup
If you prefer to configure Claude Code manually or the automated script doesn’t work for your environment:Set environment variables in your shell profile
Add the following to your shell profile (Then reload your shell:
~/.bashrc, ~/.zshrc, etc.):Verify the connection
Launch Claude Code and run Confirm the output shows
/status:https://api.concentrate.ai as the API endpoint. If it still shows api.anthropic.com, make sure you have logged out of any existing Anthropic session and that your shell profile has been reloaded.Remove Concentrate AI
Use Different Models
Claude Code works with most models on Concentrate. To use a specific model, you can configure it by running this command within Claude Code:- minimax-m2-7-highspeed
- kimi-k2-6
- gpt-5.4
- claude-opus-4-7
For non-Anthropic options like MiniMax, GLM, Kimi, OpenAI, Gemini, etc. and compatibility guidance, see our Model Fortress and filter integrations for Claude Code and filter by “High” compatibility.
Resiliency
In addition to accessing models by other authors, Concentrate improves resiliency by giving you multiple ways to access Anthropic models. If Anthropic direct is down, you can use fallback options to route requests to Anthropic through another provider such as AWS Bedrock, Azure, or Google Vertex AI.How It Works
Claude Code natively communicates with the Anthropic Messages API. Concentrate AI exposes an Anthropic-compatible API layer athttps://api.concentrate.ai, allowing Claude Code to connect to Concentrate the same way it connects to Anthropic directly.
By setting ANTHROPIC_BASE_URL to the Concentrate endpoint and providing your Concentrate API key, all Claude Code requests are routed through Concentrate for centralized billing, observability, token savings, and access controls, with no changes to the Claude Code experience.
Billing and usage are managed through your Concentrate AI credits. All usage, including reasoning tokens, appears in your Concentrate dashboard.
Troubleshooting
API key not found error
API key not found error
If you see an error about missing API key:
- Verify the environment variable is set:
- Make sure you’ve sourced your shell profile:
- Confirm the variables are in your shell profile (
~/.bashrc,~/.zshrc), not a.envfile — Claude Code does not read.envfiles. - If you were previously logged in to Anthropic directly, run
/logoutinside Claude Code first.
Invalid API key error
Invalid API key error
If your API key is rejected:
- Verify the key in your dashboard.
- Ensure there are no extra spaces or quotes in the environment variable.
- Check that the key starts with
sk-cn.
Connection errors
Connection errors
If you cannot connect to the API:
- Verify
ANTHROPIC_BASE_URLis set correctly: - Test the connection manually:
- Check your internet connection and firewall settings.
Still hitting api.anthropic.com
Still hitting api.anthropic.com
If you’re still connected to api.anthropic.com:
- Run
/logoutin Claude Code. - Confirm
ANTHROPIC_API_KEY="".
Next Steps
API Reference
Explore the full API capabilities
Available Models
Browse all supported models
Auto Routing
Optimize model selection automatically
Get Support
Contact our support team
Feedback
If you encounter issues or have suggestions, email support@concentrate.ai.- Report bugs
- Feature requests
- Documentation improvements