add-codex
Skill by nanocoai
Adds OpenAI's Codex as an agent provider for NanoClaw, so groups can run on Codex alone or alongside Claude. Sign-in uses a ChatGPT subscription or an OpenAI API key, held in the selected gateway's vault.
Install add-codex
Built from the published package, never by AI.
git clone --depth 1 https://github.com/nanocoai/nanoclaw /tmp/nanoclaw && mkdir -p ~/.claude/skills && cp -r /tmp/nanoclaw/.claude/skills/add-codex ~/.claude/skills/add-codexRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/nanocoai/nanoclaw /tmp/nanoclaw && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/nanoclaw/.claude/skills/add-codex ~/.gemini/antigravity-cli/skills/add-codexAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
This skill adds Codex, OpenAI's codex app-server, as an agent provider for NanoClaw. A group can run on Codex instead of Claude, or the two can be used side by side. The provider runs codex app-server as a child process that speaks JSON-RPC over stdio. It supports native streaming, MCP tools, server-side conversation history, and session resume through a thread id.
Credentials are vault-only. The selected gateway serves a stand-in auth file into the container and swaps in the real ChatGPT token or API key on the wire, so no key is kept in .env. The install copies the payload, wires the provider barrels, adds the pinned Codex CLI to the container manifest, rebuilds, and runs a sign-in walk-through. It is for NanoClaw operators who want Codex as the agent backend for some or all of their groups.
Written from the project's SKILL.md and checked against it.
What it can do
- Per-group provider switchSwitches a group to Codex with ncl groups config update --provider codex.
- Native streamingRuns codex app-server over JSON-RPC on stdio with native streaming.
- MCP toolsGives the Codex agent access to MCP tools.
- Server-side historyKeeps conversation history on the server, with the continuation stored as a thread id.
- Session resumeResumes a conversation from its thread id.
- Vault-only credentialsThe gateway supplies the real ChatGPT token or API key, so none is stored in .env.
- Default for new groupsOptionally sets DEFAULT_AGENT_PROVIDER to codex for groups created afterward.
What you need
- A NanoClaw installation with a selected credential gateway
- A ChatGPT subscription or an OpenAI API key
- pnpm to run the install and setup commands
- The credential gateway skill from the same NanoClaw release for ChatGPT login
Try asking
- Move this group to the Codex provider and restart it.
- Use Codex as the planner for this group and let it call my MCP tools.
- Make Codex the default provider for new agent groups.
Good to know
- ChatGPT login needs the credential gateway skill from the same NanoClaw release, since Codex 0.156.0 and later check the workspace id first.
- Installing the skill does not change the default provider, which stays claude until the operator opts in.
- Switching a group's provider is an operator action run from the host.
- Existing groups keep their current provider unless changed.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: .claude/skills/add-codex/SKILL.md, .claude/skills/add-codex/payload/container/agent-runner/src/provider-contracts/codex.ts, .claude/skills/add-codex/payload/container/agent-runner/src/providers/codex-app-server.test.ts, .claude/skills/add-codex/payload/container/agent-runner/src/providers/codex-app-server.ts, .claude/skills/add-codex/payload/container/agent-runner/src/providers/codex-cli-tools.test.ts, .claude/skills/add-codex/payload/container/agent-runner/src/providers/codex-contract-parity.test.ts, .claude/skills/add-codex/payload/container/agent-runner/src/providers/codex-registration.test.ts, .claude/skills/add-codex/payload/container/agent-runner/src/providers/codex.conformance.test.ts, .claude/skills/add-codex/payload/container/agent-runner/src/providers/codex.factory.test.ts. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
REMOVE.md4 KB -
SKILL.md11 KB -
payload/container/AGENTS.md863 B -
payload/container/agent-runner/src/provider-contracts/codex.ts3 KB -
payload/container/agent-runner/src/providers/codex-app-server.test.ts20 KB
Show all 22 files
-
payload/container/agent-runner/src/providers/codex-app-server.ts23 KB -
payload/container/agent-runner/src/providers/codex-cli-tools.test.ts2 KB -
payload/container/agent-runner/src/providers/codex-contract-parity.test.ts8 KB -
payload/container/agent-runner/src/providers/codex-registration.test.ts1 KB -
payload/container/agent-runner/src/providers/codex.conformance.test.ts1 KB -
payload/container/agent-runner/src/providers/codex.factory.test.ts5 KB -
payload/container/agent-runner/src/providers/codex.ts16 KB -
payload/container/agent-runner/src/providers/codex.turns.test.ts14 KB -
payload/setup/providers/codex-registration.test.ts968 B -
payload/setup/providers/codex.test.ts83 KB -
payload/setup/providers/codex.ts41 KB -
payload/src/provider-contracts/codex.ts2 KB -
payload/src/providers/codex-agents-md.test.ts6 KB -
payload/src/providers/codex-agents-md.ts3 KB -
payload/src/providers/codex-host-contribution.test.ts10 KB -
payload/src/providers/codex-registration.test.ts1 KB -
payload/src/providers/codex.ts6 KB
Alternatives to add-codex
All alternatives →Aligns a Qwen Code feature with a Codex or Claude Code reference agent. It runs both under the same scenario, captures HTTP and terminal traces, and compares them until behavior matches.
Searches, views, creates, updates, and deletes the user's Google Contacts from an AI assistant. It is for people who want to manage their address book through conversation. A one-time Google connect is required before it returns data.
Guides an AI assistant on error handling choices. It covers when to use Result, Option, ? propagation, unwrap, expect and panic, plus anyhow and thiserror.
Caveman is an agent skill that makes an AI assistant reply in a terse style. It cuts filler and keeps technical facts, code, commands and errors exact. It is built for users who want shorter, cheaper replies.
docs-sync audits or updates English SDK documentation against the requested implementation scope. It is for maintainers who want docs to match main branch features, configuration options, and defaults.
Guides an AI assistant through setting up and running monorepos with pnpm workspaces, Turborepo and Nx. Aimed at developers who need faster builds, shared code and managed dependencies across multiple packages.
Compare with agent-reproduce-align, google_contacts or m06-error-handling
add-codex: common questions
Does Codex replace Claude in NanoClaw?
No. Codex can run alongside Claude or instead of it, and the provider is set per group. Installing the skill leaves the default provider as claude.
How are OpenAI credentials stored?
They are kept in the selected gateway's vault. The gateway serves a sentinel auth.json into the container and swaps in the real ChatGPT token or API key on the wire.
How is this different from using OpenAI as an MCP tool?
This skill runs Codex as the full agent provider. The source says that using OpenAI as an MCP tool is different, because Claude remains the planner in that setup.
How do I install add-codex?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is add-codex free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is add-codex safe to use?
It scores 89 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to add-codex?
Similar skills: agent-reproduce-align, google_contacts, m06-error-handling, caveman.
