codex-cli

Instructions for driving the installed Codex command-line program directly. A command-line program is software controlled by typing commands in a terminal.

In plain words
What is it for?
Use it when a user explicitly asks for native Codex CLI work, including Codex searches, tool use, plugins, skills, browser work, or subagents.
Why use it?
It defines when to use Codex for raw CLI work and when to defer to a job-routing system. It also keeps the command-line program responsible for its own settings, models, tools, and sessions.

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/gitguffaw/codex-router/codex-cli
Any agent
npx skills add gitguffaw/codex-router --skill codex-cli
Clone the repo
git clone --depth 1 https://github.com/gitguffaw/codex-router

Made for: Claude Code, Codex.

Per session 89 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,192 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.00089 $0.02192
Opus 5 $0.00044 $0.01096
Sonnet 5 $0.00018 $0.00438
Haiku 4.5 $0.00009 $0.00219

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

Security

Grade A, and why

codex-cli 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.

plugins/codex-cli/skills/codex-cli/SKILL.md · 195 lines

How it starts

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

Codex CLI

Operate Codex like a careful human CLI user. Let the installed codex binary own authentication, configuration, models, sessions, tools, plugins, and execution. Do not recreate those features in the outer harness.

Prefer Codex Router When Present

If the codex-router plugin is installed in this session, or the user asks for /codex-router:*, Router-managed jobs, /codex-router:status, /codex-router:result, /codex-router:cancel, context packs, rescue, or orphan recovery, stop using this skill and follow codex-router instead. This skill is only for explicit raw-CLI work.

Boundary

  • Outer harness and inner Codex are separate agents and tool layers.
  • Satisfy requests for Codex search, MCP, plugins, skills, browser, tools, or subagents inside Codex.
  • Do not silently replace failed Codex work with outer-agent work.
  • Do not claim durable background tracking, orphan recovery, or cross-session cancellation. This skill invokes native processes only.
  • Preserve user changes and inspect the resulting diff before reporting success.

Preflight

Probe only what the request needs:

codex --version
codex <command> --help
codex debug models
codex features list
codex mcp list
codex plugin list

If codex is unavailable, stop and report that fact. If authentication or configuration fails, run codex doctor and return its remediation; do not invent an alternate login flow.

Treat CLI help and the live model catalog as authoritative over this skill. Flag locations and available commands change over time.

Resolve Models and Effort

Do not hardcode aliases. Read codex debug models, whose current output contains .models[] records with slugs, display names, visibility, supported reasoning levels, and speed tiers.

When the user names a model or shorthand such as sol, terra, luna, or spark:

  1. Match it case-insensitively against the live slug and display name.
  2. Require one visible match.
  3. Verify the requested reasoning effort appears in supported_reasoning_levels[].effort.
  4. Verify requested speed tiers appear in the model's advertised tiers.
  5. Fail explicitly if a requirement is unavailable; do not silently downgrade.

Read the full file on GitHub · 195 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 First seen · 195 lines · 89 tokens per session scan A c12b0ccc5ffa

Subscribe to this mod's changes

codex-cli is a skill published in the GitHub repository gitguffaw/codex-router (2 stars, last pushed 4d ago), licensed Apache-2.0. It adds 89 tokens to every session and 2,192 once invoked, about $0.0004 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-31.

Related

Other skills, from other repositories

univer-pro-integrate

Integrate current Univer Pro features into browser applications. Use for licensed Sheets, Docs, Slides, Bases, Boards, or PDFs; advanced Sheets presets; collaboration and edit history; Office import/export; printing; pivot tables; charts; sparklines; shapes; Pro workers; license ordering; or Pro Facade APIs.

dream-num/skills · 70 tokens

codedrobe-adapter-dev

Add, inspect, repair, or validate CodeDrobe Core adapters for Chromium/Electron AI desktop applications. Use when supporting a new app, updating Codex or WorkBuddy compatibility after an app release, discovering installation paths or CDP targets, selecting stable DOM landmarks, adding renderer profiles or…

CodeDrobe/skills · 81 tokens

html-report-stable-base

Use when supplied content or an existing HTML report needs a stable editable browser shell in either long-screen single-page mode or 16:9 PPT mode, including global and per-element styling, ECharts canvas support, standalone HTML delivery, or optional PPTX export in PPT mode.

Lucas-Fong/html-report-stable-base · 61 tokens

webmcp

Implements and debugs browser WebMCP integrations in JavaScript or TypeScript web apps. Use when exposing imperative tools through document.modelContext (with a navigator.modelContext fallback), annotating HTML forms for declarative tools, handling agent-invoked form flows, or validating WebMCP behavior in the current…

webmaxru/is-ai-native · 87 tokens

general-video

Author or edit a custom HyperFrames composition when no specialized workflow fits, or when BRIEF.md sets flow: companion. Use for longer or multi-scene pieces, brand and sizzle reels, montages, static loops, static title cards, footage remixes, and freeform builds. Use motion-graphics instead for a short unnarrated…

heygen-com/hyperframes · 92 tokens

use-agent-browser-for-airi

Test AIRI display-model imports with agent-browser across stage-tamagotchi Electron, stage-web, and stage-pocket mobile web layouts. Use when uploading and verifying contributor-supplied Live2D ZIP, VRM, or MMD ZIP/PMX/PMD files through AIRI's model selector, including onboarding bypass, format-specific import…

moeru-ai/airi · 87 tokens