Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

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.

  • Score 89
  • 31k stars
  • MIT
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

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-codex

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install add-codex in Claude Code

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

A

No 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 →

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.

add-codex Install

Add to stack

Loading.