Skip to main content
gradually.ai logogradually.ai
  • Blog
  • About Us
AI Newsletter
AI Newsletter
  1. Home
  2. AI Blog

OpenAI Codex Statistics 2026: Key Numbers, Data & Facts

Current OpenAI Codex CLI statistics for 2026: GitHub stars, npm downloads, weekly developers, SWE-bench and Terminal-Bench scores, pricing, and models.

FHFinn Hillebrandt
June 14, 2026
Auf Deutsch lesen
AI Programming
OpenAI Codex Statistics 2026: Key Numbers, Data & Facts
𝕏XShare on XFacebookShare on FacebookLinkedInShare on LinkedInPinterestShare on PinterestThreadsShare on ThreadsFlipboardShare on Flipboard
Links marked with * are affiliate links. If a purchase is made through such links, we receive a commission.

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.

TL;DRKey Takeaways
  • 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
Note
This article covers Codex CLI as an AI coding tool exclusively. For a direct comparison with competing tools, check out our article on Claude Code vs. Gemini CLI vs. Codex. All figures are as of June 2026 unless noted otherwise.

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, 2025Repository createdGitHub repo initialized
Apr. 16, 2025Open-sourcedPublic release under Apache 2.0
May 16, 2025Codex Web agentCloud-based agent preview (formerly Codex)
Jun. 2025Rust rewriteRewritten from TypeScript to Rust for performance
Jun. 2025$1M Open Source FundOpenAI commits $1M to open-source tooling
Jan. 14, 2026GPT-5.2-CodexNew specialized coding model
Feb. 5, 2026GPT-5.3-Codex77.3% on Terminal-Bench
Feb. 2026Desktop appDesktop application, 1M+ downloads
Mar. 5, 2026GPT-5.41M token context, computer use capabilities
Apr. 2, 2026Token-based pricingShift to token-based billing model
Apr. 8, 20263M weekly usersConfirmed by Sam Altman
Apr. 21, 20264M+ weekly devsOpenAI confirms over 4 million weekly developers
Apr. 23, 2026GPT-5.5Terminal-Bench 2.0: 82.7%, 1M token context, available to Plus/Pro/Business/Enterprise
Jun. 2, 20265M+ weekly usersOpenAI 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:

May 26:41.8M+187.7%vs. Mar. 26
Sources: npm, GitHub
|
CC BY 4.0
gradually.ai

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:

Source: GitHub
|
CC BY 4.0
gradually.ai

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:

Jun. 2, 26:5M+25.0%vs. Apr. 21, 26
Source: Sam Altman, OpenAI
|
CC BY 4.0
gradually.ai

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:

Source: npm
|
CC BY 4.0
gradually.ai

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 Code5.2M4.0/5
Codex4.9M3.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:

Source: Pragmatic Engineer Survey (~900 developers)
|
CC BY 4.0
gradually.ai

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-1May 202572.1% (Verified)N/A~256K
GPT-5.2-CodexJan. 202656.4% (Pro)64.0%~256K
GPT-5.3-CodexFeb. 202656.8% (Pro)77.3%~256K
GPT-5.4Mar. 2026N/A75.1%1M
GPT-5.5Apr. 23, 2026N/A82.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.

Note
SWE-bench has two variants: Verified (easier) and Pro (harder). The codex-1 score of 72.1% is on Verified, while the GPT-5.2/5.3-Codex scores of 56.4%/56.8% are on Pro. These are not directly comparable. Pro represents significantly more difficult software engineering tasks.

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/month30-150 messages
ChatGPT Pro$200/month300-1,500 messages
ChatGPT Business$30/user/monthTeam-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:

Sources: OpenAI, Anthropic
|
CC BY 4.0
gradually.ai

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
PlatformsmacOS, Linux, Windows (WSL)
Installationnpm i -g @openai/codex or brew install --cask codex
Language95.6% Rust
LicenseApache 2.0
Supported modelsGPT-5.5, GPT-5.4, GPT-5.3-Codex, codex-mini-latest, o3, o4-mini
Total releases840+

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:

Sources: OpenAI, Anthropic, Google
|
CC BY 4.0
gradually.ai

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.

Mar. 26:25M+13.6%vs. Jan. 26
Sources: Bloomberg, OpenAI
|
CC BY 4.0
gradually.ai

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.

Sources: Bloomberg, Crunchbase, OpenAI
|
CC BY 4.0
gradually.ai

$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:

Sources: Bloomberg, Crunchbase
|
CC BY 4.0
gradually.ai

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:

Sources: Bloomberg, Crunchbase, CNBC, TechCrunch
|
CC BY 4.0
gradually.ai

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?

Sources: Bloomberg, SaaStr, Anthropic Series H announcement
|
CC BY 4.0
gradually.ai

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
GitHubDeveloper ToolsCodex powering Copilot's agentic features
NotionProductivityAI assistant integration
CiscoNetworkingEnterprise deployment
NvidiaSemiconductorsDevelopment workflow integration
Goldman SachsFinanceInternal coding assistance
RampFintechEngineering team adoption
DoorDashDeliveryDevelopment 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 Codex27%Awareness among surveyed developers
Currently using Codex3%Pre-desktop app launch
AI coding market size (2026)$9.5-12.8BEstimated market value
Market CAGR22-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.

Source: Pragmatic Engineer Survey (~900 developers)
|
CC BY 4.0
gradually.ai

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 Stars90,644131,985105,189
npm Downloads (30d)41.8M37.9M3.0M
LicenseApache 2.0Open SourceApache 2.0
LanguageRustTypeScriptTypeScript
Context (max)1M (GPT-5.4)1M (beta)1M (standard)
Terminal-Bench82.7% (TB 2.0)65.4%N/A
SWE-bench Pro56.8%N/AN/A
SandboxSeatbelt/LandlockSeatbelt/LandlockDocker
Included inChatGPT plansClaude plansFree (API)
VS Code Extension4.9M installs5.2M installsN/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:

  1. 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.
  2. 840+ releases in 14 months: That averages out to nearly two releases per day. Few open-source projects maintain this pace.
  3. 510x download growth: From 82,000 npm downloads in April 2025 to 41.8 million in May 2026.
  4. 5 million weekly users in 14 months: Confirmed by OpenAI on June 2, 2026. Around 20% are knowledge workers rather than developers.
  5. 82.7% Terminal-Bench 2.0: GPT-5.5 holds the highest Terminal-Bench 2.0 score among all AI coding models tested.
  6. $122 billion funding round: OpenAI's March 2026 round was the largest VC deal in history. Amazon invested $50 billion alone.
  7. Codex Security scanned 1.2 million commits: Found 10,561 high-severity findings in the preview period.
  8. 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.

Frequently Asked Questions About OpenAI Codex

𝕏XShare on XFacebookShare on FacebookLinkedInShare on LinkedInPinterestShare on PinterestThreadsShare on ThreadsFlipboardShare on Flipboard
FH

Finn Hillebrandt

AI Expert & Blogger

Finn Hillebrandt is the founder of Gradually AI, an SEO and AI expert. He helps online entrepreneurs simplify and automate their processes and marketing with AI. Finn shares his knowledge here on the blog in 50+ articles as well as through his ChatGPT Course and the AI Business Club.

Learn more about Finn and the team, follow Finn on LinkedIn, join his Facebook group for ChatGPT, OpenAI & AI Tools or do like 17,500+ others and subscribe to his AI Newsletter with tips, news and offers about AI tools and online business. Also visit his other blog, Blogmojo, which is about WordPress, blogging and SEO.

Similar Articles

Claude Code Alternatives 2026: 12 AI Coding Tools Compared
AI Programming

Claude Code Alternatives 2026: 12 AI Coding Tools Compared

June 16, 2026
FHFinn Hillebrandt
Cursor Statistics 2026: Key Numbers, Data & Facts
AI Programming

Cursor Statistics 2026: Key Numbers, Data & Facts

June 14, 2026
FHFinn Hillebrandt
How to Use Claude Code for Free (And What the Limits Are)
AI Programming

How to Use Claude Code for Free (And What the Limits Are)

June 12, 2026
FHFinn Hillebrandt
Claude Code Pricing: How Much Does Claude Code Really Cost?
AI Programming

Claude Code Pricing: How Much Does Claude Code Really Cost?

June 12, 2026
FHFinn Hillebrandt
Claude Code Statistics 2026: Key Numbers, Data & Facts
AI Programming

Claude Code Statistics 2026: Key Numbers, Data & Facts

June 12, 2026
FHFinn Hillebrandt
Claude Code vs. Gemini CLI vs. OpenAI Codex: The Ultimate Comparison
AI Programming

Claude Code vs. Gemini CLI vs. OpenAI Codex: The Ultimate Comparison

June 12, 2026
FHFinn Hillebrandt

Stay Updated with the AI Newsletter

Get the latest AI tools, tutorials, and exclusive tips delivered to your inbox weekly

Unsubscribe anytime. About 4 to 8 emails per month. Consent includes notes on revocation, service provider, and statistics according to our Privacy Policy.

gradually.ai logogradually.ai

Germany's leading platform for AI tools and knowledge for online entrepreneurs.

AI Tools

  • Text Generator
  • Prompt Enhancer
  • Prompt Link Generator
  • FLUX AI Image Generator
  • AI Art Generator
  • Midjourney Prompt Generator
  • Veo 3 Prompt Generator
  • AI Humanizer
  • AI Text Detector
  • Gemini Watermark Remover
  • All Tools →

Creative Tools

  • Blog Name Generator
  • AI Book Title Generator
  • Song Lyrics Generator
  • Artist Name Generator
  • Team Name Generator
  • AI Mindmap Generator
  • Headline Generator
  • Company Name Generator
  • AI Slogan Generator
  • Brand Name Generator
  • Newsletter Name Generator
  • YouTube Channel Name Generator

Business Tools

  • API Cost Calculator
  • Token Counter
  • AI Ad Generator
  • AI Copy Generator
  • Essay Generator
  • Story Generator
  • AI Rewrite Generator
  • Blog Post Generator
  • Meta Description Generator
  • AI Email Generator
  • Email Subject Line Generator
  • Instagram Bio Generator
  • AI Hashtag Generator

Resources

  • Claude Code MCP Servers
  • Claude Code Skills
  • n8n Hosting Comparison
  • OpenClaw Hosting Comparison
  • Claude Code Plugins
  • Claude Code Use Cases
  • Claude Cowork Use Cases
  • OpenClaw Use Cases
  • Changelogs

© 2026 Gradually AI. All rights reserved.

  • Blog
  • About Us
  • Legal Notice
  • Privacy Policy