{"slug": "run-ox-alpha-in-claude-code-without-touching-your-claude-subscription", "title": "Run Ox Alpha in Claude Code without touching your Claude subscription", "summary": "A developer has documented how to run the unconfirmed Ox Alpha model in Claude Code without using a Claude subscription, by scoping an OpenRouter configuration to a single project folder. The setup reroutes only that project's Claude Code sessions to OpenRouter's Ox Alpha endpoint, preserving the standard Claude Code experience while keeping other sessions on the user's subscription. The developer warns that the model's operator is unidentified and advises against using it with sensitive data.", "body_md": "Ox Alpha showed up on OpenRouter on 20 August with no author attached to it. Nobody has confirmed which lab built it — community fingerprinting points at Z.ai's GLM family, unconfirmed. It has a 1M-token context window, it's been scoring well on coding benchmarks, and it's **free during its preview window**, which is expected to run to roughly 27 August.\n\nI wanted to try it on a real project without disturbing the Claude Code setup I use every day. This is what I worked out.\n\nThe key detail most guides skip: if you configure this the obvious way, you'll silently reroute **all** your Claude sessions through OpenRouter and start burning credits instead of your subscription. The setup below scopes it to a single project folder so that doesn't happen.\n\nClaude Code normally talks to Anthropic's API. OpenRouter exposes an endpoint that speaks the same protocol, so you can point Claude Code at OpenRouter instead and have it route to Ox Alpha.\n\nYou keep the entire Claude Code experience — the tools, the agentic loop, the file editing, the terminal integration. Only the model answering changes.\n\nSign in at [openrouter.ai/keys](https://openrouter.ai/keys) and create one. It looks like `sk-or-v1-…`\n\n. Creating a key is free.\n\nIn the project you want to use Ox Alpha on, create:\n\n```\nyour-project/.claude/settings.local.json\n{\n  \"env\": {\n    \"ANTHROPIC_BASE_URL\": \"https://openrouter.ai/api\",\n    \"ANTHROPIC_AUTH_TOKEN\": \"sk-or-v1-YOUR-KEY-HERE\",\n    \"ANTHROPIC_API_KEY\": \"\",\n    \"ANTHROPIC_MODEL\": \"stealth/ox-alpha\"\n  },\n  \"permissions\": {\n    \"deny\": [\n      \"Read(.env)\",\n      \"Read(**/.env)\",\n      \"Read(**/.env.local)\",\n      \"Grep(**/.env)\",\n      \"Grep(**/.env.local)\"\n    ]\n  }\n}\n```\n\n`ANTHROPIC_BASE_URL`\n\nreroutes **everything**, not just Ox Alpha. Put it in `~/.claude/settings.json`\n\nand your normal Sonnet and Opus sessions also start going through OpenRouter — billed to OpenRouter credits rather than your Claude Pro or Max plan.\n\nProject-local keeps it contained to one folder. Every other window carries on exactly as before.\n\nIt stops Claude Code's file tools reading your `.env`\n\nfiles. Worth having when the model on the other end is operated by someone you can't identify.\n\nTreat it as a seatbelt, not a guarantee — the stronger move is simply not keeping production secrets in a project you point an unknown model at.\n\nAdd this to the project's `.gitignore`\n\n**before** you commit anything:\n\n```\n# Local Claude Code overrides — never commit\n.claude/settings.local.json\n```\n\n**File → Open Folder**, and pick that project.\n\nA separate window — not a folder tab inside an existing one. The settings are read per-window at startup.\n\n`Cmd + Esc`\n\n(or `Ctrl + Esc`\n\n), or the Claude Code icon in the activity bar.\n\nIf you'd already opened the window before saving the key, run **Developer: Reload Window** from the command palette first. The config is only read at startup.\n\nDon't skip this. A config that's being silently ignored looks identical to one that's working.\n\nType this into the Claude Code chat box:\n\nWhich model are you, and who made you?\n\nYou can also run `/model`\n\n— the picker marks the active model with a tick, and `stealth/ox-alpha`\n\nshows up as a custom entry at the bottom. Switching back to Sonnet or Opus is just `/model`\n\nagain in the same window.\n\n**Your code goes somewhere unidentified.** Anything the model reads — files, terminal output, error messages — is sent to whoever operates Ox Alpha, and nobody has publicly confirmed who that is or what their retention policy looks like. Fine for a side project. Think harder before pointing it at client work, anything under NDA, or a repo with real user data.\n\n**The prices in /model aren't your Claude plan.** Once the base URL points at OpenRouter, the picker lists OpenRouter's rates for the Claude models too. You aren't charged those unless you actually switch to one of those rows in this window — but it's a useful reminder that this window is no longer on your subscription.\n\n**There's no /status command.** Not every build has one, and you don't need it. Ask the model what it is, or run\n\n`/model`\n\nand see what's ticked.**Slash commands don't autocomplete at all.** You're probably typing in the VS Code command palette rather than the Claude Code chat input. Click into the chat box first.\n\n**It still answers as Claude.** Almost always one of three things: the window was opened before you saved the key (reload it), the file is in the wrong place (it must be `.claude/settings.local.json`\n\n*inside the folder you opened*), or the JSON is malformed — a trailing comma is enough to break it silently.\n\n**Authentication errors.** Check `ANTHROPIC_API_KEY`\n\nis present and set to an empty string. It looks redundant, but leaving it out lets an existing Anthropic key take precedence and the request goes to the wrong place.\n\n**Model not found, or it suddenly costs money.** Stealth models are temporary by design — they get renamed, repriced, or withdrawn when the preview ends. Check [the model page](https://openrouter.ai/stealth/ox-alpha) for the current slug and pricing.\n\nFor the length of the free window, it costs nothing to find out, and the setup above means you can switch back with one `/model`\n\ncommand.\n\nThe more interesting use I've found isn't replacing Claude — it's running **two windows side by side** on the same codebase: one on my Claude subscription, one on Ox Alpha, each in its own git worktree working on a different feature. That's a longer post.\n\nThe same environment variables work in the terminal CLI too — export them before launching `claude`\n\n.\n\n*Written 25 August 2026, while Ox Alpha's provenance was still unconfirmed. I drafted this with AI assistance and ran every step on my own machine before publishing.*", "url": "https://wpnews.pro/news/run-ox-alpha-in-claude-code-without-touching-your-claude-subscription", "canonical_source": "https://dev.to/aqsainayat/run-ox-alpha-in-claude-code-without-touching-your-claude-subscription-34c2", "published_at": "2026-08-24 20:00:27+00:00", "updated_at": "2026-08-24 20:14:01.621962+00:00", "lang": "en", "topics": ["developer-tools", "large-language-models", "ai-tools"], "entities": ["Ox Alpha", "OpenRouter", "Claude Code", "Anthropic", "Z.ai"], "alternates": {"html": "https://wpnews.pro/news/run-ox-alpha-in-claude-code-without-touching-your-claude-subscription", "markdown": "https://wpnews.pro/news/run-ox-alpha-in-claude-code-without-touching-your-claude-subscription.md", "text": "https://wpnews.pro/news/run-ox-alpha-in-claude-code-without-touching-your-claude-subscription.txt", "jsonld": "https://wpnews.pro/news/run-ox-alpha-in-claude-code-without-touching-your-claude-subscription.jsonld"}}