# openai/codex SLOC report

> openai/codex: 1,665,196 code lines at commit 2f3fb111be71, counted with tokei-14.0.0 on 2026-10-22. Saved result d9c801c1f441978fc48a9655950d92c28caa6d33034480c9d26821dbc6c77f4c.

openai/codex has 1,665,196 source lines of code out of 1,815,427 total lines across 6,488 files, counted from the main ref at commit 2f3fb111be71 by the OctoCounts tokei engine on 2026-10-22. The report is cached by commit, tokei version, and analysis options, so recounting the same revision returns exactly these numbers.

OctoCounts produced this report by resolving openai/codex to commit 2f3fb111be71, downloading the repository source archive, and counting every source file with tokei, the open-source line counter written in Rust. The table below breaks the count down by programming language into files, total lines, code lines, comment lines, and blank lines, so the figures can be compared across languages and projects. Results are cached by commit, tokei version, and analysis options, so counting the same revision again reproduces exactly these numbers.

## Repository size insights

This is a very large codebase by counted code lines. Code represents 91.7% of all lines, comments represent 1.7%, and the repository averages 257 code lines per file. Rust accounts for 86.7% of counted code.

| Language | Files | Lines | Code | Comments | Blanks |
| --- | ---: | ---: | ---: | ---: | ---: |
| Rust | 4,589 | 1,566,213 | 1,443,408 | 15,653 | 107,152 |
| JSON | 332 | 162,423 | 162,423 | 0 | 0 |
| Python | 135 | 35,121 | 30,730 | 300 | 4,091 |
| TOML | 176 | 7,257 | 6,193 | 286 | 778 |
| Bazel | 209 | 6,736 | 5,834 | 268 | 634 |
| YAML | 7 | 5,514 | 4,982 | 1 | 531 |
| TypeScript | 766 | 9,585 | 3,923 | 4,018 | 1,644 |
| Shell | 16 | 2,345 | 1,923 | 128 | 294 |
| PowerShell | 4 | 1,974 | 1,715 | 86 | 173 |
| JavaScript | 7 | 1,262 | 1,108 | 46 | 108 |
| SQL | 77 | 897 | 802 | 15 | 80 |
| CSS | 1 | 867 | 757 | 5 | 105 |
| Jupyter Notebooks | 1 | 391 | 311 | 17 | 63 |
| Pan | 2 | 346 | 292 | 5 | 49 |
| Protocol Buffers | 3 | 403 | 292 | 34 | 77 |
| HTML | 4 | 188 | 184 | 1 | 3 |
| Just | 1 | 205 | 130 | 35 | 40 |
| Nix | 2 | 142 | 124 | 10 | 8 |
| Batch | 1 | 20 | 16 | 0 | 4 |
| SVG | 4 | 14 | 14 | 0 | 0 |
| XML | 2 | 15 | 14 | 0 | 1 |
| CMake | 1 | 14 | 11 | 3 | 0 |
| C++ | 1 | 11 | 9 | 1 | 1 |
| C Header | 1 | 1 | 1 | 0 | 0 |
| Markdown | 133 | 11,419 | 0 | 8,721 | 2,698 |
| Plain Text | 13 | 2,064 | 0 | 1,750 | 314 |

Top language (Rust 86.7%). Generated at 2026-10-22T13:24:14.304922087Z. Canonical report: https://octocounts.com/github/openai/codex/commit/2f3fb111be71d277c80bd5b96d9019748b921f5a?reportId=d9c801c1f441978fc48a9655950d92c28caa6d33034480c9d26821dbc6c77f4c&analysis=%7B%22profile%22%3A%22default%22%2C%22ignoredDirs%22%3A%5B%5D%2C%22includeDocs%22%3Afalse%2C%22includeTests%22%3Afalse%2C%22ignoredLanguages%22%3A%5B%5D%2C%22includeGenerated%22%3Afalse%7D

## Reproduce this report

[Reproduce this exact report and configuration](https://octocounts.com/github/openai/codex/commit/2f3fb111be71d277c80bd5b96d9019748b921f5a?reportId=d9c801c1f441978fc48a9655950d92c28caa6d33034480c9d26821dbc6c77f4c&analysis=%7B%22profile%22%3A%22default%22%2C%22ignoredDirs%22%3A%5B%5D%2C%22includeDocs%22%3Afalse%2C%22includeTests%22%3Afalse%2C%22ignoredLanguages%22%3A%5B%5D%2C%22includeGenerated%22%3Afalse%7D).

## Report FAQ

### How many lines of code does openai/codex have?

openai/codex has 1,815,427 total lines, including 1,665,196 code lines, 31,383 comment lines, and 118,848 blank lines.

### How was the openai/codex line count measured?

OctoCounts resolved the public GitHub repository to commit 2f3fb111be71, downloaded the source archive, counted it with tokei, and cached the report by commit, tokei version, and analysis options.

### What commit was counted for openai/codex?

This OctoCounts report was generated from main at commit 2f3fb111be71 on 2026-10-22T13:24:14.304922087Z.

## Similar repository reports

- [codewhale-hq/Codewhale](https://octocounts.com/github/codewhale-hq/Codewhale) — Rust, 1,698,066 code lines
- [trycua/cua](https://octocounts.com/github/trycua/cua) — Rust, 1,699,051 code lines
- [Haleclipse/codex](https://octocounts.com/github/Haleclipse/codex) — Rust, 1,627,008 code lines
- [xai-org/grok-build](https://octocounts.com/github/xai-org/grok-build) — Rust, 1,584,555 code lines
- [nicodunks/mog](https://octocounts.com/github/nicodunks/mog) — Rust, 1,568,608 code lines
- [warpdotdev/warp](https://octocounts.com/github/warpdotdev/warp) — Rust, 1,542,571 code lines

## Related OctoCounts pages

- [Recently analyzed repositories](https://octocounts.com/recent)
- [Popular SLOC reports](https://octocounts.com/popular)
- [Trending GitHub repositories](https://octocounts.com/trending)
- [Hall of Monoliths](https://octocounts.com/hall-of-monoliths)
- [Rust vs Go](https://octocounts.com/compare/rust-vs-go)
- [Electron vs Tauri](https://octocounts.com/compare/electron-vs-tauri)
- [Deno vs Node.js](https://octocounts.com/compare/deno-vs-node)
- [GitHub SLOC counter guide](https://octocounts.com/docs/github-sloc-counter)
- [Counting methodology](https://octocounts.com/docs/methodology)
- [SLOC and code metrics glossary](https://octocounts.com/docs/glossary)
- [Original research: how filtering changes SLOC counts](https://octocounts.com/research)
- [OctoCounts API docs](https://octocounts.com/docs/api)
