Skip to main content
MindStudio
Pricing
BlogAbout
My Workspace
free Claude Code modelsOpenRouter Claude CodeStealth Ox Alpha

How to Run Claude Code for Free Using OpenRouter's Models

A step-by-step guide to routing free models like Stealth Ox Alpha or GLM through OpenRouter into Claude Code, plus the tradeoffs found in testing.

Edited by Luis Chavez-Mattos, Director of Product RSS
How to Run Claude Code for Free Using OpenRouter's Models

Can you actually use Claude Code without paying for Claude?

Yes. Claude Code doesn’t check which model is generating responses, it just needs an API endpoint that speaks the right protocol. By editing the tool’s settings file and pointing it at OpenRouter instead of Anthropic’s own API, you can route requests to any model OpenRouter hosts, including a growing list of free ones. The catch is that free models come with rate limits, timeouts, and slower, less reliable output than Claude itself.

TL;DR

  • OpenRouter acts as a single API gateway to hundreds of AI models, several of which are listed at zero cost per million tokens.
  • You can redirect Claude Code to OpenRouter by editing the env section of its settings.json file and swapping in an OpenRouter API key instead of an Anthropic one.
  • This trick only works with Claude Code run through an IDE or terminal (like VS Code), not the desktop app, which forces you to use an Anthropic model.
  • A newly released free model called Stealth Ox Alpha was tested inside the Claude Code harness and handled full agentic workflows, tool calls, and file edits.
  • Free models are anonymous providers in some cases, meaning you don’t know the origin of the model or where your data goes, which matters for sensitive projects.
  • In testing, tasks that normally take Claude Code a few minutes took hours on the free model, and some runs hit repeated timeout errors.
  • Free models seemed usable for knowledge work and research-style tasks, but noticeably weaker for complex software builds compared to Claude or GPT-class models.

Other agents start typing. Remy starts asking.

YOU SAID "Build me a sales CRM."
01 DESIGN Should it feel like Linear, or Salesforce?
02 UX How do reps move deals — drag, or dropdown?
03 ARCH Single team, or multi-org with permissions?

Scoping, trade-offs, edge cases — the real work. Before a line of code.

What is OpenRouter and why does it matter here?

OpenRouter is a platform that gives developers one API key with access to a large catalog of AI models from different providers. Instead of signing up separately for OpenAI, Anthropic, Google, or smaller labs, you route all your requests through OpenRouter and pick whichever model you want per request.

The catalog includes paid models (cheap options like DeepSeek, as well as full-price models like Claude Opus, GPT, and Gemini variants) and a separate tier of free models. Searching “free” on OpenRouter’s model list surfaces a number of options with $0 listed for both input and output tokens. These free listings typically come with restrictions: rate limits, daily caps, or the possibility that the provider pulls the free tier entirely without much notice.

One model highlighted in recent testing, Stealth Ox Alpha, comes from a provider called Stealth. As the name implies, it’s an anonymous model, meaning there’s no public confirmation of who built it, what it was trained on, or where it’s hosted. That anonymity is worth weighing before sending proprietary code or sensitive business data through it.

How do you set up Claude Code to use free OpenRouter models?

The setup is a configuration change, not a code change, and takes a few minutes.

  1. Create an OpenRouter account at openrouter.ai.
  2. Generate an API key. Go to your account, open the credits or API keys section, and create a new key.
  3. Find a free model. Browse the models page, search “free,” and copy the exact model identifier (for example, stealth/ox-alpha or a free GLM variant).
  4. Open Claude Code’s settings file. This only works when running Claude Code inside an editor like VS Code or directly in a terminal, not the desktop app, since the desktop app overrides these settings and forces an Anthropic model.
  5. Edit the env section. Inside the settings file, there’s an environment variables block. Replace the Anthropic API token field with your OpenRouter key, and set the model fields to the model identifier you copied.
  6. Save and start a new session. Claude Code should display the active model name at the top of the session (and in a status line, if configured), confirming the swap worked.

Because OpenRouter periodically rotates which models are free, a specific model like Stealth Ox Alpha may disappear from the free tier over time. OpenRouter also offers a “free models router” option, which automatically selects from whatever free models are currently available, removing the need to manually track which one is active.

Does it actually work well inside Claude Code?

Functionally, yes. The free model was able to operate inside the full Claude Code agent loop: it acknowledged goals, searched files, wrote code, called tools, and even self-corrected. In one test, it built a multi-page landing site with product listings, a shopping cart, brand-consistent styling, and nutrition-fact style detail pages, all without being handed a project brief beyond a single prompt.

Plans first. Then code.

PROJECTYOUR APP
SCREENS12
DB TABLES6
BUILT BYREMY
1280 px · TYP.
yourapp.msagent.ai
A · UI · FRONT END

Remy writes the spec, manages the build, and ships the app.

It also respected the existing project context. In one case it dug through unrelated project folders to find previously written scripts and API keys, used them to pull real YouTube analytics data, and produced a structured quarterly and annual report as a Google Sheet. It picked up on stored “skills” and memory files the same way a standard Claude Code session would, since none of that agent behavior is model-specific.

The problems showed up in speed and reliability. Tasks that normally take a few minutes with a full-price Claude model stretched to 40 minutes or several hours. One run repeatedly failed with an “upstream idle timeout exceeded” error until the task was broken into smaller chunks. Another run got stuck in a retry loop and eventually gave up, reporting it was blocked by an infrastructure issue, after nearly 45 minutes of attempts.

Where does the free model fall short?

The clearest gap is on complex, technical, multi-step engineering work. Building a full front end took roughly six hours instead of the expected fraction of that time with a paid frontier model. The output quality itself was reasonable (correct branding, working cart functionality, accurate product data) but the process was slow and occasionally errored out entirely before finishing.

For deep technical orchestration, like coordinating multiple sub-agents, planning a large codebase, or handling long dependency chains, the free model does not match what Opus-class or GPT-5-class models deliver. The rate limits and timeouts tied to free-tier access compound this, since a model that has to retry or restart loses even more time.

Is it worth using free models in Claude Code?

For research, reporting, and general knowledge work, it holds up reasonably well. Pulling analytics, summarizing data, writing structured reports, and doing directory-level file management are tasks the free model completed correctly, if slowly.

For anything resembling serious software development, the tradeoff tips the other way. The time cost (hours instead of minutes) and the risk of a run failing partway through outweigh the savings, especially since many day-to-day coding tasks aren’t complex enough to need a frontier model in the first place, but also aren’t tolerant of multi-hour turnaround times.

The more practical takeaway is that most everyday requests don’t need a top-tier model at all. The real dividing line is task complexity: simple, well-scoped requests can run on cheaper or free infrastructure, while anything requiring an orchestrator-level model to manage many moving parts still benefits from paying for Claude or GPT directly.

Frequently Asked Questions

What is Stealth Ox Alpha?

It’s a free model available through OpenRouter from a provider called Stealth. It’s anonymous, meaning its architecture, training data, and infrastructure aren’t publicly disclosed, which is worth considering before sending sensitive data through it.

Can I use free OpenRouter models in the Claude Code desktop app?

No. The desktop app overrides the settings file and forces the use of an Anthropic model. This method requires running Claude Code through an IDE like VS Code or directly in a terminal.

Are OpenRouter’s free models always available?

Not permanently. OpenRouter periodically changes which models are offered for free, so a specific model may lose free-tier status. OpenRouter’s free models router can automatically select from whatever free models are currently active.

Why did tasks take so much longer with the free model?

Remy is new. The platform isn't.

Remy
Product Manager Agent
THE PLATFORM
200+ models 1,000+ integrations Managed DB Auth Payments Deploy
BUILT BY MINDSTUDIO
Shipping agent infrastructure since 2021

Remy is the latest expression of years of platform work. Not a hastily wrapped LLM.

Testing showed significantly slower completion times, including a landing page build that took around six hours and a data-processing task that hit repeated timeout errors. This is likely tied to rate limits, server load on free-tier infrastructure, and the model’s own processing speed.

Is it safe to use anonymous models like Stealth Ox Alpha for business projects?

It depends on the sensitivity of the data. Since the provider and origin aren’t disclosed, it’s worth avoiding proprietary code, confidential business data, or anything you wouldn’t want handled by an unverified third party.

Editorial standards

Presented by MindStudio

No spam. Unsubscribe anytime.