Codex CLI

OpenAI's open source coding agent for the terminal.

Last reviewed 5 December 2026 · Apache-2.0 · AI & LLM Tools

Licence
Type
Developer tool
GitHub stars
★ 137k
Last commit
December 2026
First release
2025
Hosted version
No

What is Codex CLI?

Codex CLI is a lightweight coding agent from OpenAI that reads, edits and runs code in your terminal, with sandboxing and approval modes. The client is open source and written in Rust.

Note: The client is open source, but it is designed for OpenAI's models and account sign-in.

Key features

  • Sandboxed command execution
  • Approval modes
  • MCP support
  • Written in Rust

Codex CLI as an open source alternative

Codex CLI is listed on 2 of our comparison pages as an open source replacement for Cursor and Claude Code. Compare it with the other options:

Licence

Codex CLI is released under the Apache-2.0 licence, a permissive licence. More Apache-2.0 software →

Codex CLI: FAQ

Is Codex CLI open source?

Yes. Codex CLI is released under the Apache-2.0 licence (permissive), and its source code is public. The client is open source, but it is designed for OpenAI's models and account sign-in.

Is Codex CLI free?

The software is free to use.

What does Codex CLI replace?

Codex CLI is an open source alternative to Claude Code and Cursor.

Can I self-host Codex CLI?

Codex CLI runs on your own machine or in your own development environment.

Similar open source projects

Zed

GPL-3.096.4k

High-performance code editor with AI and collaboration.

Replaces Visual Studio Code, Cursor

Cloud option
Desktop appDeveloper Tools

More Apache-2.0 projects

Jitsi Meet

Apache-2.030.4k

Video meetings in the browser, no account needed.

Replaces Zoom, Google Meet, Microsoft Teams, Webex

Self-hostedCloud option
Self-hostedVideo Conferencing

Supabase

Apache-2.0116k

The Postgres development platform.

Replaces Firebase

Self-hostedCloud option
Self-hostedBackend, Hosting & Auth

frp

Apache-2.0111k

Fast reverse proxy to expose local servers.

Replaces ngrok

Self-hosted
Self-hostedBackend, Hosting & Auth

Home Assistant

Apache-2.092.7k

Local-first home automation for thousands of devices.

Replaces Google Home, SmartThings

Self-hostedCloud option
Self-hostedUtilities
Browse 350+ open source alternativesSearch by product, category or licence