add-codex
Use Codex (CLI + AppServer) as the full agent provider — planning, tool orchestration, native compaction, MCP tools, session resume — in place of the Claude Agent SDK. ChatGPT subscription or OPENAI_API_KEY. Per-group via agent_provider. Distinct from using OpenAI as an MCP tool (where Claude remains the planner).
npx skills add majiayu000/claude-skill-registry --skill add-codex --agent codex
Same command for any agent — swap --agent for claude-code, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# Codex agent provider NanoClaw runs agents in a long-lived **poll loop** inside the container. The backend is selected with **`AGENT_PROVIDER`** (`claude` | `opencode` | `codex` | `mock`). Trunk ships with only the `claude` provider baked in. This skill copies the Codex provider files in from the `providers` branch, wires them into the host and container barrels, updates the Dockerfile to install the Codex CLI, and rebuilds the image. The Codex provider runs `codex app-server` as a child process and speaks JSON-RPC over stdio. That gives it native session resume, streaming events, MCP tool access, and `thread/compact/start` compaction — same feature bar as the Claude Agent SDK, without the Anthropic-only lock-in. ## Install ### Pre-flight If all of the following are already present, skip to **Configuration**: - `src/providers/codex.ts` - `container/agent-runner/src/providers/codex.ts` - `container/agent-runner/src/providers/codex-app-server.ts` - `container/agent-runner/src/providers/codex.factory.test.ts` - `import './codex.js';` line in `src/providers/index.ts` - `import './codex.js';` line in `container/agent-runner/src/providers/index.ts` - `ARG CODEX_VERSION` and `"@openai/co
- Install
- Pre-flight
- 1. Fetch the providers branch
- 2. Copy the Codex source files
- 3. Append the self-registration imports
- 4. Add the Codex CLI to the container Dockerfile
- 5. Build
- Configuration
- Option A — ChatGPT subscription (recommended for individuals)
- Option B — API key (recommended for CI or API billing)
- Option C — BYO OpenAI-compatible endpoint (experimental)
- Per group / per session
- Operational notes
- Verify
git fetch origin providers git show origin/providers:src/providers/codex.ts > src/providers/codex.ts git show origin/providers:container/agent-runner/src/providers/codex.ts > container/agent-runner/src/providers/codex.ts git show origin/providers:container/agent-runner/src/providers/codex-app-server.ts > container/agent-runner/src/providers/codex-app-server.ts git show origin/providers:container/agent-runner/src/providers/codex.factory.test.ts > container/agent-runner/src/providers/codex.factory.test.ts pnpm run build # host pnpm exec tsc -p container/agent-runner/tsconfig.json --noEmit # container typecheck codex login grep -q "./codex.js" container/agent-runner/src/providers/index.ts && echo "container barrel: OK" grep -q "./codex.js" src/providers/index.ts && echo "host barrel: OK"
What does the add-codex skill do?
Use Codex (CLI + AppServer) as the full agent provider — planning, tool orchestration, native compaction, MCP tools, session resume — in place of the Claude Agent SDK. ChatGPT subscription or OPENAI_API_KEY. Per-group via agent_provider. Distinct from using OpenAI as an MCP tool (where Claude remains the planner).
How do I install it?
Run `npx skills add majiayu000/claude-skill-registry --skill add-codex --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From majiayu000/claude-skill-registry, a repository with 534 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.
