Hook OpenCode Go into Codex on Windows. Do Not Open a Second Toolkit.
The last piece, What Locks Codex Is the Picker, Not the Models, made the judgment: you already pay for OpenCode Go, yet Codex still shows Sol, Terra, and Luna. The expensive move is not buying another model. It is opening another toolkit for models you already bought.
This piece turns that judgment into one narrow Windows path. Enable only OpenCode Go. Do not turn on a local provider. Do not replace the ChatGPT login. When it works, a new task picker should show official models and Go models together: opencode-go/grok-4.5, opencode-go/glm-5.2, opencode-go/kimi-k3, opencode-go/deepseek-v4-flash, opencode-go-messages/minimax-m3.
The community project is still codex-router. It changes the local picker, not your account.
Satisfy these first
Skip one of them and the picker will only say setup needed. You will think the router is broken.
- Codex desktop or CLI on Windows, already signed into ChatGPT.
- Node.js 22.19+. If you do not have it, install Node 24 LTS and restart the terminal.
nodemust be on PATH. - PowerShell 5.1+. A normal user is enough. You do not need admin.
- An OpenCode Go subscription and a key from opencode.ai.
- Back up first: copy
C:\Users<you>.codex\config.tomltoconfig.toml.bak.
WSL Codex reads ~/.codex. The desktop app reads C:\Users<you>.codex. For the desktop app to pick this up:
$env:CODEX_HOME = "$env:USERPROFILE\.codex"
1. Let OpenCode recognize the subscription first
Do not install the router yet. Let OpenCode write the Go login locally.
Open opencode, run /connect in the TUI, choose OpenCode Go, sign in at opencode.ai, and paste the key. Then run /models and confirm you can see Grok / GLM / Kimi / DeepSeek.
The credential lands in %USERPROFILE%.local\share\opencode\auth.json. If this step fails, the Codex picker will only show setup needed. The router will not invent a subscription. It only translates a login that already exists.
2. Install Codex Router with only OpenCode Go
$installer = Join-Path $env:TEMP "codex-router-install.ps1"
Invoke-WebRequest https://raw.githubusercontent.com/duolahypercho/codex-router/main/install.ps1 -OutFile $installer
powershell.exe -NoProfile -ExecutionPolicy Bypass -File $installer -Target codex -Providers opencode-go
Select or pass only opencode-go. Do not enable a local provider. The script checks or installs Node dependencies, reads the key from local auth.json, or opens a no-echo local prompt so you can paste it. It then writes two BEGIN/END codex-router-managed blocks into config.toml and registers a per-user background service.
If a company machine blocks scripts, use the -ExecutionPolicy Bypass -File line above. Do not change the global policy.
3. Confirm the provider is actually ready
cd $env:USERPROFILE\.codex\codex-router
.\codex-router.ps1 providers
.\codex-router.ps1 providers enable opencode-go
.\codex-router.ps1 doctor
You want opencode-go as SHOW + ready, the background service running, and native OpenAI login still available. If provider-key still says needs-key:
.\codex-router.ps1 provider-key opencode-go set
Paste the key again. Do not restart Codex before it is ready. The picker will scare you with a catalog that is not finished writing.
4. Quit Codex completely, then reopen
Choose Quit from the tray or the app menu. Closing the window is not enough. Reopen it, start a new task, and the picker should show official models and Go models together.
If they are missing:
.\codex-router.ps1 refresh-catalog
Then quit completely and reopen once more. The router changes the local catalog. Codex will not reread it until it restarts.
The usual traps are almost never the model
If PATH has no node, the installer may say Unknown command: "pm". Install Node 24, restart the terminal, or run npm.cmd ci --omit=dev by hand and rerun the installer.
If the desktop app ignores the config, you probably installed it in WSL while the Windows process is still looking at another CODEX_HOME. Confirm the desktop app uses %USERPROFILE%.codex.
If the picker only says setup needed, go back to OpenCode /models before you blame the router. If Go itself cannot see the subscription, Codex cannot invent Grok.
Uninstall is clean:
.\codex-router.ps1 uninstall
It removes only the router's own config and service. The ChatGPT login stays. That config.toml.bak from the start is the rollback point.
The last judgment
This is a community project. Cloud tasks and Computer Use still ride native GPT because they depend on the ChatGPT account. Use Go models for high-frequency daily work. Seeing Grok, GLM, Kimi K3, DeepSeek V4 Flash, and MiniMax M3 in the picker does not mean they took over Codex account features.
On Windows, the job is not to learn another harness. It is to make a subscription you already bought appear in the picker you open every day.
Related entries: Codex CLI, opencode, Grok 4.6, GLM-5.2, Kimi K3, DeepSeek V4 Flash, MiniMax M3.
Comments
No comments yet. Be the first to comment!
Related Tools
OpenCode
opencode.ai
MIT open-source coding agent for terminal, IDE, and desktop. 198k GitHub stars. Bring any model, or use free included models and Zen.
Pi
pi.dev
Minimal MIT terminal harness from Mario Zechner. About 85.8k GitHub stars. Free CLI; you pay the model provider.
Codex CLI
learn.chatgpt.com/docs/codex/cli
OpenAI's terminal coding agent: inspect the local repo, edit files, run tools, review diffs, and automate with codex exec. Billed through ChatGPT plans.
Related Articles
What Locks Codex Is the Picker, Not the Models
You already pay for OpenCode Go, Grok, and Z.ai, but the Codex picker still shows mostly GPT. The community project codex-router does not teach another install ritual. It puts subscriptions you already bought back into the selector, keeps keys on the machine, and leaves native GPT alone.
Seven AI Coding CLIs, Six Months: No Matter How Strong the Model, Work Needs Supervision
Claude Code, Codex, opencode, pi, omp and DeepSeek Harness all have personalities. After six months of deep use I run a division of labor: pi for the fastest cheapest reviews, omp for complex PRs, DeepSeek Harness on V4 Flash for high-frequency low-cost review, and Claude Code, Qoder and Cursor for writing. No matter how strong the model, work needs supervision — ideally from an independent third party.
Claudesidian: Transform Obsidian into an AI-Powered Second Brain
Discover Claudesidian, an open-source project that perfectly integrates Obsidian with Claude Code. Built-in PARA method, custom commands, and automated workflows for a complete idea-to-implementation solution.