Claude Skill MartBrowse skillsQuick linesLearn by videoTerminal guideWhat is a Skill?
Back to list

Local Codex Delegation

Invoke the local OpenAI Codex CLI as a non-interactive sub-agent to generate, refactor, or review code from Claude Code.

Dev & CodingIntermediate1,323212AI score 8/10Last updated: Aug 8, 2026

What it does

  • Runs your locally installed Codex CLI in non-interactive codex exec mode to offload coding work.
  • Wraps calls with scripts/codex_wrapper.py, returning structured JSON (success, exit code, elapsed time, final message).
  • Auto-detects the Codex binary across desktop app, npm global, Homebrew, and which codex.
  • Forces ChatGPT Pro OAuth from ~/.codex/auth.json and explicitly forbids API keys, avoiding pay-per-use charges.
  • Lets you pick sandbox level (read-only / workspace-write / danger-full-access), model, and timeout.

Who it's for

  • Developers with a ChatGPT Pro subscription who want to split work between Claude Code and Codex.
  • Teams automating pre-commit review of uncommitted diffs.
  • Anyone offloading long code-generation runs to a separate agent.

Examples

  1. "Review the uncommitted changes in this repo with codex" → codex_wrapper.py review /path/to/repo gpt-5.5 true 300.
  2. "Have codex write a Python fibonacci function" → exec mode with workspace-write sandbox.
  3. "Check codex status" → codex_wrapper.py status to verify CLI path and OAuth health.

· · · Install guide · · ·

Try it now, no install

Paste this into Claude to use the skill without installing anything.

Read the instructions in this file and follow them to help me:
https://raw.githubusercontent.com/daymade/claude-code-skills/HEAD/local-codex/SKILL.md

What I want: (describe your task here)

If Claude can't open the link, open it yourself and paste the contents instead.

If it works for you, download the ZIP below and install it. Then it runs on its own — no pasting each time.

Install in the Claude app (no terminal)
  1. Download the ZIP with the button below.
  2. In Claude, open Settings → Capabilities and turn on 'Code execution and file creation'. (one time)
  3. Go to Customize → Skills → + → 'Upload a skill' and upload the ZIP.
Download ZIP
Install in Claude Code

Let Claude do it — paste this into Claude Code

Install the skill I found on Claude Skill Mart.
Copy the local-codex folder from the GitHub repo daymade/claude-code-skills into my ~/.claude/skills/local-codex/.
When it's done, tell me in one line what this skill can do.

Install with a command instead

git clone https://github.com/daymade/claude-code-skills.git /tmp/ccs && mkdir -p ~/.claude/skills && cp -r /tmp/ccs/local-codex ~/.claude/skills/

This is a third-party skill. Check the source repository before installing.

  1. Open a terminal.
  2. Clone the repo: git clone https://github.com/daymade/claude-code-skills.git
  3. Create the skills folder: mkdir -p ~/.claude/skills
  4. Copy the skill: cp -r claude-code-skills/local-codex ~/.claude/skills/
  5. Install Codex CLI (e.g. npm i -g @openai/codex or the Codex desktop app).
  6. Run codex login and finish the browser OAuth flow. Do NOT set OPENAI_API_KEY.
  7. Verify Python 3 is available: python3 --version
  8. Restart Claude Code and try "use codex to review my code" to trigger the skill.