Skip to content

Official links only. Every download link goes to the publisher's own official page. We never host, repackage or bundle files.

OpenAI Codex CLI logo

OpenAI Codex CLI

v0.166.0Open sourceReleased 29 Oct 2026

OpenAI's open-source coding agent that reads, edits and runs code from your terminal. By OpenAI

  • Windows
  • macOS
  • Linux
Official sourceNo bundles

By the ToolsBharat teamUpdated 29 Oct 2026How we check

Quick answer

OpenAI Codex CLI is open source software for Windows, macOS and Linux from OpenAI. OpenAI's open-source coding agent that reads, edits and runs code from your terminal. Download it only from github.com. The latest version we track is 0.166.0 (29 Oct 2026). ToolsBharat links straight to the publisher's own download page, with no bundled offers.

Latest version:
0.166.0 (29 Oct 2026)
Publisher:
OpenAI
Official site:
learn.chatgpt.com
Licence:
Open source — Apache-2.0 (CLI source); use needs a ChatGPT plan sign-in or an OpenAI API key
Requirements:
Windows, macOS, Linux (minimum versions not stated by the publisher)

Our verdict

Codex CLI works inside your local repository: it reads files, proposes edits, runs commands and can review a diff before you commit. The CLI itself is open source, but the model behind it runs on OpenAI's servers, so you sign in with a ChatGPT account or supply an API key. Releases ship very often, which is good for fixes but means behaviour changes quickly.

Screenshots

Codex CLI running in a terminal
Official GitHub repository

Key features

  • Edits files and runs local tools inside your project folder
  • Reviews uncommitted changes, a commit or a branch without touching your working tree
  • codex exec for scripts and CI pipelines
  • MCP server connections, image input and resumable sessions
  • Same agent also available as a VS Code / Cursor / Windsurf extension

Pros

  • Pro: Open-source CLI under Apache-2.0
  • Pro: Works with an existing ChatGPT plan instead of separate API billing
  • Pro: Native builds for Windows, macOS and Linux on x64 and ARM64

Cons

  • Con: Needs an internet connection and an OpenAI account for every task
  • Con: Free-plan access is limited and depends on OpenAI's rollout
  • Con: Very fast release cadence can change behaviour between versions

What's new in 0.166.0

See what changed in 0.166.0 in the official release notes

Version history

  1. Version 0.166.0Latest

    29 Oct 2026
    SHA-256
    The developer does not publish one
    Source
    Release notes

Official downloads by platform

For Windows, use the Download button. Other platforms go straight to the publisher's own page or official store.

Requirements

OS
Windows, macOS, Linux (minimum versions not stated by the publisher)
Architecture
x64, ARM64 (per GitHub release builds)
Also needs
ChatGPT account (Free, Go, Plus, Pro, Business, Edu or Enterprise) or OpenAI API key; internet connection

Licence

Type
Open source
Licence
Apache-2.0 (CLI source); use needs a ChatGPT plan sign-in or an OpenAI API key
Publisher
learn.chatgpt.com

Where these facts come from

Checked 30 Oct 2026

FAQ

Is there a Codex desktop app?

OpenAI's docs now place the Codex desktop experience inside the ChatGPT desktop app, offered for macOS, Windows (via the Microsoft Store) and Linux. The CLI can also open it with the codex app command.

Do I need to pay to use Codex CLI?

The CLI is free and open source, but it calls OpenAI's models. OpenAI lists Codex as included in ChatGPT Free, Go, Plus, Pro, Business, Edu and Enterprise plans, with the Free tier meant for light use; you can also use an API key billed per usage.

User reviews

User reviewsयूज़र रिव्यू

No reviews yet

Used OpenAI Codex CLI? Reviews appear after moderation; we never import or invent ratings.

Write a review of OpenAI Codex CLI

Shown with your review.

Never shown. Only used if a moderator needs to contact you.

What worked, what didn't? 30–3000 characters. Plain text only.

Reviews are checked by a person before they appear. We never import or invent ratings.

Alternatives

OpenAI Codex CLI

0.166.0 · Not stated

Download

↑ ↓ to move · Enter to open · Esc to close