Claude Code Configuration Now Supported
Configure Claude Code to use any LLM model through LLMGateway's unified API with simple environment variable setup.

You can now configure Claude Code to work with any LLM model available through LLMGateway! Access models from OpenAI, Google, Anthropic, and more using Claude's powerful CLI interface.
🔧 Simple Configuration
Set up Claude Code with LLMGateway using three environment variables:
export ANTHROPIC_BASE_URL=https://api.llmgateway.ioexport ANTHROPIC_AUTH_TOKEN=llmgtwy_.... # your llmgateway.io api key here# optionally, choose your model, otherwise it will use the default Claude model via LLMGatewayexport ANTHROPIC_MODEL=gpt-5 # choose your model with tool support# now run claude!claude
export ANTHROPIC_BASE_URL=https://api.llmgateway.ioexport ANTHROPIC_AUTH_TOKEN=llmgtwy_.... # your llmgateway.io api key here# optionally, choose your model, otherwise it will use the default Claude model via LLMGatewayexport ANTHROPIC_MODEL=gpt-5 # choose your model with tool support# now run claude!claude
🚀 Key Benefits
Model Flexibility: Switch between any supported model - from GPT-4o to Claude Sonnet, Gemini, or cost-effective alternatives like GLM-4.5v.
Cost Optimization: Choose the most cost-effective model for your specific tasks while maintaining Claude Code's full functionality.
Unified Interface: Single configuration gives you access to the entire ecosystem of LLM models.
🎯 Popular Model Options
OpenAI Models
openai/gpt-5
- OpenAI's Flagship GPT-5 model
Anthropic Models
anthropic/claude-sonnet-4-20250514
- Anthropic's default model
Cost-Effective Alternatives
glm-4.5v
- Similar performance with 50-70% cost savings over Anthropic
📚 Complete Guide
Read our comprehensive guide: Configure Claude Code to Use Any Model via LLMGateway
The guide covers:
- ⚙️ Step-by-step setup instructions
- 🔄 Model switching strategies
- 💰 Cost optimization tips
- 📊 Performance comparisons
Browse all models with tool support to find the perfect fit for your workflow! 🚀