Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

codex

Skill by XiaomiMiMo

Operates the OpenAI Codex CLI in non-interactive, headless mode for automation and agent orchestration. Built for developers running codex exec in scripts, CI/CD, containers, and agent harnesses. It loads only when the user explicitly names Codex or authorizes the skill.

  • Score 88
  • 14k stars
  • MIT
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install codex

Built from the published package, never by AI.

git clone --depth 1 https://github.com/XiaomiMiMo/MiMo-Code /tmp/MiMo-Code && mkdir -p ~/.claude/skills && cp -r /tmp/MiMo-Code/packages/cli/src/skill/builtin/.bundle/codex ~/.claude/skills/codex

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install codex in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

This skill tells an AI assistant how to run the OpenAI Codex CLI in non-interactive, headless mode. It centers on the codex exec command and covers scripts, CI/CD, Docker, Kubernetes, remote servers, and agent harnesses. Before running any command, the assistant must confirm the codex binary is available. If it is missing, the assistant stops and gives install or authentication guidance.

The skill sets rules for choosing sandbox and approval modes, such as read-only analysis or workspace-scoped edits. It warns against the --yolo flag outside hardened, disposable runners. It also explains JSONL event output, structured final output with a JSON Schema, session resume, stdin prompts, and Windows PowerShell and WSL2 use. It is aimed at developers and agent builders who want Codex to run unattended.

Written from the project's SKILL.md and checked against it.

What it can do

  • Headless codex exec runsRuns Codex non-interactively with a positional prompt, working directory, and sandbox settings.
  • Sandbox and approval modesChooses read-only, workspace-write, or unrestricted execution based on the task.
  • JSONL event outputStreams Codex events as JSON Lines and captures the final message for harnesses.
  • Structured final outputRequires a JSON Schema for the final result, with fields such as status and blockers.
  • Session resumeResumes the most recent or a specific Codex session, or runs ephemerally.
  • Stdin and piped promptsReads prompts from stdin or pipes command output into a Codex task.
  • Windows and WSL2 guidanceExplains PowerShell argument handling, exit codes, and WSL2 repository placement.
  • Container and CI requirementsLists mount, user, network, and secret rules for Docker, Kubernetes, and CI designs.
  • Failure diagnosisGives an ordered checklist for troubleshooting failed Codex headless runs.

What you need

  • OpenAI Codex CLI installed with the codex binary available
  • Codex authentication via codex login or CODEX_API_KEY
  • A Git repository, or the --skip-git-repo-check flag for directories outside Git
  • PowerShell 7.4 or newer for JSONL redirection on native Windows
  • WSL2 for Linux toolchains on Windows

Try asking

  • Use Codex to analyze this repo for risks without modifying files.
  • Run Codex headless to implement this task and report blockers as JSON.
  • Set up a CI job that runs codex exec with JSONL event output.

Good to know

  • Use codex exec, not the interactive TUI.
  • The --yolo flag disables approvals and sandboxing and is for hardened disposable runners only.
  • Stops if the codex binary is missing until install or auth is fixed.
  • Loads only when the user explicitly authorizes the skill or names Codex.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: packages/cli/src/skill/builtin/.bundle/codex/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Inside the skill

  • SKILL.md10 KB
  • references/recipes.md7 KB
  • references/windows.md12 KB

Alternatives to codex

All alternatives →
openclaw-github-repo-commandersickn33
94

Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.

AAA Skill 50k
gradiogradio-app
94

Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.

AAA Skill 44k
hig-components-menussickn33
94

Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.

AAA Skill 50k
fastapi-templateswshobson
94

Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.

AAA Skill 43k
appfunctionsandroid
94

Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.

AAA Skill 11k
agent-qa-authoringsickn33
94

Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.

AAA Skill 50k

Compare with openclaw-github-repo-commander, gradio or hig-components-menus

codex: common questions

Does this skill run Codex interactively?

No. The skill says to use codex exec, not the interactive codex TUI, and to avoid runs that depend on a human answering questions.

Is it safe to use --yolo?

The source says --yolo disables Codex approvals and sandboxing. It should only be used inside an externally hardened and disposable runner, never on a normal developer machine.

Does it work on Windows?

Yes. The source covers native Windows PowerShell and WSL2, and advises choosing one execution environment per task.

How do I install codex?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is codex free?

The code is published under the MIT licence. The service it connects to may have its own pricing.

Is codex safe to use?

It scores 88 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to codex?

Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.

Add to stack

Loading.