Agent skill · daymade
local-codex
Launches and manages the local OpenAI Codex CLI as a non-interactive coding sub-agent via ChatGPT OAuth, never API keys. Use to delegate coding tasks to Codex, run codex exec, generate or refactor code, or get a Codex code review; phrases like 'codex', 'run codex', 'codex exec', 'delegate to codex'.
What it needs
About 5k tokens when loaded.
What this skill does
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 GPT-5.5 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 OPENAIAPIKEY or pass API keys for this workflow. 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 CODEXHOME and store; the desktop app and CLI can share credentials. Before 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. Codex CLI Path The skill auto-detects Codex CLI in this order: 1. CODEXBIN env var, if set — explicit override. A non-executable path fails loudly instead of silently falling through to a different build (that would make whatever the wrapper measured unattributable). 2. which codex — the executable first on the wrapper process's PATH, including npm global installs under nvm (~/.nvm/versions/node//bin/codex). This lookup does not execute an interactive shell's alias or function. 3. …
How to use it
Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:
@skills daymade/local-codex--1218df