Hasty Briefsbeta

Bilingual

OpenAI Codex CLI: Lightweight coding agent that runs in your terminal

a year ago
  • #OpenAI
  • #Codex CLI
  • #Terminal Tool
  • Install Codex CLI globally via npm: `npm install -g @openai/codex`
  • Set OpenAI API key as environment variable: `export OPENAI_API_KEY="your-api-key-here"`
  • Run Codex interactively with `codex` or with a prompt: `codex "explain this codebase to me"`
  • Codex CLI offers different approval modes: Suggest (default), Auto Edit, and Full Auto
  • Codex runs in a sandboxed environment for security, with network disabled by default
  • Supported operating systems: macOS 12+, Ubuntu 20.04+/Debian 10+, or Windows 11 via WSL2
  • Requirements include Node.js 22 or newer and 4GB RAM minimum (8GB recommended)
  • Codex can be used in pipelines, e.g., GitHub Actions, for automated tasks
  • Custom instructions can be added via `~/.codex/instructions.md`
  • Contributions are welcome, with high standards for code quality and maintainability
  • All commits must include a Signed-off-by footer for licensing purposes