OpenAI Codex CLI Settings and Custom Prompts
A curated collection of configurations, skills and custom prompts for OpenAI Codex CLI, designed to enhance your development workflow with various model providers and reusable prompt templates.
A curated collection of configurations, skills and custom prompts for OpenAI Codex CLI, designed to enhance your development workflow with various model providers and reusable prompt templates.
A curated collection of configurations, skills and custom prompts for [OpenAI Codex CLI](https://github.com/openai/codex), designed to enhance your development workflow with various model providers and reusable prompt templates.
For Claude Code settings, skills, agents and custom commands, please refer [feiskyer/claude-code-settings](https://github.com/feiskyer/claude-code-settings).
This repository provides:
# Backup existing Codex configuration (if any)
mv ~/.codex ~/.codex.bak
# Clone this repository to ~/.codex
git clone https://github.com/feiskyer/codex-settings.git ~/.codex
# Or symlink if you prefer to keep it elsewhere
ln -s /path/to/codex-settings ~/.codex`npx skills` could be used to install skills only for your AI coding tools.
# List skills
npx -y skills add -l feiskyer/codex-settings
# Install all skills
npx -y skills add --all feiskyer/codex-settings
# Manually select a list of skills to install
npx -y skills add feiskyer/codex-settingsThe default `config.toml` uses LiteLLM as a gateway. To use it:
pip install -U 'litellm[proxy]'
npm install -g @openai/codex general_settings:
master_key: sk-dummy
litellm_settings:
drop_params: true
model_list:
- model_name: gpt-5.1-codex-max
model_info:
mode: responses
supports_vision: true
litellm_params:
model: github_copilot/gpt-5.1-codex-max
drop_params: true
extra_headers:
editor-version: "vscode/1.95.0"
editor-plugin-version: "copilot-chat/0.26.7"
- model_name: claude-opus-4.5
litellm_params:
model: github_copilot/claude-opus-4.5
drop_params: true
extra_headers:
editor-version: "vscode/1.95.0"
editor-plugin-version: "copilot-chat/0.26.7"
- model_name: "*"
litellm_params:
model: "github_copilot/*"
extra_headers:
editor-version: "vscode/1.95.0"
editor-plugin-version: "copilot-chat/0.26.7" litellm --config ~/.codex/litellm_config.yaml
# Runs on http://localhost:4000 by default codexLocated in `configs/` directory:
To use an alternative config:
# Take ChatGPT for example
cp ~/.codex/configs/chatgpt.toml ~/.codex/config.toml
codexCustom prompts are stored in the `prompts/` directory. Access them via the `/prompts:` slash menu in Codex.
Skills are reusable instruction bundles that Codex automatically discovers at startup. Each skill has a name, description, and detailed instructions stored on disk. Codex injects only metadata (name, description, path) into context - the body stays on disk until needed.
Skills are automatically loaded when Codex starts. To use a skill:
/skills $kiro-skill Create a feature spec for user authentication
$nanobanana-skill Generate an image of a sunset over mountainsSkills are stored in `~/.codex/skills/**/SKILL.md`. Only files named exactly `SKILL.md` are recognized.
<details> <summary>claude-skill - Handoff task to Claude Code CLI</summary>
Non-interactive automation mode for hands-off task execution using Claude Code. Use when you want to leverage Claude Code to implement features or review code.
**Key Features:**
**Requirements:** Claude Code CLI installed (`npm install -g @anthropic-ai/claude-code`)
</details>
<details> <summary>autonomous-skill - Long-running task automation</summary>
Execute complex, long-running tasks across multiple sessions using a dual-agent pattern (Initializer + Executor) with automatic session continuation.
The runner keeps model selection with your active Codex config/profile and pins unattended execution through config overrides rather than hardcoding a model or relying on `--full-auto`.
**Key Features:**
**Usage:**
# Start a new autonomous task
~/.codex/skills/autonomous-skill/scripts/run-session.sh "Build a REST API for todo app"
# Continue an existing task
~/.codex/skills/autonomous-skill/scripts/run-session.sh --task-name build-rest-api-todo --continue
# List all tasks
~/.codex/skills/autonomous-skill/scripts/run-session.sh --list</details>
<details> <summary>deep-research - Multi-agent deep research orchestration</summary>
Multi-instance (multi-agent) orchestration workflow for deep research tasks. Breaks down research objectives into parallelizable sub-goals, runs child processes via `codex exec`, and aggregates results into polished reports.
**Key Features:**
**Use Cases:**
**Workflow:**
**Output:** All artifacts saved to `.research/<name>/` directory including logs, raw data, and final polished report.
</details>
<details> <summary>nanobanana-skill - Image generation with Gemini</summary>
Generate or edit images using Google Gemini API via nanobanana. Use when creating, generating, or editing images.
**Key Features:**
**Requirements:**
</details>
<details> <summary>youtube-transcribe-skill - Extract YouTube subtitles</summary>
Extract subtitles/transcripts from a YouTube video URL and save as a local file.
**Key Features:**
**Requirements:**
</details>
<details> <summary>kiro-skill - Interactive feature development</summary>
Interactive feature development workflow from idea to implementation. Creates requirements (EARS format), design documents, and implementation task lists.
**Triggered by:** "kiro" or references to `.kiro/specs/` directory
**Workflow:**
**Storage:** Creates files in `.kiro/specs/{feature-name}/` directory
</details>
<details> <summary>spec-kit-skill - Constitution-based development</summary>
GitHub Spec-Kit integration for constitution-based spec-driven development.
**Triggered by:** "spec-kit", "speckit", "constitution", "specify", or references to `.specify/` directory
**Prerequisites:**
# Install spec-kit CLI
uv tool install specify-cli --from git+https://github.com/github/spec-kit.git
# Initialize project
specify init . --ai codex**7-Phase Workflow:**
</details>
For reasoning-capable models (o3, gpt-5):
Control which environment variables are passed to subprocesses:
[shell_environment_policy]
inherit = "all" # all, core, none
exclude = ["AWS_*", "AZURE_*"] # Exclude patterns
set = { CI = "1" } # Force-set valuesDefine multiple configuration profiles:
[profiles.openrouter]
model = "gpt-5"
model_reasoning_effort = "high"
approval_policy = "on-request"
sandbox_mode = "workspace-write"
model_provider = "openrouter"
[profiles.github]
model = "gpt-5"
model_reasoning_effort = "high"
approval_policy = "on-request"
sandbox_mode = "workspace-write"
model_provider = "github"
[model_providers.github]
name = "OpenAI"
base_url = "http://localhost:4000"
http_headers = { "Authorization"= "Bearer sk-dummy" }
wire_api = "responses"
[model_providers.openrouter]
name = "OpenRouter"
base_url = "https://openrouter.ai/api/v1"
http_headers = { "Authorization"= "Bearer [YOUR-API-KEY]"}
wire_api = "responses"Use with: `codex --profile openrouter`
Extend Codex with Model Context Protocol servers:
[mcp_servers.context7]
command = "npx"
args = ["-y", "@upstash/context7-mcp@latest"]Codex automatically reads `AGENTS.md` files in your project to understand context. Please always create one in your project root with `/init` command on your first codex run.
Contributions welcome! Feel free to:
This project is released under MIT License - See [LICENSE](LICENSE) for details.