OpenAI Codex CLI drew 56.9% of npm downloads among tracked AI coding CLIs but matched few Hacker News titles

Data card drawn with AI image generation from this article's numbers and checked against them by code.
Over the 30 days from 2026-09-22 to 2026-10-21, the npm package of OpenAI Codex CLI accounted for 56.9% of the 147,275,439 downloads summed across the 6 AI coding CLI packages this pipeline tracks. In the same 30 days, Codex CLI matched 5 of the 298 Hacker News stories found by title search for the tracked tools. On npm, Codex CLI holds most of the tracked downloads. In Hacker News titles, its count stays below the pipeline’s low-count threshold.
Codex CLI accounted for most of the tracked npm downloads in the latest 30 days
Codex CLI’s npm package, @openai/codex, recorded
83,812,696 downloads in the latest 30 days. In the previous 30 days it
recorded 82,624,273 downloads.
The share figure is this article’s own computed number. It divides Codex CLI’s downloads in the window by the summed downloads of all tracked packages in the same window, giving 56.9% of the 147,275,439 total. A single public download count does not show where a package sits within a fixed set of peer packages over the same 30 days. The share does.
Codex CLI’s Hacker News title count stayed below the low-count threshold in both windows
Codex CLI matched 5 Hacker News stories in the latest 30 days and 4 in the previous 30 days. Both counts are below the low-count threshold of 10. This article therefore reports them as raw counts only. It does not compute a Hacker News share, a growth percentage or an attention-to-download ratio for Codex CLI.
The 5 Codex CLI stories in the latest 30 days received 712 Hacker News points in total.
Across the tracked tools, npm share and Hacker News title count did not move together
Table 1 shows every tracked tool in the same form: its npm share of the tracked total next to its raw Hacker News story count for the same 30 days. The last column marks counts below the threshold of 10. The same raw-count-only rule applies to every tool marked “yes”.
Table 1: npm share and Hacker News title count do not line up across the tracked tools (2026-09-22 to 2026-10-21)
| Tool | npm share of tracked downloads | Hacker News stories (title match) | HN count below threshold |
|---|---|---|---|
| OpenAI Codex CLI | 56.9% | 5 | yes |
| Claude Code | 30.7% | 253 | no |
| opencode | 7.3% | 39 | no |
| GitHub Copilot CLI | 3.8% | 0 | yes |
| Gemini CLI | 0.99% | 1 | yes |
| Qwen Code | 0.19% | 0 | yes |
Codex CLI has the largest npm share of the tracked packages here, at 56.9%, and its raw Hacker News count of 5 is below the threshold. Claude Code, with 253 stories, and opencode, with 39, have Hacker News counts above it.
What the side-by-side reading means
The npm share and the Hacker News title count come from separate sources and measure different things. One counts package fetches from the npm registry. The other counts story titles on a single discussion site. In this window, a package’s place in the npm share column did not predict its place in the Hacker News column. The tool with the largest tracked npm share sits below the low-count threshold on Hacker News, and tools with smaller npm shares sit above it.
These numbers do not prove any of the following:
- The reason for the gap. The figures show how the two measured quantities sit side by side over 30 days. They do not show why they differ. Correlation is not causation, and the absence of a correlation is not an explanation either.
- Adoption or users. An npm share of the tracked packages is not total adoption, market share or popularity. Download counts include automated installs, CI runs and reinstalls, so they do not equal people.
- Interest outside Hacker News. A Hacker News title count reflects one specific audience and only the stories whose titles name the tool.
Limits that change how to read these numbers
- npm is only one install channel and its share differs by tool, so an npm share of the tracked packages is not total adoption, market share or popularity, and must not be used to rank the tools.
- The share is computed only within the 6 tracked packages; it says nothing about AI coding tools that are not tracked or not distributed through npm.
- npm download counts count fetches, not people. Automated installs, CI runs and reinstalls are included, so downloads do not equal users.
- Hacker News title search misses stories whose titles omit the queried names. The queries “Codex CLI” and “OpenAI Codex” can also match stories about other products that share the Codex name. Hacker News reflects one specific audience.
- Codex CLI’s HN counts are below the low-count threshold, so small changes in raw stories are noise-prone. The article does not use its HN share, its attention-to-download ratio or its HN growth percentage. The same applies to GitHub Copilot CLI, Gemini CLI and Qwen Code, whose counts are also below 10.
- The data shows how two measured quantities sit side by side over 30 days; it does not show why they differ, and correlation is not causation.
What this result can and cannot be used for
You can use this result to describe Codex CLI’s npm downloads as a share of the tracked AI coding CLI packages over this 30-day window, and to set that share beside a raw count of Hacker News title matches from the same window. You can also use it to see that, across the tracked tools in this window, the two measures did not line up.
You cannot use it to rank the tools, estimate how many people use any of them, claim market share, explain why the measures differ, or draw conclusions about tools that are not tracked here or not distributed through npm.
Methodology
Sources. Hacker News stories came from the Hacker News search API. Download counts came from the npm download counts API.
Time windows. The current window is 2026-09-22 to 2026-10-21. The previous window is 2026-08-23 to 2026-09-21. Data was collected on 2026-10-22.
Hacker News search. Hacker News Algolia search, stories only, exact quoted phrase in the title with typo tolerance off, then each title re-checked by code for the whole phrase; hits are de-duplicated across a tool’s queries.
npm counts. npm downloads point API for the listed package over the same windows.
Queries and packages per tool:
- Claude Code: Hacker News query “Claude Code”; npm package
@anthropic-ai/claude-code - OpenAI Codex CLI: Hacker News queries “Codex CLI” and “OpenAI
Codex”; npm package
@openai/codex - Gemini CLI: Hacker News query “Gemini CLI”; npm package
@google/gemini-cli - GitHub Copilot CLI: Hacker News query “Copilot CLI”; npm package
@github/copilot - Qwen Code: Hacker News query “Qwen Code”; npm package
@qwen-code/qwen-code - opencode: Hacker News query “opencode”; npm package
opencode-ai
Metric definitions used in this article:
- npm_cur: npm downloads of the listed package from 2026-09-22 to 2026-10-21, from the npm downloads point API
- hn_cur: Hacker News stories whose title contains one of the listed exact phrases, from 2026-09-22 to 2026-10-21
- npm_share_pct: the tool’s npm downloads as a percent of the downloads of all listed tools in the same window
Previous-window figures (npm_prev and hn_prev) are the same counts taken over 2026-08-23 to 2026-09-21. The Hacker News points figure is the total points of the matched stories in the current window.
Formula, baseline and interpretation. Both npm figures come from the npm registry. The share is codex-cli.npm_share_pct = codex-cli.npm_cur ÷ all.npm_downloads × 100. Its comparison baseline is the summed downloads of the 6 tracked packages in the same window. The share tells the reader where Codex CLI’s npm count sits within that tracked set. It is then set beside a measure from a separate source, the raw Hacker News title count. Tools whose Hacker News count is below 10 in a window are reported as raw counts only.
Known limitations.
- npm is only one install channel and its share differs by tool, so an npm share of the tracked packages is not total adoption, market share or popularity, and must not be used to rank the tools.
- The share is computed only within the 6 tracked packages; it says nothing about AI coding tools that are not tracked or not distributed through npm.
- npm download counts count fetches, not people. Automated installs, CI runs and reinstalls are included, so downloads do not equal users.
- Hacker News title search misses stories whose titles omit the queried names. The queries ‘Codex CLI’ and ‘OpenAI Codex’ can also match stories about other products that share the Codex name. Hacker News reflects one specific audience.
- Codex CLI’s HN counts are below the low-count threshold, so small changes in raw stories are noise-prone. The article does not use its HN share, its attention-to-download ratio or its HN growth percentage.
- The data shows how two measured quantities sit side by side over 30 days; it does not show why they differ, and correlation is not causation.
Drafted with AI assistance (Claude, made by Anthropic) from public data collected by our pipeline; numbers were checked against the dataset by code and the article was reviewed by the author before publication.
Anthropic, which makes Claude, also makes Claude Code, one of the tools compared in this article.