FREE: run Claude Code for $0, with a hidden setting and one free tool
Claude's desktop app has a built-in setting for using your own model provider. Point it at FreeLLMAPI, a free open-source tool that routes to free AI providers, and the Code tab runs on free models. Here are the 4 settings to paste in.
Before you start: this runs Claude Code on free models (like Gemini), not on Anthropic's Claude models. We haven't run this setup ourselves yet, so follow the official docs linked below.
Step 1: Install FreeLLMAPI (free)
FreeLLMAPI is free and open source (MIT, over 55,000 stars on GitHub). Its README describes it as "10.1 billion tokens per month" from "87 free LLM providers," all behind one connection.
- Windows: install the desktop app from the Microsoft Store. The README calls this "the easiest path."
- Mac (macOS 12 or later): download the
.dmgfrom the GitHub Releases page. Pick arm64 for Apple Silicon or x64 for Intel.
The desktop app runs on your computer at http://127.0.0.1:31415. Keep it open while you use Claude Code.
Step 2: Add two free keys (Google and Groq)
- Make a free API key at Google AI Studio and at Groq.
- In FreeLLMAPI, open the Keys page and add both keys.
- Copy FreeLLMAPI's own key (it starts with
freellmapi-). In the desktop app it's under Copy Key. You'll paste this into Claude in Step 4.
Step 3: Open the hidden setting in the Claude desktop app
This is an official feature, described in Anthropic's docs. Open the Claude desktop app, but don't sign in.
- On a Mac, use the menu bar. On Windows, use the ☰ menu at the top left of the sign-in screen.
- Go to Help → Troubleshooting → Enable Developer Mode.
- A new Developer menu appears. Open Developer → Configure Third-Party Inference…
Step 4: Paste the 4 settings
In the Connection section, fill in these four:
Inference provider: Gateway
Credential kind: Static API key
Gateway base URL: http://127.0.0.1:31415
Gateway API key: [paste your freellmapi- key]Use the base URL without /v1; the Claude app adds that part itself. If the connection test fails, set Gateway auth scheme to x-api-key (FreeLLMAPI's docs use that), then test again.
Step 5: Test it
Apply the changes and let the app restart. Then click Code and type hi. If you get an answer, Claude Code is running through FreeLLMAPI on free models.
Honest notes
- It isn't Anthropic's Claude. The answers come from free models like Gemini, so quality and speed can be different from paid Claude.
- FreeLLMAPI has to stay open on your computer while you work.
- Free tiers have limits. The README says it "tracks per-key usage so you stay under every free-tier cap," and calls the project "Personal experimentation only."
- Model names: Anthropic's docs say the model picker only lists models whose names look like Claude models, and some users report that some app versions block other model names (GitHub issue). If you hit this, check that issue first.
- Keep your keys private. Don't show your API keys on screen or share them. Anthropic's docs also warn that an exported config file holds your key in plain text.
Original sources
- Anthropic: configure Claude Desktop in the app and gateway settings
- FreeLLMAPI on GitHub (README, install, Claude client setup)
- The original video by ReachMora (YouTube)
Made for Instagram Reels. We test Claude experiments every week: @theoautomates