Comprehensive guide to using Free Claude Code with all providers and integrations
Free Claude Code is an open-source proxy that routes Anthropic Messages API traffic from Claude Code CLI and VS Code extension to any provider. It maintains protocol stability while allowing you to choose free, paid, or local models through the same proxy and Admin UI.
The project supports multiple providers including NVIDIA NIM, OpenRouter, Google AI Studio, DeepSeek, Mistral, and more, with per-model routing for different Claude tiers (Opus, Sonnet, Haiku).
Free Claude Code works as a middleman between Claude Code and your chosen AI provider:
The system preserves all Claude Code features including streaming, tool use, reasoning blocks, and local request optimizations.
Free Claude Code supports 17 different providers:
Setting up Free Claude Code is simple:
curl -fsSL "https://github.com/Alishahryar1/free-claude-code/blob/main/scripts/install.sh?raw=1" | sh
fcc-server
http://127.0.0.1:8082/admin and set up your provider API keysfcc-claude
The installation script automatically sets up Claude Code and Codex when missing. For detailed instructions, see our Quick Start Guide.
Free Claude Code requires:
For local providers (LM Studio, llama.cpp, Ollama), ensure your hardware meets the requirements for the specific models you want to run.
Yes, Free Claude Code itself is completely free and open-source under the MIT License. However, the AI models you use through the proxy may have their own pricing:
You can use Free Claude Code with entirely free providers or mix free and paid models based on your needs.
Using Free Claude Code with VS Code is straightforward:
"claudeCode.environmentVariables": [
{ "name": "ANTHROPIC_BASE_URL", "value": "http://localhost:8082" },
{ "name": "ANTHROPIC_AUTH_TOKEN", "value": "freecc" },
{ "name": "CLAUDE_CODE_ENABLE_GATEWAY_MODEL_DISCOVERY", "value": "1" },
{ "name": "CLAUDE_CODE_AUTO_COMPACT_WINDOW", "value": "190000" }
]
For Codex in VS Code, configure the ~/.codex/config.toml file to point to your local proxy.
For JetBrains ACP integration:
C:\Users\%USERNAME%\AppData\Roaming\JetBrains\acp-agents\installed.json~/.jetbrains/acp.jsonacp.registry.claude-acp:
"env": {
"ANTHROPIC_BASE_URL": "http://localhost:8082",
"ANTHROPIC_AUTH_TOKEN": "freecc",
"CLAUDE_CODE_ENABLE_GATEWAY_MODEL_DISCOVERY": "1",
"CLAUDE_CODE_AUTO_COMPACT_WINDOW": "190000"
}
Yes! Free Claude Code includes optional Discord and Telegram bot wrappers for remote Claude Code sessions:
/stop cancels tasks, /clear resets sessions, /stats shows stateFor Discord: Create a bot in the Discord Developer Portal, enable Message Content Intent, and configure tokens in the Admin UI.
For Telegram: Create a bot with BotFather and get your user ID from userinfobot.
Voice notes work with Discord/Telegram bots after extending your installation:
--voice-nim--voice-local--voice-allcurl -fsSL "https://github.com/Alishahryar1/free-claude-code/blob/main/scripts/install.sh?raw=1" | sh -s -- --voice-all
Free Claude Code offers numerous advantages:
We welcome contributions! Here's how you can help:
Before contributing, please read our contributing guidelines. Run ./scripts/ci.sh to check code quality before submitting PRs.
Free Claude Code is licensed under the MIT License. This means:
See the full LICENSE file for details.
If you encounter issues with Free Claude Code, here are the best resources:
/admin interface provides validation tools and provider statusWhen reporting issues, please include your system setup, provider configuration, and steps to reproduce the problem.
Request limits depend on your chosen provider:
You can monitor usage through provider dashboards and the Admin UI's provider status checks.