Are you the author? Sign in to claim
Claude Code plugin that routes heavy coding tasks from Claude to OpenAI Codex (GPT-5.6) as a supervised background worke
codex-router is a Claude Code plugin that lets your Claude agent delegate heavy-duty coding work to OpenAI Codex, selecting GPT-5.6 Sol, Terra, or Luna for the task and running it non-interactively in the background — while Claude writes the brief, supervises the run, reviews the diff, and verifies the result before it reaches you.
Claude is a brilliant orchestrator, but some tasks are a big mechanical grind: sweeping refactors, bulk migrations, fixing forty similar test failures, generating boilerplate from a spec. codex-router turns Claude Code and Codex into a two-agent team with one workflow:
Claude thinks. Codex grinds. Claude checks.

/codex skill for Claude Code — invoke explicitly, or let it trigger naturally on
phrases like "offload this to Codex" or "send the heavy part to GPT-5.6 Sol".CODEX_ROUTER_MODEL remains authoritative.codex exec while Claude keeps working;
no blocked terminal, no babysitting.Claude Code (CLI, desktop, or IDE extension)
OpenAI Codex CLI, installed and logged in:
npm install -g @openai/codex
codex login
GPT-5.6 routing requires Codex CLI 0.144.0 or newer.
As a Claude Code plugin (recommended):
/plugin marketplace add luckeyfaraday/codex-router
/plugin install codex-router
Or manually, by copying the skill into your user skills directory:
git clone https://github.com/luckeyfaraday/codex-router
cp -r codex-router/skills/codex ~/.claude/skills/codex
Invoke it explicitly:
/codex migrate every route in src/api/ from Express 4 error handling to the new middleware style
Or just describe the intent in plain language:
> This refactor touches ~80 files. Offload the mechanical part to Codex and review what comes back.
Good candidates to route to Codex: large refactors and renames, framework/API migrations, bulk lint or test-failure fixes, boilerplate-heavy features from a clear spec. Claude keeps for itself anything small, ambiguous, architectural, or touching secrets.
codex exec in the background with the selected model, appropriate
reasoning effort, a workspace-write sandbox, network off, and JSONL event logging.Environment variables read by the wrapper script (skills/codex/scripts/run-codex.sh):
| Variable | Default | Meaning |
|---|---|---|
CODEX_ROUTER_MODEL | gpt-5.6-terra | default model passed to codex exec -m; any account-available model ID is accepted |
CODEX_ROUTER_EFFORT | high | reasoning effort; choose a value supported by the selected model |
CODEX_ROUTER_SANDBOX | workspace-write | Codex sandbox mode |
CODEX_ROUTER_RUNS | $TMPDIR/codex-router | where run logs and artifacts are stored |
Per-run flags (-m, -e, -s, --network, --resume, -C) override the environment;
see the header of run-codex.sh.
The built-in GPT-5.6 routing choices are:
| Model ID | Best fit |
|---|---|
gpt-5.6-sol | Difficult, long-horizon, or cross-cutting implementation work |
gpt-5.6-terra | Balanced default for substantial everyday coding work |
gpt-5.6-luna | Tightly scoped, repetitive, high-throughput work |
Availability depends on the Codex account and workspace. If the chosen GPT-5.6 model is not available, update Codex first and then choose a model the account can access.
--network (or asks you about danger-full-access) only when a task
genuinely needs it..env contents.What is codex-router? A Claude Code plugin (a skill plus a wrapper script) that lets Claude delegate large, well-specified coding tasks to OpenAI Codex with model-aware GPT-5.6 routing, then review the results.
Can Claude Code use GPT-5.6? Not natively — Claude Code runs Claude models. codex-router bridges the two: Claude stays your primary agent and drives the OpenAI Codex CLI as a background worker, so you get GPT-5.6's capabilities with Claude's supervision.
Do I need both subscriptions? Yes — a Claude plan for Claude Code and an OpenAI/ChatGPT plan (or API key) for the Codex CLI. codex-router itself is free and open source.
Does this replace Claude Code subagents? No. Subagents are more Claude; this is a different model for the grind work, useful when you want a second opinion, different strengths, or to spend OpenAI quota instead of Claude quota on mechanical tasks.
Which models can the worker use?
Any model your Codex CLI can run. The skill routes by default among gpt-5.6-sol,
gpt-5.6-terra (the default), and gpt-5.6-luna; set CODEX_ROUTER_MODEL or pass -m to use
another available model. If you adapt the wrapper, it can also use open-weight local models via
Codex's --oss provider.
What happens if Codex gets it wrong? Claude catches it in review — it diffs and tests before reporting — then either fixes small gaps itself or resumes the same Codex session with corrections (sessions keep full memory).
Is my code safe? The worker is sandboxed to the workspace with no network by default and never commits. Code within the task's scope does go to OpenAI's API through your own Codex login — see Safety and privacy.
Issues and PRs welcome — see CONTRIBUTING.md. Good first contributions: support for more worker CLIs, smarter run monitoring, additional briefing templates.
MIT © luckeyfaraday
Keywords: Claude Code plugin, Claude Code skill, delegate to Codex, OpenAI Codex CLI, GPT-5.6 Sol, GPT-5.6 Terra, GPT-5.6 Luna, multi-agent coding, AI agent orchestration, Claude + Codex workflow, offload coding tasks, AI pair of agents.
1000+ skills curated from Anthropic, Vercel, Stripe, and other engineering teams
Design enforcement with memory — keeps your UI consistent across a project
Detects 37 AI writing patterns and rewrites text with human rhythm across 5 voice profiles
WCAG accessibility audit — automated scanning, manual review, remediation