add-codex

add-codex is a skill for Claude Code from sliamh11/Deus. It costs 43 tokens per session (2,153 once invoked), scanned C, original, MIT.

A setup for adding OpenAI and Codex as model backends for Deus. It can configure background message handling, interactive `deus codex` sessions, or both while leaving Claude as the default unless changed.

In plain words
What is it for?
It helps set up the OpenAI API key, configure the service backend, optionally enable the Codex command-line session, and verify the configuration.
Why use it?
It lets users choose OpenAI or Codex for particular kinds of work without requiring source-code changes or removing Claude entirely.

Skill for Claude Code

Written for Claude Code: disable-model-invocation in frontmatter. Also seen: names the AskUserQuestion tool; mentions Claude Code; mentions Codex.

Good fit It helps set up the OpenAI API key, configure the service backend, optionally enable the Codex command-line session, and verify the configuration.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/sliamh11/deus/add-codex
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add sliamh11/Deus --skill add-codex
Clone the repo
git clone --depth 1 https://github.com/sliamh11/Deus

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/sliamh11/deus/add-codex/github.svg)](https://agentmods.dev/skills/sliamh11/deus/add-codex)
Your own site
<a href="https://agentmods.dev/skills/sliamh11/deus/add-codex"><img src="https://agentmods.dev/badge/skills/sliamh11/deus/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/sliamh11/deus/add-codex"><img src="https://agentmods.dev/badge/skills/sliamh11/deus/add-codex.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 43 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,153 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 2 findings. A grade says what 26 rules found in the file — not that it is safe.
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.00043 $0.02153
Opus 5.5 $0.00017 $0.00861
Sonnet 5.5 $0.00009 $0.00431
Haiku 4.5 $0.00004 $0.00215

Measured 3mo ago against content hash 95dea5f78f67, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade C, and why

add-codex scanned grade C with 2 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 3mo ago.

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.

Harvests environment variableshighData exfiltration

Enumerating or grepping the environment for keys collects credentials unrelated to what the mod says it does.

### Collect the API key

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

curl -s -H "Authorization: Bearer $(grep OPENAI_API_KEY .env | cut -d= -f2)" \
.claude/skills/add-codex/SKILL.md · 271 lines

How it starts

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

Add OpenAI/Codex Backend

This skill configures OpenAI/Codex as a backend for Deus. Two independent modes:

  • Service backend (DEUS_AGENT_BACKEND=openai) — container agents use the OpenAI Responses API for background message handling
  • CLI sessions (deus codex) — foreground interactive sessions using the codex CLI binary

You can enable one or both. The Claude backend remains the default until explicitly switched.

IMPORTANT: This skill writes environment variables to .env and syncs them to data/env/env at runtime. It does not modify source code or require a rebuild.

Phase 1: Pre-flight

Check if already configured

Check if OpenAI/Codex is already set up:

grep -q 'OPENAI_API_KEY=.' .env 2>/dev/null && echo "API key found" || echo "No API key"
deus backend

If both show valid config, skip to Phase 5 (Verify).

Ask scope

AskUserQuestion: How do you want to use OpenAI/Codex?

  1. Service backend — container agents use OpenAI for message handling (replaces Claude as default backend)
  2. CLI only — use deus codex for interactive sessions (Claude stays as service backend)
  3. Both — service backend + CLI sessions

Recovery: If you're unsure, start with CLI only (option 2). You can switch the service backend later with deus backend set codex.

Phase 2: API Key

Check for existing key

grep 'OPENAI_API_KEY' .env 2>/dev/null

If a key is already set and valid, skip to Phase 3.

Collect the API key

AskUserQuestion: Do you have an OpenAI API key? If not, create one at https://platform.openai.com/api-keys — you need a key with API access (not just ChatGPT Plus).

Wait for the user to provide their key.

Write to .env

Append or update OPENAI_API_KEY in .env:

# Update or append OPENAI_API_KEY:
if grep -q '^OPENAI_API_KEY=' .env; then
  tmpf=$(mktemp) && sed 's/^OPENAI_API_KEY=.*/OPENAI_API_KEY=<their-key>/' .env > "$tmpf" && mv "$tmpf" .env
else
  echo 'OPENAI_API_KEY=<their-key>' >> .env
fi

Read the full file on GitHub · 271 lines

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. 3mo ago First seen · 271 lines · 43 tokens per session scan C 95dea5f78f67

Subscribe to this mod's changes

add-codex is a skill published in the GitHub repository sliamh11/Deus (51 stars, last pushed 6d ago), licensed MIT. It adds 43 tokens to every session and 2,153 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it C with 2 findings (harvests environment variables, makes network calls). 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-codexsliamh11/DeusSkill516d agoMITC43Claude Code
roadmap-builddatacore-one/datacoreSkill5yesterdayMITA111Claude Code
github-triagedatacore-one/datacoreSkill5yesterdayMITA99Claude Code, Codex
decision-boarddatacore-one/datacoreSkill5yesterdayMITA160Claude Code
feature-specJJHbrams/Project-AMBERSkill14d agoMITA172Claude Code, Codex
Research for Datacoredatacore-one/datacoreSkill5yesterdayMITA19Claude Code, Codex
GTD for Datacoredatacore-one/datacoreSkill5yesterdayMITA21Claude Code, Codex