local-codex

local-codex is a skill for Claude Code from daymade/claude-code-skills. It costs 144 tokens per session (2,583 once invoked), scanned A, original, MIT.

A skill for launching the local OpenAI Codex command-line agent as a coding helper. It can hand coding tasks to Codex for generation, refactoring, or review.

In plain words
What is it for?
Use it to run non-interactive Codex tasks, generate or refactor code, and request code reviews from the local command line.
Why use it?
It gives developers a documented way to delegate coding work to a local Codex process using their ChatGPT Pro login.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: mentions subagents; runs codex exec; mentions Codex.

Part of the daymade-codex plugin — 5 skills shipped together

Good fit Use it to run non-interactive Codex tasks, generate or refactor code, and request code reviews from the local command line.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/daymade/claude-code-skills/local-codex
About the project

Claude Code Skills Marketplace is a collection and marketplace of skills, plugins, agents, and instructions that extend Claude Code with specialized development workflows. It is for developers who want to install existing workflows or create, validate, and package their own Claude Code skills.

daymade/claude-code-skills · 1,557 stars · on GitHub

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.

Any agent
npx skills add daymade/claude-code-skills --skill local-codex
Clone the repo
git clone --depth 1 https://github.com/daymade/claude-code-skills

Made for: Claude Code.

Or install daymade-codex, the plugin that ships this one along with the rest of its 5 skills.

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 local-codex

README.md
[![agentmods](https://agentmods.dev/badge/skills/daymade/claude-code-skills/local-codex/github.svg)](https://agentmods.dev/skills/daymade/claude-code-skills/local-codex)
Your own site
<a href="https://agentmods.dev/skills/daymade/claude-code-skills/local-codex"><img src="https://agentmods.dev/badge/skills/daymade/claude-code-skills/local-codex/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 local-codex

Your own site · 80×15
<a href="https://agentmods.dev/skills/daymade/claude-code-skills/local-codex"><img src="https://agentmods.dev/badge/skills/daymade/claude-code-skills/local-codex.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 144 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,583 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 2 findings, up to high

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • high Excessive Agency · line 106
    Skill selects an external model or provider that may use a different account or billing plan than the operator expects. Undisclosed model switches can cause unexpected cost or quota consumption.
    Fix: Remove the model/provider override or disclose it prominently and require explicit operator approval before invoking an external coding CLI or billed model.
  • high Excessive Agency · line 108
    Skill selects an external model or provider that may use a different account or billing plan than the operator expects. Undisclosed model switches can cause unexpected cost or quota consumption.
    Fix: Remove the model/provider override or disclose it prominently and require explicit operator approval before invoking an external coding CLI or billed model.
How audits are shown
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.00144 $0.02583
Opus 5.5 $0.00058 $0.01033
Sonnet 5.5 $0.00029 $0.00517
Haiku 4.5 $0.00014 $0.00258

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

Security

Grade A, and why

local-codex 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 2d ago.

The scan reads SKILL.md. This mod also ships 4 executable files (scripts/codex_wrapper.py, scripts/entry_identity.py, scripts/test_codex_wrapper.py, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

daymade-codex/local-codex/SKILL.md · 209 lines

How it starts

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

Local Codex

Delegate coding tasks to the local OpenAI Codex CLI agent using the authorized ChatGPT account's OAuth access.

When to Use

  • User wants to generate, refactor, or review code via Codex
  • User wants to run codex exec for non-interactive tasks
  • User wants to use Codex's non-interactive coding agent capabilities
  • User mentions "codex", "run codex", "delegate to codex"

Authentication (ChatGPT OAuth)

CRITICAL: Use ChatGPT OAuth through the selected credential store. Do NOT set OPENAI_API_KEY, CODEX_API_KEY, or pass API keys for this workflow (the bundled wrapper strips both environment variables before launching Codex). Keep the authentication route separate from the account's allowance and extra Credit policy; OAuth does not guarantee that long work cannot consume extra Credit.

  • Resolve the actual CODEX_HOME and store; the desktop app and CLI can share credentials.
  • For a session managed by a project's Account Manager, enter that project's routine-switch SOP first. Use its deployed operation with the explicit target SID or its documented current-session form; let that operation perform its own binding checks. Query and recover the original request ID. Missing deployed behavior goes to a separately scoped repair, not builds, upgrades or broad quota refreshes inside the routine switch. An unknown managed request stays with that manager; it does not authorize raw RPC or a new login.
  • For other login, account switching or token recovery, read the OAuth guide. For a running native owner, compare its account with the saved login first; choose saved-login adoption, token recovery or new authorization from the observed state. Retain independent-grant recovery, explicit single-owner transfers and separate access, process-adoption and business-continuation checks.
  • Before a native quota query, read refresh ownership; a nominally read-only query can refresh credentials.
  • For quota-driven continuation on another authorized account, use the included-usage check before substantial execution; cached login or a new default file is not that check.

Read the full file on GitHub · 209 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. 2d ago Changed · +3 lines 64c9f65bbb33
  2. 3d ago Changed · +1 lines b5d721c924ba
  3. 8d ago Changed e353b8e7ae90
  4. 9d ago Changed · +4 lines · +9 tokens per session 7c6a10ecc6f5
  5. 14d ago Changed · +1 lines 8e02f2ada059
  6. 16d ago Changed · +3 lines · +52 tokens per session b83789590a20
  7. 17d ago Changed · +7 lines 76cb11239c5f
  8. 22d ago Changed · +4 lines c43dc76b6c9d
  9. 1mo ago Changed · +5 lines 3127eb145776
  10. 1mo ago First seen · 181 lines · 83 tokens per session scan A 631771748cfe

Subscribe to this mod's changes

local-codex is a skill published in the GitHub repository daymade/claude-code-skills (1,557 stars, last pushed today), licensed MIT. It adds 144 tokens to every session and 2,583 once invoked, about $0.0006 per session on Opus 5.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

local-codex compared with skills from other repositories

local-codex next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
local-codexdaymade/claude-code-skillsSkill1.6ktodayMITA144Claude Code
imagegenopenai/codexSkill137ktodayApache-2.0A113Codex
playwright-climicrosoft/playwrightSkill102ktodayApache-2.0A19Claude Code
browser-automationopenclaw/openclawSkill396ktodayMITA36Claude Code
free-llm-apismnfst/awesome-free-llm-apisSkill15kyesterdayCC0-1.0A113Claude Code, Codex
systematic-debuggingobra/superpowersSkill331k4d agoMITA21Claude Code
next-cache-components-adoptionvercel/next.jsSkill144ktodayMITA95Claude Code