Codex CLI

Codex CLI

An open-source, terminal-based AI coding agent by OpenAI that automates repository tasks, reviews pull requests, and runs tests in sandboxed environments.

Free + paidmacOSLinuxWindows (WSL2)Open source
Visit websiteopenai.com
Compare with book-to-skillExplore Codex CLI alternatives

Overview

Codex CLI is a terminal-based open-source AI coding agent developed by OpenAI. It helps developers automatically generate, modify, and analyze code using natural language commands without leaving the terminal environment. It runs and tests code within a sandbox environment and automates commit message writing and pull request (PR) generation through Git integration, greatly enhancing developer productivity.

Key features

  • Terminal-based execution (CLI)
  • Execution in an isolated cloud sandbox
  • Natural language-based code generation and editing
  • Automated testing and debugging loop
  • Git and GitHub workflow integration (automatic PR generation)
  • Custom skill expansion (SKILL.md)

Pricing

Free + paidStarting price: US$20/mo
View pricing page

Verified on:

Use cases

  • Code autocompletion and large-scale refactoring
  • Analyzing new project/repository structures and code
  • Automatic generation of unit test and integration test code
  • Writing Git commit messages and Pull Request descriptions
  • Reviewing code security and vulnerabilities

Who it is for

Software engineersDevOps engineersDevelopers who prefer terminal environmentsOpen-source contributors

How we verified this

Company, pricing, and feature details come from the primary sources below and our latest verification pass. When sources disagree, the official source and the most recent check win.

Last verified 09/06/2026Verified sources: 1

Alternatives

Tools you can use instead