๐ Easily switch between different AI providers for Claude Code with a beautiful GUI
A smart AI provider switcher that supports various Claude-compatible APIs through Cloudflare Workers proxies and direct endpoints, with intelligent health monitoring and automatic environment variable management.
- ๐ One-Click Switching - Switch between AI providers with a single click
- ๐ Real-time Health Monitoring - Automatic health checking with response time tracking
- ๐จ Beautiful GUI - Clean, intuitive interface with left-right balanced layout
- ๐ Cross-platform Support - Works on Windows, macOS, and Linux
- ๐ง Smart Environment Management - Automatic environment variable configuration
- ๐พ Persistent Settings - Project directories and preferences are saved automatically
-
๐ cc.yovy.app - OpenRouter API proxy
- Access to multiple AI models through OpenRouter
- Requires OpenRouter API key with
sk-or-v1-prefix - Supports Claude, GPT, Llama, and other models
-
๐ง claude.nekro.ai - Multi-provider proxy
- Tongyi Qianwen (้ฟ้้ไนๅ้ฎ)
- Zhipu AI (ๆบ่ฐฑๆธ ่จ/GLM models)
- Google Gemini (Gemini Pro/Flash)
- And more AI providers
- Uses
ak-prefixed API keys
-
๐ Moonshot AI - Direct Claude-compatible API
- Moon Dark Side's Kimi models
- Native Claude API format support
- High-speed Chinese language processing
-
๐ข Official Anthropic - Direct Claude API
- Claude 3.5 Sonnet/Haiku
- Official API with full feature support
- Requires official Anthropic API key
-
๐ง Any Claude-Compatible API - Custom endpoints
- Support for self-hosted Claude-compatible services
- Flexible configuration for custom providers
- Auto-detection of API capabilities
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ Easy Claude Code โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฌโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโค
โ ๐ค AI Provider ็ฎก็ โ ๐ Project Directory โ
โ โ โ
โ Provider โ Type โ Statusโ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โ
โ yovy-openrouterโ proxy โ โ
โ โ [My Project โผ] [๐ Browse]โ โ
โ nekro-claude โ proxy โ โ
โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โ
โ moonshot-directโ directโ โ
โ โ
โ โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โ
โ [๐ Refresh] [โ๏ธ Config] โ โ ๐ Current Status โ โ
โ โ โ Active: nekro-claude โ โ
โ โ โ ANTHROPIC_AUTH_TOKEN=ak-..โ โ
โ โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โ
โ โ โ
โ โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โ
โ โ โ ๐ Terminal Actions โ โ
โ โ โ โ โ
โ โ โ ๐ One-Click Launch โ โ
โ โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโดโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
- Python 3.8+
- Claude Code installed and configured
- API keys from supported services
# Clone the repository
git clone https://github.com/username/easy-claude-code.git
cd easy-claude-code
# Install dependencies
pip install aiohttp
# Run the application
python run.py- Visit OpenRouter and create an account
- Generate an API key (starts with
sk-or-v1-) - Use
https://cc.yovy.appas the base URL - Select models like
anthropic/claude-3.5-sonnet
- Get access to claude.nekro.ai service
- Obtain an API key (starts with
ak-) - Use
https://claude.nekro.aias the base URL - Set model to
autofor automatic selection
- Register at Moonshot AI
- Generate API key (starts with
sk-) - Use
https://api.moonshot.cn/anthropic/as base URL - Compatible with Claude API format
-
Configure providers:
# Copy the example configuration file cp providers.example.json providers.json # Edit providers.json with your API keys nano providers.json
-
Launch the application:
python run.py
-
Start using:
- Select an AI provider from the left panel
- Choose your project directory
- Click "๐ One-Click Launch" to start coding!
Note: You can also add/edit providers using the GUI's "Add Provider" or "Edit Provider" buttons.
Edit providers.json with your API keys:
{
"providers": [
{
"name": "yovy-openrouter",
"type": "openrouter",
"base_url": "https://cc.yovy.app",
"api_key": "YOUR_OPENROUTER_API_KEY",
"model": "anthropic/claude-3.5-sonnet",
"small_fast_model": "anthropic/claude-3.5-haiku",
"priority": 1
},
{
"name": "nekro-multi",
"type": "custom_anthropic",
"base_url": "https://claude.nekro.ai",
"api_key": "YOUR_CLAUDE_NEXUS_API_KEY",
"model": "auto",
"small_fast_model": "auto",
"priority": 2
}
]
}Easy Claude Code automatically manages these environment variables when you activate a provider:
ANTHROPIC_API_KEY- For OpenRouter and direct APIsANTHROPIC_AUTH_TOKEN- For claude.nekro.ai and custom endpointsANTHROPIC_BASE_URL- Provider's base URLANTHROPIC_MODEL- Model name (when required)ANTHROPIC_SMALL_FAST_MODEL- Fast model for simple tasks
- Never commit API keys to version control -
providers.jsonis in.gitignore - Keep your
providers.jsonfile private - Rotate your API keys regularly
- Use different keys for different environments
- Select Provider: Choose from proxy or direct API providers
- Choose Project: Select or browse to your project directory
- Launch: Click "๐ One-Click Launch" for instant setup
- โ Need access to multiple model providers
- โ Want to compare different AI models
- โ Require high availability and load balancing
- โ OpenRouter account with credits/subscription
- โ Need Chinese AI models (Tongyi, Zhipu)
- โ Want to access Gemini models
- โ Prefer unified API for multiple providers
- โ Looking for cost-effective solutions
- โ Official Anthropic account with Claude API access
- โ Moonshot AI account for Chinese language tasks
- โ Custom or self-hosted Claude-compatible services
- โ Need full control and lowest latency
provider_switch.py- Core provider management and health checkinggui_switcher_v2.py- Modern GUI interface with tkinterterminal_launcher.py- Cross-platform terminal launcherproviders.json- Configuration file for providers and projects
- Concurrent Checks - All providers checked simultaneously
- Proxy-Aware Endpoints - Uses appropriate test URLs for each service type
- Tolerant Status Codes - Accepts 200/401/403/404 as healthy (server responsive)
- Timeout Handling - Configurable timeouts with graceful failure
| Provider Type | Authentication | Model Selection | Special Features |
|---|---|---|---|
| cc.yovy.app | sk-or-v1- key |
OpenRouter models | Multi-provider routing |
| claude.nekro.ai | ak- key |
Auto-detection | Chinese AI models |
| Moonshot | sk- key |
Kimi models | Chinese language optimized |
| Official | sk-ant- key |
Claude models | Full Claude features |
We welcome contributions! Here's how you can help:
- Add provider type to
ProviderTypeenum - Update health check logic for the new service
- Add configuration examples
- Update documentation
- Use GitHub Issues for bug reports
- Include API provider and error messages
- Provide steps to reproduce
This project is licensed under the MIT License - see the LICENSE file for details.
- Claude Code Team - For the amazing AI coding assistant
- OpenRouter - For providing access to multiple AI models
- Cloudflare Workers - For enabling proxy services
- All Proxy Service Providers - For making AI models more accessible
- Documentation: Check this README and Provider Guide
- Issues: GitHub Issues
- Discussions: GitHub Discussions
- Proxy Services: Most providers in this tool use Cloudflare Workers proxies, not direct official APIs
- API Keys: Each service requires its own API key format and registration process
- Rate Limits: Different providers have different rate limits and usage policies
- Costs: Check each provider's pricing before heavy usage
- Compliance: Ensure your usage complies with each provider's terms of service
โญ If you find Easy Claude Code helpful, please give it a star!
Made with โค๏ธ for the Claude Code community