Agent skill · AI & Agents

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).

majiayu000github.com/majiayu000GitHub ↗
codexclaude-codeMIT
Install
npx skills add majiayu000/claude-skill-registry --skill add-codex --agent codex

Same command for any agent — swap --agent for claude-code, cursor, copilot.

Facts
Files in the skill folder: 2
SKILL.md size: 9 KB
Bundled scripts: none
Path: skills/agent/add-codex/SKILL.md
Open the folder on GitHub →
Where it comes from
Stars: 534
Language: HTML

Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.

From the SKILL.md

# 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

What's inside
Steps it walks through
  1. Install
  2. Pre-flight
  3. 1. Fetch the providers branch
  4. 2. Copy the Codex source files
  5. 3. Append the self-registration imports
  6. 4. Add the Codex CLI to the container Dockerfile
  7. 5. Build
  8. Configuration
  9. Option A — ChatGPT subscription (recommended for individuals)
  10. Option B — API key (recommended for CI or API billing)
  11. Option C — BYO OpenAI-compatible endpoint (experimental)
  12. Per group / per session
  13. Operational notes
  14. Verify
Ships with 1 file
  • metadata.json
Commands it runs
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"
More from claude-skill-registry
All skills →
About this skill
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.

Keep going