add-codex

add-codex is a skill for Claude Code from nanocoai/nanoclaw. It costs 92 tokens per session (2,719 once invoked), scanned A, original, MIT.

An agent-provider add-on that lets NanoClaw use OpenAI Codex as its coding agent, alongside or instead of Claude. It supports planning, tool use, and resuming conversations.

In plain words
What is it for?
Use it to configure Codex as the backend for selected NanoClaw groups, authenticate with a ChatGPT subscription or OpenAI API key, and resume server-side conversations.
Why use it?
It lets you choose Codex for particular agent groups without replacing the rest of your setup. Credentials stay outside the container and are supplied when needed.

Skill for Claude Code

Written for Claude Code: SessionStart hook event. Also seen: reads ~/.codex paths; mentions AGENTS.md; mentions Codex.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is ./container/build.sh.

Good fit Use it to configure Codex as the backend for selected NanoClaw groups, authenticate with a ChatGPT subscription or OpenAI API key, and resume server-side conversations.

Compare 6 skills from other repositories ↓
About the project

NanoClaw is an AI assistant that runs agents inside separate Linux containers, isolating their files and execution environments. People use it to connect agents to messaging services and run assistants with memory and scheduled jobs. The catalogue contains skills and instructions for extending or operating NanoClaw.

nanocoai/nanoclaw · 31,215 stars · on GitHub · nanoclaw.dev

Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/nanocoai/nanoclaw
agentmods
npx agentmods add skills/nanocoai/nanoclaw/add-codex

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for add-codex

README.md
[![agentmods](https://agentmods.dev/badge/skills/nanocoai/nanoclaw/add-codex/github.svg)](https://agentmods.dev/skills/nanocoai/nanoclaw/add-codex)
Your own site
<a href="https://agentmods.dev/skills/nanocoai/nanoclaw/add-codex"><img src="https://agentmods.dev/badge/skills/nanocoai/nanoclaw/add-codex/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for add-codex

Your own site · 80×15
<a href="https://agentmods.dev/skills/nanocoai/nanoclaw/add-codex"><img src="https://agentmods.dev/badge/skills/nanocoai/nanoclaw/add-codex.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 92 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,719 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • Snyk pass 7 Sept 2026
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00092 $0.02719
Opus 5.5 $0.00037 $0.01088
Sonnet 5.5 $0.00018 $0.00544
Haiku 4.5 $0.00009 $0.00272

Measured 16d ago against content hash 2aa27a5748a3, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

add-codex scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 16d ago.

The scan reads SKILL.md. This mod also ships 19 executable files (payload/container/agent-runner/src/provider-contracts/codex.ts, payload/container/agent-runner/src/providers/codex-app-server.test.ts, payload/container/agent-runner/src/providers/codex-app-server.ts, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/skills/add-codex/SKILL.md · 175 lines

How it starts

The opening of the file, as written. The whole thing — 175 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Codex agent provider

Shortcut: pnpm exec tsx setup/index.ts --step provider-auth codex performs this whole install (manifest-driven from this skill's payload: files, barrels, CLI manifest entry, image rebuild, host rebuild and restart) plus auth in one command. The steps below are the same operations, for agent-driven or manual application.

NanoClaw selects each group's agent backend from container_configs.provider (default claude). This skill installs the Codex provider: copy this skill's payload, append one import to each of the three provider barrels, add the pinned Codex CLI to the container manifest (container/cli-tools.json), rebuild, then run the vault auth walk-through.

The provider runs codex app-server as a child process speaking JSON-RPC over stdio: native streaming, MCP tools, server-side conversation history (the continuation is a thread id, no on-disk transcript). Credentials are vault-only: The selected gateway serves a sentinel auth.json stub into the container and swaps the real ChatGPT token or API key on the wire — no key in .env, nothing readable in the container.

The mechanical steps under Install carry nc: directive fences: an agent reads the prose and applies them, and a parser can apply them deterministically from the same document. Every directive is idempotent, so the whole skill is safe to re-run; anything a parser can't apply falls back to the prose beside it.

Install

Pre-flight

Requires src/project-doc-compose.ts and core's shared exchange archive (container/agent-runner/src/provider-contracts/exchange-archive.ts) on trunk. If either is missing, stop and tell the operator to run /update-nanoclaw first.

Check whether the payload is already wired (a prior apply, or a trunk that still carries it). All of these present means installed — skip to Authenticate:

  • src/providers/codex.ts and src/providers/codex-agents-md.ts
  • container/agent-runner/src/providers/codex.ts and codex-app-server.ts
  • setup/providers/codex.ts and both provider-contracts/codex.ts declarations (host and container)
  • import './codex.js'; in the three provider barrels and both contract barrels
  • an @openai/codex entry in container/cli-tools.json

Read the full file on GitHub · 175 lines

Files

What ships with it

21 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 16d ago Changed · +2 lines 2aa27a5748a3
  2. 18d ago Changed 67b9c0493b91
  3. 25d ago Changed · +2 lines 17c2a46ea28f
  4. 1mo ago Changed · -1 lines 76dd6877bfbd
  5. 1mo ago Changed 3d27cd090efd
  6. 2mo ago Changed · +11 lines · +1 tokens per session 303089f96c6f
  7. 3mo ago Changed · +17 lines 2414d20cb337
  8. 3mo ago First seen · 144 lines · 91 tokens per session scan A b232002628bd

Subscribe to this mod's changes

add-codex is a skill published in the GitHub repository nanocoai/nanoclaw (31,215 stars, last pushed yesterday), licensed MIT. It adds 92 tokens to every session and 2,719 once invoked, about $0.0004 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

add-codex compared with skills from other repositories

add-codex next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
add-codexnanocoai/nanoclawSkill31kyesterdayMITA92Claude Code
Pynchy Developmentcrypdick/pynchySkill102mo agoMITA79Claude Code
Pynchy Plugin Authoringcrypdick/pynchySkill102mo agoMITA64Claude Code
x-integrationcrypdick/pynchySkill102mo agoMITA38Claude Code, Codex
slack-token-extractorcrypdick/pynchySkill102mo agoMITA34Claude Code, Codex
Documentation Managercrypdick/pynchySkill102mo agoMITA68Claude Code
python-heredoccrypdick/pynchySkill102mo agoMITA43Claude Code, Codex