openai/codex has 1,846,265 source lines of code out of 2,008,011 total lines across 7,103 files, counted with tokei from the main ref at commit 95946faafcd8 on November 16, 2026. Tests, docs and generated files are excluded under OctoCounts' canonical public options.
openai/codex: 1,846,265 code lines at commit 95946faafcd8, counted with tokei-15.0.0 on 2026-11-16. Saved result 85078644c64d21d5ff168168e41e71c12d27f8b79deed1c9c2867064fcb1adcd.
OctoCounts produced this report by resolving openai/codex to commit 95946faafcd8, downloading the repository source archive, and counting files selected by the effective rules 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; an exact reproduction needs the same commit, engine version, and effective counting rules.
This is a very large codebase by counted code lines. Code represents 91.9% of all lines, comments represent 1.7%, and the repository averages 260 code lines per file. Rust accounts for 87.0% of counted code.
| Language | Files | Lines | Code | Comments | Blanks |
|---|---|---|---|---|---|
| Rust | 5091 | 1739090 | 1606682 | 17661 | 114747 |
| JSON | 342 | 175344 | 175344 | 0 | 0 |
| Python | 137 | 35978 | 31517 | 332 | 4129 |
| Bazel | 240 | 9710 | 8384 | 461 | 865 |
| TOML | 184 | 7786 | 6671 | 300 | 815 |
| YAML | 9 | 5642 | 5108 | 4 | 530 |
| TypeScript | 811 | 10097 | 4097 | 4266 | 1734 |
| Shell | 16 | 2365 | 1937 | 133 | 295 |
| PowerShell | 5 | 1998 | 1736 | 89 | 173 |
| CSS | 1 | 1503 | 1325 | 17 | 161 |
| JavaScript | 8 | 1284 | 1128 | 46 | 110 |
| SQL | 81 | 945 | 840 | 19 | 86 |
| Protocol Buffers | 3 | 454 | 324 | 46 | 84 |
| Jupyter Notebooks | 1 | 391 | 311 | 17 | 63 |
| Pan | 2 | 346 | 292 | 5 | 49 |
| HTML | 4 | 192 | 188 | 1 | 3 |
| Just | 1 | 205 | 130 | 35 | 40 |
| Nix | 2 | 142 | 124 | 10 | 8 |
| GNU Style Assembly | 1 | 47 | 47 | 0 | 0 |
| Batch | 1 | 20 | 16 | 0 | 4 |
| C++ | 2 | 20 | 16 | 1 | 3 |
| CMake | 1 | 20 | 15 | 5 | 0 |
| SVG | 4 | 14 | 14 | 0 | 0 |
| XML | 2 | 15 | 14 | 0 | 1 |
| C | 1 | 7 | 4 | 2 | 1 |
| C Header | 1 | 1 | 1 | 0 | 0 |
| Markdown | 139 | 12331 | 0 | 9471 | 2860 |
| Plain Text | 13 | 2064 | 0 | 1750 | 314 |
Top language: Rust 87.0%. Generated on .
openai/codex: tokei-15.0.0, policy directories-v1; docs excluded, tests excluded, generated excluded. Excluded directory names: .cache, .generated, .git, .next, __tests__, build, dist, doc, docs, documentation, fixtures, gen, generated, node_modules, target, test, tests, vendor. Ignored languages: none. Repository declarations: off. Exclusions are rule-based; they do not prove that every test, document or generated file was removed.
Saved reports remain subject to cache cleanup and replacement. Export the JSON or text for durable citation; live repository URLs can change.
openai/codex has 1,846,265 lines of code, plus 34,671 comment lines and 127,075 blank lines, for 2,008,011 total lines at commit 95946faafcd8 on November 16, 2026. Tests, docs and generated files are excluded under OctoCounts' canonical public options.
OctoCounts resolved the public GitHub repository to commit 95946faafcd8, downloaded the source archive, counted it with tokei, and cached the report by commit, tokei version, and analysis options.
This OctoCounts report was generated from main at commit 95946faafcd8 on November 16, 2026.
Other public repositories with an OctoCounts report, ranked by top language and code size similarity:
Play the growth animation for openai/codex on this page — 1,846,265 code lines across 28 languages, counted by tokei.