← all entries
A-TIER technique

Claude Code on OpenRouter — keep the harness, swap in cheaper models

nateherkai · 2026-04-09 · in AI Saves, Vol. 5
Open post ↗

100k ft — What is this?

Claude Code on OpenRouter — keep the harness, swap in cheaper models
techniqueA-tier

50k ft — Why care?

When you hit Claude Code's usage limit, you can point it at OpenRouter instead of Anthropic: create an OpenRouter API key and apply a config that reroutes the API base. You keep the agent loop, skills and harness while running whichever model you pick, including free open-weight ones. The exact config is gated behind a comment-for-link.
LLMagentsopen sourceprompt engineeringsoftware development

10k ft — Key takeaways

• Claude Code's harness can run on non-Anthropic models via OpenRouter • Expect weaker tool-use from small free models • Useful as overflow when you hit plan limits

5k ft — Tools & techniques

Anthropic, Claude Code, OpenRouter AI agents, API base override, API integration, model routing

1k ft — Deep-dive / try it

Comment 'OPEN' and I'll send it over.
Transcript excerpt
Imagine if you could use Cloud Code for free, because once you hit that limit, it literally stops you mid-built. Here's exactly how to get around that. Go to OpenRouter and create an API key. Then comes the part that most people miss, which is that you need to paste a config prompt into your Cloud setup through something like anti-gravity. That prompt rewires Cloud Code to use OpenRouter instead of Anthropic. And now you've got Cloud Code running with whatever model that you picked, even the free open source ones. You still get the agent loop, and the skills, and the harness that's built around Cloud Code, but you're using a different model, so it's cheaper or potentially free. So if you just want to keep building without burning credits, then comment open and I'll send you the exact config prompt in full setup.

More from @nateherkai

Collection: AI Saves, Vol. 5