codex-setup

codex-setup is a skill for Claude Code from LeeJuOh/claude-code-zero. It costs 30 tokens per session (1,302 once invoked), scanned B, original, MIT.

A setup helper for the Codex command-line tool, which lets developers use Codex from a terminal. It checks installation, sign-in, the official plugin, and saved settings.

In plain words
What is it for?
Use it to check Codex status, sign in, install or verify the command-line tool and official plugin, and set default model or effort options.
Why use it?
It helps find setup problems before a command fails. It also puts model and reasoning-effort defaults in the Codex configuration file.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: names the AskUserQuestion tool; reads ~/.codex paths; mentions Codex.

Runs only inside its plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else. Install the plugin, not this.

Part of the codex-advisor plugin — 10 skills, 1 agent shipped together

Good fit Use it to check Codex status, sign in, install or verify the command-line tool and official plugin, and set default model or effort options.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.

Claude Code
/plugin marketplace add LeeJuOh/claude-code-zero
Claude Code
/plugin install codex-advisor

Made for: Claude Code.

Or install codex-advisor, the plugin that ships this one along with the rest of its 10 skills, 1 agent.

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-setup

README.md
[![agentmods](https://agentmods.dev/badge/skills/leejuoh/claude-code-zero/codex-setup/github.svg)](https://agentmods.dev/skills/leejuoh/claude-code-zero/codex-setup)
Your own site
<a href="https://agentmods.dev/skills/leejuoh/claude-code-zero/codex-setup"><img src="https://agentmods.dev/badge/skills/leejuoh/claude-code-zero/codex-setup/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for codex-setup

Your own site · 80×15
<a href="https://agentmods.dev/skills/leejuoh/claude-code-zero/codex-setup"><img src="https://agentmods.dev/badge/skills/leejuoh/claude-code-zero/codex-setup.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 30 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,302 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.00030 $0.01302
Opus 5.5 $0.00012 $0.00521
Sonnet 5.5 $0.00006 $0.00260
Haiku 4.5 $0.00003 $0.00130

Measured 9d ago against content hash d8d5807f7d2c, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade B, and why

codex-setup scanned grade B with 1 finding 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 9d ago.

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.

Reads agent configuration directoriesmediumAgent snooping

.claude/, .codex/, .gemini/ hold keys, settings and other credentials a mod has no legitimate need for.

Preflight check and `~/.codex/config.toml` configuration helper for codex-advisor.
plugins/codex-advisor/skills/codex-setup/SKILL.md · 106 lines

How it starts

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

Codex Setup & Configuration

Preflight check and ~/.codex/config.toml configuration helper for codex-advisor.

Mode Selection

Parse $ARGUMENTS:

Input Action
--status or no args Run preflight + show current config
--model MODEL Set default model in config.toml
--effort LEVEL Set reasoning effort in config.toml
Combined flags Apply all settings

Preflight Check

One call finds the Official Codex plugin and asks its companion what is installed and signed in:

"${CLAUDE_PLUGIN_ROOT}/scripts/codex-job.sh" setup

If it fails with Official Codex plugin not found, guide the user through the full installation process:

  1. Tell the user to run these commands in order (they must type these themselves since they are interactive CLI commands):
    • /plugin marketplace add openai/codex-plugin-cc — adds the Official Codex marketplace
    • /plugin install codex@openai-codex — installs the plugin from that marketplace
    • /reload-plugins — activates the newly installed plugin
  2. After the user completes the steps, re-run the check to verify.

Do NOT just print the steps and move on. Wait for the user to complete them. Until then, report the CLI and authentication rows as unknown — only the companion checks them.

Otherwise fill the status report from the JSON: codex.available and codex.detail for the CLI, auth.loggedIn and auth.detail for authentication. Relay nextSteps, except the review-gate one — --enable-review-gate belongs to the Official plugin's own /codex:setup and Stop hook, which codex-advisor does not wrap.

Configuration Management

Read current config

"${CLAUDE_PLUGIN_ROOT}/scripts/codex-job.sh" config

Set Model / Effort (--model, --effort)

Both flags are handled by one call. Empty string = no change for that field:

"${CLAUDE_PLUGIN_ROOT}/scripts/apply-codex-config.py" "<model or empty>" "<effort or empty>"

The script's first stdout line is:

Read the full file on GitHub · 106 lines

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. 9d ago Changed · -22 lines · -20 tokens per session d8d5807f7d2c
  2. 22d ago Changed 97fc15b55184
  3. 26d ago Changed 36e937173f5f
  4. 1mo ago First seen · 128 lines · 50 tokens per session scan B ef6c98f1bb51

Subscribe to this mod's changes

codex-setup is a skill published in the GitHub repository LeeJuOh/claude-code-zero (52 stars, last pushed 3d ago), licensed MIT. It adds 30 tokens to every session and 1,302 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it B with 1 finding (reads agent configuration directories). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.