Skip to content
Back to skills

Codex Cli

ASecurity

Shell out to codex CLI.

  • 4 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added September 25, 2026
ai-agentsshellbash

Works with

  • claude code
  • cli

Security analysis

A100/100

Scanned September 25, 2026

npx -y skills add colinmollenhour/dotfiles --skill codex-cli --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Codex Cli?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Codex Cli
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/colinmollenhour-codex-cli-dotfiles/badge)](https://www.skillsdirectory.com/skills/colinmollenhour-codex-cli-dotfiles)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: codex-cli
description: 'Shell out to codex CLI.'
allowed-tools: Bash(codex *)
---

# Codex CLI

Use the `codex` CLI to run one-shot prompts or diff-based reviews through OpenAI models.

## Prerequisites

`codex` must be installed and authenticated (`codex --version` should succeed).

## Sending a Prompt (`codex exec`)

```bash
codex exec --ephemeral "Your prompt here"
```

Key flags:
- `--ephemeral` — run without persisting a session; use for one-shot tasks.
- `-c model="<name>"` — override the model only when the user explicitly requests one.

Capture output to a file for aggregation:

```bash
codex exec --ephemeral "Prompt text" > .tmp/codex-output.txt 2>&1
```

## Code Review (`codex review`)

```bash
codex review --base <branch> > .tmp/codex-review.txt 2>&1
```

- `--base <branch>` — required; the branch to diff against.
- Does **not** support `--ephemeral`.
- Requires the sandbox to be disabled in Claude Code (`dangerouslyDisableSandbox: true`) because Codex writes session files during review runs.

## Caveats

- `codex review` writes session files to `~/.codex/`; run it unsandboxed from Claude Code.
- `codex exec` with `--ephemeral` is generally safe inside the sandbox for short prompts.
- If `codex` reports authentication errors, ask the user to re-authenticate (`codex login`).

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…