Universal Claude API Proxy for Multiple Providers
Get the official Claude Code CLI tool from Anthropic.
npm install -g @anthropic-ai/claude-code
Select your preferred AI provider and get the API key. Click any provider below for detailed setup instructions:
官方Claude API,无需代理,但需要解决中国大陆账号充值问题。
High-performance reasoning models with excellent cost efficiency. Perfect for complex coding tasks.
Model proxy service - Provides access to Claude and other models. Click to register and get $100 free credits!
Advanced Chinese AI models with strong multilingual capabilities and long context support.
Chinese AI infrastructure platform providing access to various domestic and international models.
Advanced coding model from Alibaba Cloud with strong programming capabilities and Chinese language support.
AI coding assistant platform providing direct Claude Code API access. Get 2000 free credits upon registration!
Professional Claude Code API service with stable access and excellent performance. Get 4000 free credits (~20 conversations) upon registration!
Access to multiple AI models through a single API, including Claude, GPT, and open-source models.
Industry-leading GPT models including GPT-4o and GPT-4o-mini for diverse AI applications.
Add these to your shell config (~/.bashrc
or ~/.zshrc
):
export ANTHROPIC_BASE_URL="https://cc.xiaohui.cool"
export ANTHROPIC_API_KEY="your-openrouter-api-key"
export ANTHROPIC_BASE_URL="https://anyrouter.top"
export ANTHROPIC_API_KEY="your-anyrouter-api-key"
Then reload your shell:
source ~/.bashrc # or source ~/.zshrc
Run claude
in your terminal and enjoy Claude with your preferred AI provider
git clone https://github.com/istarwyh/claude-code-router && cd claude-code-router && npm install
wrangler secret put OPENAI_COMPATIBLE_BASE_URL
wrangler secret put OPENAI_COMPATIBLE_BASE_URL
wrangler secret put OPENROUTER_BASE_URL
npm run deploy
Get in touch if you have any questions or issues