OpenAI Codex CLI launched in April 2025 as an open-source terminal agent for coding. Since then, it has grown into one of the most popular AI coding tools on the market, reaching over 5 million weekly users and 90,000+ GitHub stars in under 14 months.
In this article, you'll find the latest numbers, data, and facts about Codex CLI. From GitHub stars and npm downloads to benchmarks and pricing to technical specifications and enterprise adoption.
- 90,644 GitHub stars, 41.8M npm downloads (last 30 days), 5M+ weekly users (OpenAI, June 2, 2026)
- Rewritten from TypeScript to Rust in June 2025. 840+ total releases, Apache 2.0 license
- GPT-5.5 scores 82.7% on Terminal-Bench 2.0 (April 2026); GPT-5.3-Codex: 56.8% SWE-bench Pro
- OpenAI valued at $852B (March 2026), $24-25B ARR, $180B total funding raised
1. What Is OpenAI Codex CLI?
Codex CLI is OpenAI's open-source AI coding agent for the terminal. You describe what you want in natural language. Codex writes code, creates files, runs commands, and handles version control. It runs directly in your terminal, sandboxed for safety.
The project launched on April 16, 2025, and has evolved rapidly. Here are the key milestones:
Date | Milestone | Details |
|---|---|---|
| Apr. 13, 2025 | Repository created | GitHub repo initialized |
| Apr. 16, 2025 | Open-sourced | Public release under Apache 2.0 |
| May 16, 2025 | Codex Web agent | Cloud-based agent preview (formerly Codex) |
| Jun. 2025 | Rust rewrite | Rewritten from TypeScript to Rust for performance |
| Jun. 2025 | $1M Open Source Fund | OpenAI commits $1M to open-source tooling |
| Jan. 14, 2026 | GPT-5.2-Codex | New specialized coding model |
| Feb. 5, 2026 | GPT-5.3-Codex | 77.3% on Terminal-Bench |
| Feb. 2026 | Desktop app | Desktop application, 1M+ downloads |
| Mar. 5, 2026 | GPT-5.4 | 1M token context, computer use capabilities |
| Apr. 2, 2026 | Token-based pricing | Shift to token-based billing model |
| Apr. 8, 2026 | 3M weekly users | Confirmed by Sam Altman |
| Apr. 21, 2026 | 4M+ weekly devs | OpenAI confirms over 4 million weekly developers |
| Apr. 23, 2026 | GPT-5.5 | Terminal-Bench 2.0: 82.7%, 1M token context, available to Plus/Pro/Business/Enterprise |
| Jun. 2, 2026 | 5M+ weekly users | OpenAI confirms 5M+ weekly users; 20% are knowledge workers |
From launch to over 5 million weekly users in just 14 months. That is aggressive growth, even by AI standards. The Rust rewrite in June 2025 was a pivotal moment, significantly improving startup time and resource usage.
2. GitHub Stars and npm Downloads
Codex CLI is fully open source under the Apache 2.0 license. Here are the key repository metrics:
- 90,644 GitHub stars (as of June 12, 2026)
- 13,355 forks
- 840+ total releases
- ~4.4 million GitHub release downloads
- Language: 95.6% Rust (since June 2025 rewrite)
2.1. npm Download Growth
The npm download numbers tell a clear growth story. From 82,000 downloads in the launch month to 41.8 million in May 2026, a 510x increase in just over a year:
The jump from February to March 2026 stands out, but May 2026 was even more striking: nearly 42 million downloads. That coincides with GPT-5.5 rollout and broader knowledge-worker adoption. Total npm downloads over the past 12 months: 314.1 million.
2.2. GitHub Stars Comparison
Codex CLI has strong numbers, but the competition has moved fast. Here is how the three major open-source AI coding CLIs compare:
Claude Code leads with 131,985 stars. Gemini CLI is at 105,189. Codex CLI sits in third place with 90,644. The gap is notable, but Codex has a different distribution strategy: it is deeply tied into ChatGPT subscriptions, which means many users never interact with the GitHub repo directly.
3. Weekly Active Users
On June 2, 2026, OpenAI confirmed that Codex had reached over 5 million weekly users, up from 4 million on April 21 and just 600,000 at the start of the year. Around 20% of those users are now knowledge workers rather than developers. The growth trajectory since January 2026 has been steep:
From 600,000 weekly users at the start of 2026 to over 5 million by early June. That is an 8x increase in five months. The desktop app release in February 2026 was a major accelerator, and the GPT-5.5 rollout in late April further expanded Codex beyond its developer core.
For context: ChatGPT has 900 million weekly active users overall and 50 million paying subscribers. Codex CLI targets a much narrower audience (developers), but over 4 million weekly active developers is a significant number for a command-line tool.
4. npm Downloads Comparison
Monthly npm downloads are a useful proxy for developer adoption. Here is how the three CLI tools compare over the last 30 days:
Codex CLI leads with 41.8 million downloads. Claude Code is close behind at 37.9 million. Gemini CLI trails at 3.0 million. This is a notable reversal from earlier in 2026, when Claude Code held a significant lead.
npm downloads don't capture the full picture for Codex. Many users access Codex through the desktop app or through ChatGPT's web interface (the Codex Web agent), neither of which shows up in npm stats.
5. VS Code Extension
Both Codex and Claude Code offer VS Code extensions. The install numbers as of February 2026:
Extension | Installs | Rating |
|---|---|---|
| Claude Code | 5.2M | 4.0/5 |
| Codex | 4.9M | 3.4/5 |
Claude Code leads in both installs and user satisfaction. The rating gap is significant: 4.0 vs. 3.4 out of 5. That matches what the Pragmatic Engineer Survey found: developers generally prefer Claude Code's output quality, even if they use Codex for its integration with OpenAI's ecosystem.
The "Most Loved" category in the Pragmatic Engineer Survey paints an even clearer picture. Codex does not appear in the top three:
Codex doesn't appear in the "Most Loved" top three. Developers use it, but they don't love it the way they love Claude Code or Cursor. With the newer models and the desktop app, that could change, but for now the satisfaction gap is real and worth tracking.
6. Coding Benchmarks
OpenAI has released several specialized models for Codex. The benchmark progression shows steady improvement:
Model | Release | SWE-bench | Terminal-Bench | Context |
|---|---|---|---|---|
| codex-1 | May 2025 | 72.1% (Verified) | N/A | ~256K |
| GPT-5.2-Codex | Jan. 2026 | 56.4% (Pro) | 64.0% | ~256K |
| GPT-5.3-Codex | Feb. 2026 | 56.8% (Pro) | 77.3% | ~256K |
| GPT-5.4 | Mar. 2026 | N/A | 75.1% | 1M |
| GPT-5.5 | Apr. 23, 2026 | N/A | 82.7% (TB 2.0) | 1M |
GPT-5.5 sets the current record at 82.7% on Terminal-Bench 2.0, released April 23, 2026. Terminal-Bench tests how well an AI agent handles real-world terminal tasks end to end. That is the strongest result any AI coding model has posted on this benchmark.
GPT-5.4 trades a small amount of Terminal-Bench performance (75.1% vs. 77.3% from GPT-5.3-Codex) for a massive context window increase to 1 million tokens. GPT-5.5 delivers both the larger context and a new benchmark record.
7. Pricing and Costs
Codex CLI is included in all ChatGPT subscription plans. Unlike Claude Code (which requires a separate Claude subscription), Codex comes bundled with ChatGPT:
Plan | Price | Message Limits (per 5 hours) |
|---|---|---|
| ChatGPT Plus | $20/month | 30-150 messages |
| ChatGPT Pro | $200/month | 300-1,500 messages |
| ChatGPT Business | $30/user/month | Team-managed limits |
7.1. API Pricing
For API access, OpenAI offers two options:
Model | Input (per 1M tokens) | Output (per 1M tokens) |
|---|---|---|
| codex-mini-latest | $1.50 | $6.00 |
| GPT-5 | $1.25 | $10.00 |
GPT-5 has a lower input price ($1.25 vs. $1.50) but a higher output price ($10.00 vs. $6.00). For code generation tasks where output tends to be longer than input, codex-mini-latest may be the more economical choice.
7.2. Price Comparison with Competitors
Lined up side by side, the subscription tiers tell the story. Codex and Claude Code both start at $20/month and top out at $200 for their highest plans:
At the entry level, both Codex (via ChatGPT Plus) and Claude Code (via Claude Pro) cost $20/month. The value proposition differs: ChatGPT Plus includes Codex as one feature among many (DALL-E, browsing, file uploads). Claude Pro is more focused on coding and long-form tasks.
8. Technical Specifications
The technical overview:
Property | Value |
|---|---|
| Context window (CLI) | ~256K tokens |
| Context window (GPT-5.4) | 1M tokens |
| Sandbox (macOS) | Seatbelt |
| Sandbox (Linux) | Landlock + seccomp |
| Platforms | macOS, Linux, Windows (WSL) |
| Installation | npm i -g @openai/codex or brew install --cask codex |
| Language | 95.6% Rust |
| License | Apache 2.0 |
| Supported models | GPT-5.5, GPT-5.4, GPT-5.3-Codex, codex-mini-latest, o3, o4-mini |
| Total releases | 840+ |
The sandbox architecture is worth highlighting. Codex uses Seatbelt on macOS and Landlock + seccomp on Linux to isolate executed code. That means Codex can run commands in your terminal without risking damage to your system. It is a design choice that prioritizes safety over convenience, and it is one of the areas where Codex genuinely differentiates itself.
The Rust rewrite is another notable decision. Moving from TypeScript to Rust in June 2025 significantly reduced startup time and memory usage. At 95.6% Rust, Codex is one of the few AI tools built primarily in a systems language.
8.1. Context Window Comparison
Even the standard Codex CLI ships with 256K tokens, ahead of Claude Code's 200K. With GPT-5.4, Codex jumps to 1 million tokens, matching Gemini CLI:
With GPT-5.4, Codex offers one of the largest context windows in the AI coding space at 1 million tokens. That is roughly 750,000 words, or about 2,500 pages. Large enough to fit most entire codebases in a single context window.
9. OpenAI Financials
Codex doesn't exist in isolation. It is part of OpenAI's broader ecosystem. Understanding the parent company's financials provides context for where Codex fits:
- OpenAI total revenue: $24-25B ARR (early 2026), ~$2B per month
- ChatGPT: 900M weekly active users, 50M paying subscribers
- Valuation: $852B (March 31, 2026)
Codex is included in all ChatGPT subscriptions, so its revenue is not broken out separately. That said, Codex drives subscription upgrades: many developers sign up for ChatGPT Plus or Pro specifically for the coding agent.
From $6B ARR at the start of 2025 to $25B by March 2026. A 4x increase in 14 months. For comparison: Anthropic reached $47B ARR in May 2026, and Google's Gemini product line generates roughly $5B.
$852 billion valuation. $180 billion in total funding. $24-25 billion in annualized revenue. These are staggering numbers, even in the context of the AI industry. Note: Anthropic's May 2026 Series H valued it at $965 billion, surpassing OpenAI in private market valuation.
9.1. Latest Funding Round
OpenAI's $122 billion round in March 2026 was the largest venture capital deal in history. The investor breakdown:
Amazon alone invested $50 billion. Nvidia and SoftBank contributed $30 billion each. For comparison, Anthropic's largest round was $30 billion total. OpenAI raised 4x that in a single deal.
9.2. AI Company Valuations
Despite its massive funding round, OpenAI is no longer the most highly valued AI startup. Anthropic overtook it in May 2026:
Anthropic reached a $965 billion valuation after its Series H in May 2026, surpassing OpenAI's $852 billion (March 2026). Both companies filed for IPOs confidentially in June 2026 (TechCrunch). xAI trails at $230 billion.
9.3. Revenue Comparison
Where does OpenAI stand relative to the competition?
Anthropic now leads on run-rate revenue at $47 billion ARR (May 2026), after growing from $9 billion at end-2025. OpenAI reported $24-25 billion ARR as of March 2026. Both companies confidentially filed for IPOs in June 2026 (TechCrunch), setting up a head-to-head race that will be defined in part by their AI coding tools.
10. Enterprise Adoption
The enterprise numbers are OpenAI's strongest argument for Codex:
- 90% of Fortune 100 companies use OpenAI products (including Codex)
- 6x enterprise growth since January 2026
- 900M weekly active users across ChatGPT (50M paying)
- ~4,000 employees (end of 2025), targeting 8,000 by end of 2026
10.1. Named Enterprise Customers
Customer | Industry | Details |
|---|---|---|
| GitHub | Developer Tools | Codex powering Copilot's agentic features |
| Notion | Productivity | AI assistant integration |
| Cisco | Networking | Enterprise deployment |
| Nvidia | Semiconductors | Development workflow integration |
| Goldman Sachs | Finance | Internal coding assistance |
| Ramp | Fintech | Engineering team adoption |
| DoorDash | Delivery | Development acceleration |
10.2. Codex Security
In March 2026, OpenAI launched Codex Security in preview. The early numbers are significant:
- 1.2 million commits scanned
- 10,561 high-severity findings
That is roughly 1 high-severity security issue per 114 commits. Codex Security automates vulnerability detection in the CI/CD pipeline, a direct competitor to Snyk and SonarQube but powered by LLMs. Enterprise customers care deeply about this. Security tooling is often the deciding factor for large organizations choosing an AI coding platform.
11. Survey Data and Market Position
Two major surveys provide context for Codex's market position:
11.1. Pragmatic Engineer Survey (February 2026)
The most comprehensive AI coding survey to date (~900 developers):
- Claude Code ranked #1 most-used and #1 most-loved AI coding tool
- 95% of developers use AI tools weekly
- Codex ranked behind Claude Code and GitHub Copilot in overall usage
11.2. JetBrains Survey (January 2026)
Metric | Value | Context |
|---|---|---|
| Heard of Codex | 27% | Awareness among surveyed developers |
| Currently using Codex | 3% | Pre-desktop app launch |
| AI coding market size (2026) | $9.5-12.8B | Estimated market value |
| Market CAGR | 22-28% | Annual growth rate |
The JetBrains numbers (3% usage) look low, but they were collected in January 2026, before the desktop app launch and the GPT-5.3-Codex/GPT-5.4 releases. The 3 million weekly active users reported in April 2026 suggest that adoption has accelerated dramatically since then.
For complex coding tasks (multi-file refactoring, architecture decisions, large-scale debugging), Claude Code leads at 44%. Codex / ChatGPT sits at 19%. This is the segment where terminal agents have the most impact, and where Codex has the most room to grow.
12. Competitor Overview
The AI coding CLI market has three major open-source players. Here is a direct comparison:
Feature | Codex CLI | Claude Code | Gemini CLI |
|---|---|---|---|
| GitHub Stars | 90,644 | 131,985 | 105,189 |
| npm Downloads (30d) | 41.8M | 37.9M | 3.0M |
| License | Apache 2.0 | Open Source | Apache 2.0 |
| Language | Rust | TypeScript | TypeScript |
| Context (max) | 1M (GPT-5.4) | 1M (beta) | 1M (standard) |
| Terminal-Bench | 82.7% (TB 2.0) | 65.4% | N/A |
| SWE-bench Pro | 56.8% | N/A | N/A |
| Sandbox | Seatbelt/Landlock | Seatbelt/Landlock | Docker |
| Included in | ChatGPT plans | Claude plans | Free (API) |
| VS Code Extension | 4.9M installs | 5.2M installs | N/A |
Each tool has clear strengths. Codex leads on Terminal-Bench 2.0 (82.7% for GPT-5.5) and npm downloads, and benefits from the ChatGPT ecosystem with 900 million weekly users. Claude Code leads in GitHub stars and developer satisfaction. Gemini CLI offers the largest free context window at 1 million tokens standard.
For a much deeper comparison, read our article on Claude Code vs. Gemini CLI vs. Codex.
13. Interesting Facts and Records
To close out, here are the most notable facts about Codex CLI:
- Rust rewrite in 2 months: Codex was rewritten from TypeScript to Rust in June 2025, just two months after the initial open-source release. 95.6% of the codebase is now Rust.
- 840+ releases in 14 months: That averages out to nearly two releases per day. Few open-source projects maintain this pace.
- 510x download growth: From 82,000 npm downloads in April 2025 to 41.8 million in May 2026.
- 5 million weekly users in 14 months: Confirmed by OpenAI on June 2, 2026. Around 20% are knowledge workers rather than developers.
- 82.7% Terminal-Bench 2.0: GPT-5.5 holds the highest Terminal-Bench 2.0 score among all AI coding models tested.
- $122 billion funding round: OpenAI's March 2026 round was the largest VC deal in history. Amazon invested $50 billion alone.
- Codex Security scanned 1.2 million commits: Found 10,561 high-severity findings in the preview period.
- 90% of Fortune 100: Nearly all Fortune 100 companies use OpenAI products, giving Codex a built-in enterprise distribution channel.
The bottom line: Codex CLI has established itself as a serious contender in the AI coding market. It trails Claude Code in developer adoption and satisfaction, but OpenAI's ecosystem advantages (ChatGPT integration, enterprise relationships, and massive funding) give it a strong foundation for growth.
If you want to compare all three CLI tools in detail, check out our Claude Code vs. Gemini CLI vs. Codex comparison.






