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.
As of 2026-10-22 (commit 2f3fb111be71), openai/codex contains 1,815,427 total lines: 1,665,196 code, 31,383 comments, 118,848 blank, across 6,488 files in 26 languages (top: Rust 86.7%). Custom configuration (tests excluded, docs excluded, generated excluded). Counted with tokei via OctoCounts.
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.
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 | 4589 | 1566213 | 1443408 | 15653 | 107152 |
| JSON | 332 | 162423 | 162423 | 0 | 0 |
| Python | 135 | 35121 | 30730 | 300 | 4091 |
| TOML | 176 | 7257 | 6193 | 286 | 778 |
| Bazel | 209 | 6736 | 5834 | 268 | 634 |
| YAML | 7 | 5514 | 4982 | 1 | 531 |
| TypeScript | 766 | 9585 | 3923 | 4018 | 1644 |
| Shell | 16 | 2345 | 1923 | 128 | 294 |
| PowerShell | 4 | 1974 | 1715 | 86 | 173 |
| JavaScript | 7 | 1262 | 1108 | 46 | 108 |
| SQL | 77 | 897 | 802 | 15 | 80 |
| CSS | 1 | 867 | 757 | 5 | 105 |
Top language (Rust 86.7%). Generated at .
openai/codex has 1,815,427 total lines, including 1,665,196 code lines, 31,383 comment lines, and 118,848 blank lines.
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.
This OctoCounts report was generated from main at commit 2f3fb111be71 on 2026-10-22T13:24:14.304922087+00:00.
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,665,196 code lines across 12 languages, counted by tokei.