Reroute Claude Code API calls to free or local LLMs, enabling use of the CLI and VSCode extension without a paid Anthropic API key.
Free Claude Code is an open-source proxy server that solves the problem of needing a paid Anthropic API key to use the Claude Code CLI and VSCode extension. The tool intercepts API requests intended for Anthropic and reroutes them to alternative providers, including free services like NVIDIA NIM or fully local models running via Ollama or LM Studio, allowing developers to code with powerful AI assistants at zero cost.
Users clone the Git repository, configure an .env file with an API key for a provider like NVIDIA NIM or a URL for a local model, and run the proxy server locally. By pointing two environment variables (ANTHROPICBASEURL and ANTHROPICAUTHTOKEN) at the local server, all requests from the Claude Code CLI or VSCode extension are automatically redirected to the configured backend. The tool is free and open-source.
Developers who use the Claude Code CLI or VSCode extension and want to avoid Anthropic API costs by leveraging free model tiers or self-hosting LLMs locally for privacy and offline use.
Setup requires familiarity with the command line, Python environments, and configuring environment variables. It is not a one-click install and is intended for a technical audience.