HelloPixDig

Directory › Development › OpenAI Codex CLI

OpenAI Codex CLI
Image: official project repository

> GEM DEVELOPMENT · AGENTS & AUTOMATION

OpenAI Codex CLI

by OpenAI

OpenAI's open-source coding agent, written in Rust, that works right in your terminal.

128.7 k stars GitHub Apache-2.0 FreemiumOpen source
View on GitHub →

What it does

  • Sign in with your ChatGPT account or an API key
  • Runs commands in a sandbox with approval levels
  • Can also run with local models through Ollama

Install it

Requirements: A ChatGPT account or an OpenAI API key (or Ollama for local use).

Install (macOS / Linux)
curl -fsSL https://chatgpt.com/codex/install.sh | sh
Or with npm
npm install -g @openai/codex
Run it in your project
codex

The prompt for your agent

Paste it into your coding agent: it checks the requirements and installs it for you.

Claude CodeCodexCursorGemini CLIopencode
Prompt
Install OpenAI Codex CLI (https://developers.openai.com/codex/cli) on my machine.
1. Check the requirements: A ChatGPT account or an OpenAI API key (or Ollama for local use). If anything is missing, tell me before installing anything.
2. Follow the official method:
- Install (macOS / Linux): curl -fsSL https://chatgpt.com/codex/install.sh | sh
- Or with npm: npm install -g @openai/codex
- Run it in your project: codex
3. Check that it works, then explain how to launch it and where to start.

Always review what your agent is about to run, especially install commands.