{"slug": "i-audited-77-5k-star-free-claude-code-1310-files-solid-proxy-inflated-free-token", "title": "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", "summary": "An independent audit of the 77,450-star GitHub project free-claude-code, spanning 1,310 files and 1,088 Python modules, found a genuinely engineered multi-provider routing proxy but flagged three concrete security and marketing issues. The most serious: the inference proxy binds to 0.0.0.0:8082 by default with proxy authentication disabled and a default token of \"freecc\", letting anyone on a shared network spend the user's configured API keys or route through connected ChatGPT and GitHub Copilot OAuth sessions. The audit also found the advertised \"1.3B+ free tokens per month\" is a sum of theoretical caps across 56 third-party API-key providers that grant no tokens of their own.", "body_md": "`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.\n\nInstead 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.\n\nThe 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.\n\nBefore poking holes, give credit where the codebase earns it:\n\n`api/` 102 files, `core/` 111 files, `providers/` 164 files):`/v1/messages`), OpenAI Chat Completions (`/v1/chat/completions`), OpenAI Responses (`/v1/responses`), or Gemini (`:generateContent`).` application/model_fallback/runner.py`):` ContinuationSeed`) and provider admission controls (` providers/admission*.py`), so rate-limited upstream keys degrade gracefully instead of crashing an agent run.`api/admin_security.py`):` require_loopback_admin` checks `request.client.host`, `Host`, and `Origin` against loopback addresses, blocking DNS rebinding and cross-site localhost attacks against the settings dashboard.\nIf you already juggle multiple API keys and want one local router across Claude Code, Codex, OpenCode, Cline, or Aider, this is serious plumbing.\n\n`0.0.0.0:8082` LAN Bind With Proxy Auth Disabled\nThe Admin UI is locked to loopback. **The inference proxy endpoints are not.**\n\nCheck `src/free_claude_code/config/settings.py` (lines 750–760):\n\n```\nhost: NonEmptyString = Field(default=\"0.0.0.0\", validation_alias=\"HOST\")\nport: int = Field(default=8082, validation_alias=\"PORT\")\nopen_admin_browser: bool = Field(default=True, validation_alias=\"FCC_OPEN_BROWSER\")\nproxy_auth_enabled: bool = Field(\n    default=False,\n    validation_alias=\"PROXY_AUTH_ENABLED\",\n)\nproxy_auth_token: NonEmptyString = Field(\n    default=\"freecc\",\n    validation_alias=\"ANTHROPIC_AUTH_TOKEN\",\n)\n```\n\nTrace the startup path to confirm nothing overrides it:\n\n`scripts/install.sh` does `HOST` or `PROXY_AUTH_ENABLED`.` src/free_claude_code/cli/commands.py` passes `ServerSockets.reserve(settings.host, settings.port)` straight to Uvicorn.`src/free_claude_code/api/dependencies.py` short-circuits `require_proxy_auth` with `if not settings.proxy_auth_enabled: return`.\nOn 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.\n\n**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.\n\nParsing all **61 `ProviderDescriptor` entries** in `src/free_claude_code/config/provider_catalog.py` breaks down as follows:\n\n| Category ( `provider_catalog.py` ) | Count | Examples | Who Pays? | \n|---|---|---|---|\n| `CONNECTED_ACCOUNT` (OAuth) | **2** | `openai` (`chatgpt.com/backend-api/codex` ),`github_copilot` (`github-copilot-sdk>=1.0.34` ) | Your existing subscription | \n| Local runtimes | **3** | `ollama` ,`lmstudio` ,`llamacpp` | Your own GPU/RAM | \n| `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 | \n\nFree 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).\n\n`3.14.10`, and `AGPL-3.0-only`\nThree operational details buried past the hero section:\n\n`1,998` lines, `69.2 KB`):`=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`; only `install_cline=0`), pulling vendor install scripts from 9 separate domains plus optional `rtk v0.44.2` and `headroom-ai[mcp]==0.40.0`. Deselect everything you don't actually run during the prompt.`pyproject.toml` specifies `requires-python = \"==3.14.10\"` (managed via `uv`). Fine on unrestricted machines, annoying in locked-down corporate environments.`NOASSERTION` because `LICENSE` prepends a three-line copyright header, yet line 3 explicitly declares `SPDX-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.\nIf 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.\n\nIf you expected zero-signup free Claude Opus out of the box, save yourself the setup time.\n\nFor your daily coding agent setup, are you sticking to one native subscription, or routing across multi-provider proxies?", "url": "https://wpnews.pro/news/i-audited-77-5k-star-free-claude-code-1310-files-solid-proxy-inflated-free-token", "canonical_source": "https://dev.to/tomtoptomtop/i-audited-775k-star-free-claude-code-1310-files-solid-proxy-inflated-free-token-math-and-a-1h41", "published_at": "2026-12-06 06:32:00+00:00", "updated_at": "2026-12-06 06:44:44.932092+00:00", "lang": "en", "topics": ["ai-tools", "ai-agents", "ai-infrastructure", "developer-tools", "ai-safety"], "entities": ["free-claude-code", "Alishahryar1", "GitHub", "Claude Code", "OpenAI", "GitHub Copilot", "OpenRouter", "Groq"], "also_reported_by": [], "takeaway": "free-claude-code defaults to HOST=0.0.0.0 on port 8082 with PROXY_AUTH_ENABLED=false and token \"freecc\", so set HOST=127.0.0.1 or enable proxy auth and change the token before running it on any shared network.", "recommendation": {"advice": "Before running free-claude-code, set HOST=127.0.0.1, or enable PROXY_AUTH_ENABLED=true and replace the default \"freecc\" token, since the proxy binds 0.0.0.0:8082 unauthenticated by default.", "playbook": "agent-security", "playbook_url": "https://wpnews.pro/playbooks/agent-security"}, "alternates": {"html": "https://wpnews.pro/news/i-audited-77-5k-star-free-claude-code-1310-files-solid-proxy-inflated-free-token", "markdown": "https://wpnews.pro/news/i-audited-77-5k-star-free-claude-code-1310-files-solid-proxy-inflated-free-token.md", "text": "https://wpnews.pro/news/i-audited-77-5k-star-free-claude-code-1310-files-solid-proxy-inflated-free-token.txt", "jsonld": "https://wpnews.pro/news/i-audited-77-5k-star-free-claude-code-1310-files-solid-proxy-inflated-free-token.jsonld"}}