codex-cli-bridge

A compatibility bridge between Claude Code and OpenAI Codex CLI, two tools that let agents work with code from the command line.

In plain words
What is it for?
Use it to create AGENTS.md from CLAUDE.md, expose Claude skills to Codex CLI users, and run Codex analysis or editing commands through helpers.
Why use it?
It keeps project guidance usable across both tools without copying the same documentation into separate files.

Skill for Claude CodeCodex

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.

agentmods
npx agentmods add skills/alirezarezvani/claude-code-skill-factory/codex-cli-bridge
Any agent
npx skills add alirezarezvani/claude-code-skill-factory --skill codex-cli-bridge
Clone the repo
git clone --depth 1 https://github.com/alirezarezvani/claude-code-skill-factory

Made for: Claude Code, Codex.

Per session 41 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,303 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00041 $0.02303
Opus 5 $0.00020 $0.01151
Sonnet 5 $0.00008 $0.00461
Haiku 4.5 $0.00004 $0.00230

Measured 3d ago against content hash 0ec7b025e57e, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

codex-cli-bridge 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 3d ago.

The scan reads SKILL.md. This mod also ships 8 executable files (agents_md_generator.py, bridge.py, claude_parser.py, …), 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.

generated-skills/codex-cli-bridge/SKILL.md · 349 lines

How it starts

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

Codex CLI Bridge Skill

Purpose

This skill creates a comprehensive bridge between Claude Code and OpenAI's Codex CLI, enabling seamless interoperability through:

  1. Documentation Translation: Converts CLAUDE.md → AGENTS.md (reference-based, no file duplication)
  2. Execution Helpers: Python wrappers for Codex CLI commands (always uses codex exec)
  3. Skill Documentation: Makes Claude Skills accessible to Codex CLI users

Key Capabilities

1. CLAUDE.md → AGENTS.md Generation

  • Parses CLAUDE.md and project structure
  • Scans .claude/skills/, .claude/agents/, documentation/ folders
  • Generates comprehensive AGENTS.md with file path references
  • Reference-based: No file duplication, only links to existing files
  • Documents Skills with most relevant usage method (bash scripts vs prompt references)

2. Safety Mechanism

  • Auto-checks Codex CLI installation (codex --version)
  • Auto-runs /init if CLAUDE.md missing (with user notification)
  • Validates authentication and environment
  • User-friendly error messages

3. Codex CLI Execution Helpers

  • exec_analysis() - Read-only analysis tasks (gpt-5, read-only sandbox)
  • exec_edit() - Code editing tasks (gpt-5-codex, workspace-write)
  • exec_with_search() - Web search-enabled tasks
  • resume_session() - Continue last Codex session
  • Always uses codex exec (never plain codex - critical for Claude Code)

4. Skill Documentation for Codex CLI

  • Prompt-only skills: Show how to reference in Codex prompts
  • Functional skills: Show how to execute Python scripts directly
  • Complex skills: Show both methods
  • Includes proper codex exec command syntax
  • Model selection guidance (gpt-5 vs gpt-5-codex)

Input Requirements

For AGENTS.md Generation

{
  "action": "generate-agents-md",
  "project_root": "/path/to/project",
  "options": {
    "validate_codex": true,
    "auto_init": true,
    "include_mcp": true,
    "skill_detail_level": "relevant"
  }
}

Read the full file on GitHub · 349 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. 3d ago First seen · 349 lines · 41 tokens per session scan A 0ec7b025e57e

Subscribe to this mod's changes

codex-cli-bridge is a skill published in the GitHub repository alirezarezvani/claude-code-skill-factory (855 stars, last pushed 9mo ago), licensed MIT. It adds 41 tokens to every session and 2,303 once invoked, about $0.0002 per session on Opus 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.