Codex CLI Installation

Learn how to install and configure Agent Skills for Codex CLI.

Prerequisites

  • Codex CLI installed
  • Node.js 18 or higher
  • A Codex configuration file

Installation

Step 1: Add a Skill

bash
codex config add-skill owner/skill-repo

Example:

bash
codex config add-skill openai/code-review

Step 2: Verify Installation

bash
codex config list-skills

Step 3: Use the Skill

The skill is now active in all Codex sessions.

Configuration

Manual Configuration

Edit your ~/.codex/config.json:

json
{
  "skills": [
    "https://github.com/owner/skill-repo"
  ]
}

Project-Specific Skills

Create a .codex/config.json in your project:

json
{
  "skills": [
    "https://github.com/owner/project-skill"
  ]
}

Updating Skills

bash
codex config update-skills

Removing Skills

bash
codex config remove-skill owner/skill-repo

Next Steps