Hook OpenCode Go into Codex on Windows. Do Not Open a Second Toolkit.

Hook OpenCode Go into Codex on Windows. Do Not Open a Second Toolkit.

Share:

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.

  1. Codex desktop or CLI on Windows, already signed into ChatGPT.
  2. Node.js 22.19+. If you do not have it, install Node 24 LTS and restart the terminal. node must be on PATH.
  3. PowerShell 5.1+. A normal user is enough. You do not need admin.
  4. An OpenCode Go subscription and a key from opencode.ai.
  5. Back up first: copy C:\Users<you>.codex\config.toml to config.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

Related Articles

Publisher

AI Nexus Team

AI Nexus Team

@hunterzhang86

8 min read

Categories