codex-router

codex-router is a skill for Claude Code, Codex from PracticalSwan/agent-skills. It costs 157 tokens per session (1,546 once invoked), scanned A, original, MIT.

A guide for using Codex with custom models through the codex-router proxy, which relays the app's tools to the model.

In plain words
What is it for?
It is for orienting custom-model sessions, calling routed app tools correctly, and selecting the right instructions for threads, browser work, or computer use.
Why use it?
It explains how the available tools are exposed and which companion instructions to read before using browser, computer, thread, or navigation features.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/practicalswan/agent-skills/codex-router
Any agent
npx skills add PracticalSwan/agent-skills --skill codex-router
Clone the repo
git clone --depth 1 https://github.com/PracticalSwan/agent-skills

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for codex-router

README.md
[![agentmods](https://agentmods.dev/badge/skills/practicalswan/agent-skills/codex-router.svg)](https://agentmods.dev/skills/practicalswan/agent-skills/codex-router)
Your own site
<a href="https://agentmods.dev/skills/practicalswan/agent-skills/codex-router"><img src="https://agentmods.dev/badge/skills/practicalswan/agent-skills/codex-router.svg" alt="Measured on agentmods" height="20"></a>
Per session 157 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,546 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00157 $0.01546
Opus 5 $0.00078 $0.00773
Sonnet 5 $0.00031 $0.00309
Haiku 4.5 $0.00016 $0.00155

Measured yesterday against content hash 00b848dc0220, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

codex-router scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured yesterday.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

codex-router/SKILL.md · 129 lines

How it starts

The opening of the file, as written. The whole thing — 129 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Codex Router (custom models in the Codex app)

You are a custom model. The Codex app routes your traffic through codex-router.

How your tools work

  • The app's native tools appear in your tool list with flattened names: codex_app__create_thread, codex_app__list_threads, mcp__node_repl__js, mcp__peekaboo__create_task, and so on.
  • Call them with exactly those names. The router restores the original namespace (for example create_thread in codex_app) before the app sees the call, so the app executes it natively.
  • The router never executes an app tool. It only relays definitions and results. If a call fails, fix your arguments; do not try to run the tool yourself.
  • Never spawn a side-channel driver. Do not start your own node_repl process, do not fake MCP metadata, do not write driver scripts. The tools you need are already in your tool list.

Before each kind of work, read the matching skill

  • Threads, automations, navigation: read codex-app-threads.
  • In-app browser: read codex-in-app-browser.
  • Computer use: read codex-computer-use.

When a tool rejects your arguments

The app answers received invalid arguments. when you missed a required field. Stop guessing. Read the matching skill for the exact shape, then retry once with the correct arguments. Repeated guessing burns tokens and turns.

Golden rules

  1. Use the tools you were given. Do not build workarounds.
  2. Read the companion skill before the relevant work.
  3. When a call fails, fix the arguments from the skill, then retry.
  4. A turn with no tool call ends the task. After a tool result, if more work still needs a tool, call it in the same turn. Do not only announce the next step. Text-only is for when the user's request is fully done.

Spawned threads and model inheritance

For a new local Codex thread, omit the model field unless the user explicitly requested one. The router selects the parent routed model. An explicit model is never overridden. Follow-up messages retain the target thread's settings, and cloud tasks choose their model outside this relay.

Read the full file on GitHub · 129 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. yesterday Changed 00b848dc0220
  2. 5d ago First seen · 129 lines · 157 tokens per session scan A 4e374b066310

Subscribe to this mod's changes

codex-router is a skill published in the GitHub repository PracticalSwan/agent-skills (13 stars, last pushed 4d ago), licensed MIT. It adds 157 tokens to every session and 1,546 once invoked, about $0.0008 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

course-guide

Topic router for the AI Engineering from Scratch curriculum. Give it a topic, a question, or a bug you are fighting, and it points at the exact lessons that teach it, plus the right next command. Trigger phrases: "where do I learn", "which lesson covers", "course guide", "I'm stuck on", "what should I do next", "teach…

rohitg00/ai-engineering-from-scratch · 96 tokens

course-guide

AI Engineering from Scratch 课程的主题路由器。给它一个主题、问题或正在处理的 bug, 它会指出精确教授它的课程,以及下一条正确命令。触发短语: “在哪里学习”、“哪节课涵盖”、“课程导航”、“我卡在”、“接下来该做什么”、 “教我 MCP”、“教我 Agent Skills”、“在哪里准备 Claude certification”,或 "where do I learn", "which lesson covers", "course guide", "I'm stuck on", "what should I do next", "teach me MCP", "teach me Agent…

fancyboi999/ai-engineering-from-scratch-zh · 136 tokens

auto

Intent-classified router, the front door to OrchestKit and the DEFAULT entry point for any goal-shaped request. Classifies a plain-English goal and routes it to the right specialist skill. Routing is never overhead, so use it even when the target skill seems obvious; skip only when already executing inside another…

yonatangross/orchestkit · 99 tokens

frontmcp-config

Use when configuring a FrontMCP server through frontmcp.config or the @FrontMcp options. Covers auth modes (public, transparent, local, remote), OAuth plus credential vault and secureStore, CORS, HTTP port / entry-path prefix / unix socket, security headers (CSP, HSTS, X-Frame-Options, X-Content-Type-Options), rate…

agentfront/frontmcp · 187 tokens

frontmcp-observability

Use when adding tracing, structured logging, metrics, or monitoring to a FrontMCP server. Covers zero-config OpenTelemetry distributed tracing across all flows; the this.telemetry API for custom spans, events, and attributes in tools, plugins, agents, and skills; structured JSON logging with trace correlation and…

agentfront/frontmcp · 177 tokens

a0-plugin-router

Main entry point for all Agent Zero plugin tasks. Routes to specialist skills for creating, reviewing, contributing, managing, or debugging plugins. Use when the user mentions plugins, asks how the plugin system works, wants to build/install/uninstall/publish/debug a plugin, or asks about the Plugin Hub.

agent0ai/agent-zero · 65 tokens