Codex CLI Setup Guide

June 10, 2026 ยท View on GitHub

vibecosystem works with Codex CLI (OpenAI) in addition to Claude Code.

Prerequisites

  1. Node.js 18+
  2. OpenAI API key
  3. Codex CLI installed:
npm install -g @openai/codex

Installation

Option 1: Run the installer

git clone https://github.com/vibeeval/vibecosystem.git
cd vibecosystem
./install-codex.sh

This copies all 296 skills to ~/.codex/skills/.

Option 2: Manual setup

# Clone the repo
git clone https://github.com/vibeeval/vibecosystem.git

# Copy skills
mkdir -p ~/.codex/skills
cp -r vibecosystem/skills/* ~/.codex/skills/

# Copy project instructions
cp vibecosystem/AGENTS.md ~/.codex/AGENTS.md

Project Setup

To use vibecosystem in a specific project, copy AGENTS.md to your project root:

cp vibecosystem/AGENTS.md ~/my-project/AGENTS.md

Optionally, copy the Codex config:

mkdir -p ~/my-project/.codex
cp vibecosystem/.codex/config.toml ~/my-project/.codex/config.toml

Usage

cd your-project
codex

Then use skills by referencing them:

> "use the coding-standards skill to review this file"
> "apply tdd-workflow to add a new feature"
> "use security-review to audit this endpoint"
> "follow postgres-patterns for this migration"

What Works with Codex CLI

FeatureStatusNotes
Skills (SKILL.md)Full supportSame format, auto-discovered
AGENTS.mdFull supportProject instructions
AgentsAs skillsSingle-agent model, agents = skill references
HooksNot supportedCodex CLI has different hook system
RulesVia AGENTS.mdKey rules embedded in AGENTS.md
Self-learningNot supportedClaude Code specific
Agent swarmNot supportedClaude Code specific

Differences from Claude Code

  1. Single agent model: Codex CLI runs one agent. vibecosystem agents are available as skills instead.
  2. No hooks: Codex CLI has hooks.json but the format differs from Claude Code's settings.json hooks.
  3. No self-learning: The instinct pipeline is Claude Code specific.
  4. No agent coordination: Swarm, Dev-QA loop, and cross-training are Claude Code features.

Updating

To update skills after a new vibecosystem release:

cd vibecosystem
git pull
./install-codex.sh --force

Troubleshooting

Skills not found

Make sure skills are in ~/.codex/skills/:

ls ~/.codex/skills/ | head -20

AGENTS.md not read

Check that AGENTS.md is in your project root or that .codex/config.toml has:

project_doc_fallback_filenames = ["AGENTS.md", "CLAUDE.md"]

Wrong model

Edit .codex/config.toml in your project:

model = "o4-mini"  # or "gpt-4.1" or your preferred model