🤖 Free Claude Code FAQ

Comprehensive guide to using Free Claude Code with all providers and integrations

37,092 Stars
5,821 Forks
215 Subscribers
351 Open Issues

Frequently Asked Questions

What is Free Claude Code? â–¼

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).

How does Free Claude Code work? â–¼

Free Claude Code works as a middleman between Claude Code and your chosen AI provider:

  • Proxy Architecture: Acts as an Anthropic-compatible endpoint that forwards requests to configured providers
  • Model Routing: Routes different model tiers (Opus, Sonnet, Haiku) to specific providers
  • Protocol Translation: Converts OpenAI Responses API calls to Anthropic Messages for Codex compatibility
  • Admin UI: Local web interface for configuration and provider management

The system preserves all Claude Code features including streaming, tool use, reasoning blocks, and local request optimizations.

What providers are supported? â–¼

Free Claude Code supports 17 different providers:

  • NVIDIA NIM - High-performance GPU models
  • OpenRouter - Open-source and free models
  • Google AI Studio - Gemini models
  • DeepSeek - Advanced reasoning models
  • Mistral La Plateforme - Mistral's API
  • Mistral Codestral - Coding-focused models
  • OpenCode Zen - Curated model gateway
  • OpenCode Go - Subscription models
  • Wafer - Anthropic-compatible endpoint
  • Kimi - Moonshot AI's models
  • Cerebras Inference - High-performance models
  • Groq - Fast inference
  • Fireworks AI - Anthropic-compatible API
  • Z.ai - GLM models
  • LM Studio - Local model hosting
  • llama.cpp - Efficient local inference
  • Ollama - Easy local model management
How do I set up Free Claude Code? â–¼

Setting up Free Claude Code is simple:

  1. Install Dependencies:
    curl -fsSL "https://github.com/Alishahryar1/free-claude-code/blob/main/scripts/install.sh?raw=1" | sh
  2. Start Proxy Server:
    fcc-server
  3. Configure Admin UI: Open http://127.0.0.1:8082/admin and set up your provider API keys
  4. Run Claude Code:
    fcc-claude

The installation script automatically sets up Claude Code and Codex when missing. For detailed instructions, see our Quick Start Guide.

What are the system requirements? â–¼

Free Claude Code requires:

  • Python: Python 3.14
  • Package Manager: uv (installed automatically)
  • Claude Code: Automatically installed by the installer
  • Codex: Automatically installed by the installer
  • Memory: At least 1GB RAM (more for local models)
  • Network: Internet connection for cloud providers

For local providers (LM Studio, llama.cpp, Ollama), ensure your hardware meets the requirements for the specific models you want to run.

Is Free Claude Code free? â–¼

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:

  • Free Models: Many providers offer free tiers (OpenRouter free models, Google AI Studio, DeepSeek free, etc.)
  • Paid Models: Commercial providers like NVIDIA NIM, OpenRouter paid tiers, etc. require API keys and may charge usage
  • Local Models: Self-hosted models (LM Studio, llama.cpp, Ollama) are free but require hardware resources

You can use Free Claude Code with entirely free providers or mix free and paid models based on your needs.

How do I use Free Claude Code with VS Code? â–¼

Using Free Claude Code with VS Code is straightforward:

  1. Install the Claude Code extension
  2. Open VS Code settings and search for "claude-code.environmentVariables"
  3. Edit settings.json with:
    "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" }
    ]
  4. Reload the extension after saving

For Codex in VS Code, configure the ~/.codex/config.toml file to point to your local proxy.

How do I use Free Claude Code with JetBrains ACP? â–¼

For JetBrains ACP integration:

  1. Edit the Claude ACP config file:
    • Windows: C:\Users\%USERNAME%\AppData\Roaming\JetBrains\acp-agents\installed.json
    • Linux/macOS: ~/.jetbrains/acp.json
  2. Set the environment for acp.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"
    }
  3. Restart your IDE after changing the file
Can I use Free Claude Code with Discord or Telegram? â–¼

Yes! Free Claude Code includes optional Discord and Telegram bot wrappers for remote Claude Code sessions:

  • Features: Remote sessions, streaming progress, reply-based conversation branches
  • Commands: /stop cancels tasks, /clear resets sessions, /stats shows state
  • Setup: Configure in the Admin UI under Messaging section

For 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.

How do I configure voice notes? â–¼

Voice notes work with Discord/Telegram bots after extending your installation:

  1. Install Voice Extras:
    • For NVIDIA NIM transcription: --voice-nim
    • For local Whisper: --voice-local
    • For both: --voice-all
    curl -fsSL "https://github.com/Alishahryar1/free-claude-code/blob/main/scripts/install.sh?raw=1" | sh -s -- --voice-all
  2. Configure in Admin UI: Open Messaging section and enable Voice Notes
  3. Options: Choose Whisper Device (cpu, cuda, nvidia_nim), set Whisper Model, and provide Hugging Face Token if needed
What are the benefits of using Free Claude Code? â–¼

Free Claude Code offers numerous advantages:

  • Cost Savings: Access premium models through free tiers or cheaper providers
  • Flexibility: Mix and match providers per model tier
  • Privacy: Use local models for sensitive data
  • Performance: Optimized routing and local request handling
  • Compatibility: Full feature support including streaming, tools, reasoning blocks
  • Easy Setup: Automated installation and configuration
  • Open Source: MIT License, community-driven development
How can I contribute to the project? â–¼

We welcome contributions! Here's how you can help:

  • Report Issues: Submit bugs and feature requests in GitHub Issues
  • Code Contributions: Fork the repo, make changes, and submit pull requests
  • Documentation: Help improve documentation and examples
  • Testing: Run the test suite and report any failures

Before contributing, please read our contributing guidelines. Run ./scripts/ci.sh to check code quality before submitting PRs.

What is the license? â–¼

Free Claude Code is licensed under the MIT License. This means:

  • You can use, modify, and distribute the software freely
  • Commercial use is permitted
  • You must include the original license and copyright notice
  • The software is provided "as is" without warranty

See the full LICENSE file for details.

Where can I get help if I encounter issues? â–¼

If you encounter issues with Free Claude Code, here are the best resources:

  • GitHub Issues: Submit detailed bug reports including model mapping, current model when issue occurred, and the exact issue
  • Documentation: Check our FAQ and How It Works guides
  • Admin UI: The local /admin interface provides validation tools and provider status
  • Community: Join discussions in GitHub for community support

When reporting issues, please include your system setup, provider configuration, and steps to reproduce the problem.

Is there a limit on the number of requests? â–¼

Request limits depend on your chosen provider:

  • Free Providers: Have their own rate limits (e.g., OpenRouter free tier, Google AI Studio)
  • Paid Providers: Limits based on your subscription plan
  • Local Models: Limited by your hardware (CPU/GPU capacity)
  • Free Claude Code: No artificial limits - it's just a proxy

You can monitor usage through provider dashboards and the Admin UI's provider status checks.