Add Codex Agent Provider (NanoClaw)
An installer skill that wires OpenAI's Codex app-server into NanoClaw as a first-class agent provider, switchable per group.
What it does
Automates the full install of Codex as an agent backend for a NanoClaw instance, alongside or instead of Claude.
- Copies the Codex payload from the
providersbranch into host, container and setup trees - Appends
import './codex.js';to five provider/contract barrels (idempotent) - Adds a pinned
@openai/codexentry tocontainer/cli-tools.jsonand rebuilds the image - Validates wiring with
provider-contract-verifier - Runs the vault auth walk-through (ChatGPT subscription login or OpenAI API key)
Credentials are vault-only: the container sees a sentinel auth.json while the gateway swaps the real token on the wire — nothing lands in .env.
Who it's for
- Operators already running NanoClaw who want different model backends per group
- Teams wanting Codex's server-side conversation history and MCP tool orchestration
- Anyone who likes deterministic, machine-appliable install docs (
nc:directive fences)
Note: it is useless outside the NanoClaw repository.
Examples
- One-shot install:
pnpm exec tsx setup/index.ts --step provider-auth codexperforms copy, wiring, rebuild and auth in a single command. - Per-group switch:
ncl groups config update --id <group-id> --provider codexthenncl groups restart --id <group-id>. - Debugging: a silent channel plus
Unknown provider: codex. Registered: claudeinlogs/nanoclaw.error.logmeans the barrels aren't wired into the running build.
· · · Install guide · · ·
Try it now, no install
Paste this into Claude to use the skill without installing anything.
Read the instructions in this file and follow them to help me: https://raw.githubusercontent.com/nanocoai/nanoclaw/HEAD/.claude/skills/add-codex/SKILL.md What I want: (describe your task here)
If Claude can't open the link, open it yourself and paste the contents instead.
↓ If it works for you, download the ZIP below and install it. Then it runs on its own — no pasting each time.
Install in the Claude app (no terminal)
- Download the ZIP with the button below.
- In Claude, open Settings → Capabilities and turn on 'Code execution and file creation'. (one time)
- Go to Customize → Skills → + → 'Upload a skill' and upload the ZIP.
Install in Claude Code
Let Claude do it — paste this into Claude Code
Install the skill I found on Claude Skill Mart. Copy the .claude/skills/add-codex folder from the GitHub repo nanocoai/nanoclaw into my ~/.claude/skills/add-codex/. When it's done, tell me in one line what this skill can do.
Install with a command instead
git clone https://github.com/nanocoai/nanoclaw.git && mkdir -p ~/.claude/skills && cp -r nanoclaw/.claude/skills/add-codex ~/.claude/skills/⚠ This is a third-party skill. Check the source repository before installing.
- Open a terminal in your working directory.
- Clone the repository:
git clone https://github.com/nanocoai/nanoclaw.git - To keep the skill available to Claude Code:
mkdir -p ~/.claude/skills && cp -r nanoclaw/.claude/skills/add-codex ~/.claude/skills/ - Enter the repo with
cd nanoclawand confirmsrc/project-doc-compose.tsexists. If it is missing, run/update-nanoclawfirst. - Start Claude Code and ask it to "install the Codex provider using the add-codex skill", or run
pnpm exec tsx setup/index.ts --step provider-auth codexyourself. - Follow the prompts to log in with a ChatGPT subscription or paste an OpenAI API key; it is stored in the gateway vault.
- Enable it for a group:
ncl groups config update --id <group-id> --provider codex, thenncl groups restart --id <group-id>.