Install
openclaw skills install codexUse Codex safely for repo-aware coding with explicit approvals, sandbox choices, MCP boundaries, and PR-ready verification workflows.
openclaw skills install codexUser wants to use Codex as a real coding agent instead of a generic chat assistant: inspect a repo, make bounded edits, run review mode, resume work, use MCP safely, or hand work off with clear verification evidence.
Use this skill when the hard part is not "write code" but "make Codex behave safely and predictably" across CLI, exec, review, resume, MCP, app-server, cloud tasks, or local OSS-provider workflows.
Memory lives in ~/codex/. If ~/codex/ does not exist, run setup.md. See memory-template.md for structure.
~/codex/
|-- memory.md # Durable activation boundaries and operating defaults
|-- repo-profiles.md # Per-repo conventions, test surface, and blast-radius notes
|-- safety.md # Sandbox, approval, and trust defaults
|-- mcp-notes.md # Approved MCP servers, scopes, and rejection reasons
`-- incidents.md # Stuck sessions, failed commands, and recovery patterns
Load only the smallest file needed for the current blocker.
| Topic | File |
|---|---|
| Setup guide | setup.md |
| Memory template | memory-template.md |
| Install, login, and first-run checks | install-and-auth.md |
Repo execution and codex exec workflows | repo-execution.md |
| Approval modes and sandbox choices | approvals-and-sandbox.md |
| MCP, app-server, cloud, and local-provider guardrails | mcp-and-cloud.md |
| Review mode and handoff patterns | review-and-handoffs.md |
| Recovery playbooks for auth, stuck sessions, and wrong-scope work | troubleshooting.md |
codex binary installed and working on the target machine.codex login or an explicit OPENAI_API_KEY flow when that mode is chosen.git available when the task involves repository inspection, diff review, or commit-ready workflows.codex --help, subcommand help, or official docs instead of hardcoding stale assumptions.This skill treats Codex as an operational coding surface, not as generic AI advice. It covers:
codex exec and codex review workflowsresume, fork, and handoff-friendly session recovery--oss and --local-provider when the user intentionally wants local executionKeep only durable Codex operating context in ~/codex/:
exec, review, cloud, or local OSS providercodex exec for bounded non-interactive execution, and codex review for review-first tasks.resume or fork over re-describing the entire context from scratch.workspace-write as harmless -> it still writes real files and can widen a diff quickly.--dangerously-bypass-approvals-and-sandbox for routine work -> convenience becomes unreviewable risk.Only these external categories are allowed unless the user explicitly approves more:
| Endpoint | Data Sent | Purpose |
|---|---|---|
| https://api.openai.com | prompts, selected repository context, tool results, and execution metadata needed for Codex runs | Codex model execution, cloud tasks, login-linked agent work |
| https://developers.openai.com/* | doc queries only | Verify current Codex product behavior and configuration details |
| https://{user-approved-mcp-host} | request payloads required by the specific MCP server | Optional user-approved tool access beyond the local machine |
No other data is sent externally unless the user explicitly approves additional MCP servers, Git remotes, or service endpoints.
Data that leaves your machine:
Data that stays local:
~/.codex/config.toml and the user's local Codex session/config state~/codex/This skill does NOT:
--oss flows have identical riskBy using this skill, Codex work may send prompts and selected repository context to OpenAI, plus any optional user-approved MCP endpoints. Only install if you trust those services with that data.
This skill ONLY:
This skill NEVER:
Install with clawhub install <slug> if user confirms:
agentic-engineering - Strengthen the human workflow around parallel coding agents and blast-radius thinking.coding - Improve implementation quality once Codex is operating inside the right repo boundaries.git - Handle branches, diffs, and non-destructive repository recovery safely.api - Reuse structured API and request-debugging patterns when Codex integrates with services.workflow - Turn recurring Codex tasks into repeatable, reviewable execution paths.clawhub star codexclawhub sync