I Audited 77.5k-Star free-claude-code (1,310 Files): Solid Proxy, Inflated Free-Token Math, and a Default 0.0.0.0:8082 Trap
Alishahryar1/free-claude-code is sitting near the top of GitHub Trending today with 77,450 stars and 12,104 forks. Its repo tagline promises 12 coding harnesses, 61 providers, "1.3B+ free tokens per month," browser sessi
Alishahryar1/free-claude-code is sitting near the top of GitHub Trending today with 77,450 stars and 12,104 forks. Its repo tagline promises 12 coding harnesses, 61 providers, "1.3B+ free tokens per month," browser sessions, and "ToS friendly" routing.
Instead of skimming the README, I pulled the repo tree (1,310 files, 1,088 Python modules) and audited pyproject.toml, LICENSE, provider_catalog.py, settings.py, admin_security.py, dependencies.py, commands.py, and scripts/install.sh directly.
The short verdict: the routing engine itself is genuinely engineeredβnot a throwaway 200-line wrapperβbut there are three concrete gotchas in the source you should fix before you launch it on your work laptop.
What Is Actually Well Built
Before poking holes, give credit where the codebase earns it:
-
Real four-protocol translation (
api/102 files,core/111 files,providers/164 files): Every configured model can be called over Anthropic Messages (/v1/messages), OpenAI Chat Completions (/v1/chat/completions), OpenAI Responses (/v1/responses), or Gemini (:generateContent). -
Ordered model & key fallback (
application/model_fallback/runner.py): Clean candidate iteration with stream-continuity tracking (ContinuationSeed) and provider admission controls (providers/admission*.py), so rate-limited upstream keys degrade gracefully instead of crashing an agent run. -
Proper loopback defense on the Admin UI (
api/admin_security.py):require_loopback_adminchecksrequest.client.host,Host, andOriginagainst loopback addresses, blocking DNS rebinding and cross-site localhost attacks against the settings dashboard.
If you already juggle multiple API keys and want one local router across Claude Code, Codex, OpenCode, Cline, or Aider, this is serious plumbing.
3 Source-Level Catches You Need to Know First
1. Default 0.0.0.0:8082 LAN Bind With Proxy Auth Disabled
The Admin UI is locked to loopback. The inference proxy endpoints are not.
Check src/free_claude_code/config/settings.py (lines 750β760):
host: NonEmptyString = Field(default="0.0.0.0", validation_alias="HOST")
port: int = Field(default=8082, validation_alias="PORT")
open_admin_browser: bool = Field(default=True, validation_alias="FCC_OPEN_BROWSER")
proxy_auth_enabled: bool = Field(
default=False,
validation_alias="PROXY_AUTH_ENABLED",
)
proxy_auth_token: NonEmptyString = Field(
default="freecc",
validation_alias="ANTHROPIC_AUTH_TOKEN",
)
Trace the startup path to confirm nothing overrides it:
-
scripts/install.shdoes not overrideHOSTorPROXY_AUTH_ENABLED. -
src/free_claude_code/cli/commands.pypassesServerSockets.reserve(settings.host, settings.port)straight to Uvicorn. -
src/free_claude_code/api/dependencies.pyshort-circuitsrequire_proxy_authwithif not settings.proxy_auth_enabled: return.
On an office LAN, hotel Wi-Fi, or coffee-shop network, anyone who reaches http://<your-lan-ip>:8082/v1/messages can spend your configured paid API keysβor proxy requests through your connected ChatGPT / GitHub Copilot OAuth sessionsβwith zero authentication.
Fix before first run: Set HOST=127.0.0.1. If you actually need LAN access, enable PROXY_AUTH_ENABLED=true and replace the default "freecc" token.
2. Where the "1.3B+ Free Tokens/Month" Number Really Comes From
Parsing all 61 ProviderDescriptor entries in src/free_claude_code/config/provider_catalog.py breaks down as follows:
Category (provider_catalog.py) |
Count | Examples | Who Pays? |
|---|---|---|---|
CONNECTED_ACCOUNT (OAuth) |
2 |
openai (chatgpt.com/backend-api/codex), github_copilot (github-copilot-sdk>=1.0.34) |
Your existing subscription |
| Local runtimes | 3 |
ollama, lmstudio, llamacpp
|
Your own GPU/RAM |
CONFIG_API_KEY cloud providers |
56 | NVIDIA NIM, OpenRouter, Groq, Cerebras, Google AI Studio, Anthropic, OpenAI API, Bedrock, Vertex, DeepSeek, etc. | Mix of paid APIs + rate-limited upstream free tiers |
Free Claude Code grants zero tokens of its own. The "1.3B+ free tokens" headline adds up theoretical monthly caps across separate third-party free tiers that you register individually. You still hit every provider's RPM/RPD throttle, weaker agentic tool-calling accuracy compared to native frontier Claude models, and free-tier prompt logging policies (such as Google AI Studio's free tier).
3. A 69.2 KB Installer With 10 Harnesses Defaulted ON, Exact Python 3.14.10, and AGPL-3.0-only
Three operational details buried past the hero section:
-
scripts/install.sh(1,998lines,69.2 KB): Lines 29β39 initialize 10 of 11 harnesses to=1(install_claude=1,install_codex=1,install_pi=1,install_opencode=1,install_hermes=1,install_dsh=1,install_grok=1,install_muse=1,install_aider=1,install_agy=1; onlyinstall_cline=0), pulling vendor install scripts from 9 separate domains plus optionalrtk v0.44.2andheadroom-ai[mcp]==0.40.0. Deselect everything you don't actually run during the prompt. -
Exact patch pin:
pyproject.tomlspecifiesrequires-python = "==3.14.10"(managed viauv). Fine on unrestricted machines, annoying in locked-down corporate environments. -
Strict
AGPL-3.0-onlylicense: GitHub's API reportsNOASSERTIONbecauseLICENSEprepends a three-line copyright header, yet line 3 explicitly declaresSPDX-License-Identifier: AGPL-3.0-only. Fine for local personal use; if your team modifies and hosts it as a shared internal gateway, AGPL network-copyleft disclosure rules apply.
Bottom Line
If you already maintain multiple free/paid keys (NVIDIA NIM, OpenRouter, DeepSeek, local Ollama) and want clean multi-harness routing with automatic failover, free-claude-code is worth a lookβafter you lock HOST=127.0.0.1 and turn on custom proxy auth.
If you expected zero-signup free Claude Opus out of the box, save yourself the setup time.
For your daily coding agent setup, are you sticking to one native subscription, or routing across multi-provider proxies?
Originally published by Dev.to Security. Aggregated on AIWithGhost for educational purposes β full credit and traffic to the original publisher.