local-codex
Installation
SKILL.md
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 execfor 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 OPENAI_API_KEY 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
CODEX_HOMEand store; the desktop app and CLI can share credentials. - Before login, account switching or token recovery, read the OAuth guide and select its verified existing-owner branch or independent-grant recovery; retain explicit single-owner transfers and verify actual access, process adoption and business continuation separately.
- 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.