Skip to content
IFAI

Open source

OpenAI's Codex CLI is already open-source

Published Reach 49

OpenAI reminded developers that its Codex CLI coding agent is already fully open-source under the Apache-2.0 license. The lightweight tool runs locally in terminal environments across macOS, Linux, and Windows, integrating with IDEs like VS Code and Cursor. Why it matters: users can run local terminal coding agents powered directly by their ChatGPT plans without waiting on closed releases.

Codex CLI is OpenAI's lightweight coding agent designed to run locally right inside your terminal.

It handles programming tasks directly from the command line while also integrating into modern code editors like VS Code, Cursor, and Windsurf. For developers who prefer graphical interfaces, OpenAI also provides a standalone desktop application along with Codex Web on chatgpt.com.

What it does and how to run it

Getting Codex CLI up and running is straightforward across macOS, Linux, and Windows.

On macOS and Linux, installation takes a single curl command piped into the shell. Windows developers can run an automated PowerShell script. Alternatively, you can install it globally via npm using the official package name, or through Homebrew on macOS with a simple cask command.

Standalone binary packages are also available directly from GitHub Releases, supporting Apple Silicon, older Intel Macs, and multiple Linux architectures.

Once installed, you simply type codex into your terminal to launch the interface. The tool prompts you to authenticate by signing into your ChatGPT account, supporting Plus, Pro, Business, Edu, and Enterprise tiers. An optional API key configuration is also available if you prefer direct API access.

Platform support and licensing

The repository is fully published under the permissive Apache-2.0 license on GitHub.

The default installer pulls binaries from OpenAI's releases endpoint, with built-in fallback logic pointing to GitHub Releases if necessary. Because the compiled archives deliver self-contained executables for various architectures, setting it up in custom developer environments or CI pipelines requires minimal friction.

Why it matters

If your daily workflow revolves around a terminal or editors like Cursor, Codex CLI is an easy recommendation.

Unlike many experimental terminal agents that lock developers behind expensive pay-per-token API tiers, Codex connects directly to standard ChatGPT subscriptions. That dramatically lowers the barrier to everyday usage without worrying about runaway API bills.

Making the agent CLI fully open-source under Apache-2.0 is a smart move. It provides full transparency into what is executing on your local machine and lets the developer community build on top of terminal-driven workflows without waiting on closed vendor updates.

Sources (1)

  1. [1]
    github.com(opens in a new tab)Originalgithub.com

Best of AI, daily