- Use 300+ models while coding, giving you flexibility to choose the best model for each task.
- Track and manage your spend in a single location
- Keep a record of your conversations
Configuration
1. Quick setup using environment variables
The easiest way to integrate Requesty with Claude Code is through environment variables:- Get Your API Key Create an API key on the API Keys Page.
-
Set Environment Variables
We recommend using the
ANTHROPIC_MODEL environment variable, and not the /model directive as Claude might not accept it sometimes.- Run Claude
Run
claudein your terminal.
With this setup, Claude Code will route all requests through Requesty, giving you access to models from OpenAI, Anthropic, Google,
Mistral, and many more providers.
2. (Recommended) Setup using the settings file
You can also configure Claude Code using the settings files. You will only have to edit it once. Create or edit your settings file:~/.claude/settings.json
And set the ANTHROPIC_BASE_URL and ANTHROPIC_AUTH_TOKEN values inside the env block:
Model Selection
You can choose any model from the Model Library or any policy configured for your organization. Standard model IDs follow the formatprovider/model-name:
anthropic/claude-3-7-sonnetopenai/gpt-4ogoogle/gemini-2.0-flash-expmistral/mistral-large-2411
policy/policy-name:
policy/reliable-sonnet-4-5
Command Line Configuration
You can also configure Claude Code using the command line:Benefits of Using Requesty with Claude Code
Access 300+ Models
Switch between models from different providers without changing your setup
Cost Management
Monitor spending and set limits across all your AI interactions
Fallback Policies
Automatic fallbacks ensure your coding sessions never get interrupted
Troubleshooting
Model Not Found
If you get a “model not found” error, make sure:- Your API key is valid and has access to the model (check the approved models in your organization)
- The model ID format is correct (
provider/model-name) - The model is available in the Model Library
Connection Issues
If Claude Code can’t connect:- Verify your
ANTHROPIC_BASE_URLis set tohttps://router.requesty.ai - Check your
ANTHROPIC_AUTH_TOKENis correct - Ensure you have internet connectivity