# openai/codex SLOC report

> openai/codex: 1,846,265 code lines at commit 95946faafcd8, counted with tokei-15.0.0 on 2026-11-16. Saved result 85078644c64d21d5ff168168e41e71c12d27f8b79deed1c9c2867064fcb1adcd.

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.

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.

## Counting rules and retention

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.

## Repository size insights

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 | 5,091 | 1,739,090 | 1,606,682 | 17,661 | 114,747 |
| JSON | 342 | 175,344 | 175,344 | 0 | 0 |
| Python | 137 | 35,978 | 31,517 | 332 | 4,129 |
| Bazel | 240 | 9,710 | 8,384 | 461 | 865 |
| TOML | 184 | 7,786 | 6,671 | 300 | 815 |
| YAML | 9 | 5,642 | 5,108 | 4 | 530 |
| TypeScript | 811 | 10,097 | 4,097 | 4,266 | 1,734 |
| Shell | 16 | 2,365 | 1,937 | 133 | 295 |
| PowerShell | 5 | 1,998 | 1,736 | 89 | 173 |
| CSS | 1 | 1,503 | 1,325 | 17 | 161 |
| JavaScript | 8 | 1,284 | 1,128 | 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 | 12,331 | 0 | 9,471 | 2,860 |
| Plain Text | 13 | 2,064 | 0 | 1,750 | 314 |

Top language: Rust 87.0%. Generated on November 16, 2026. Canonical report: https://octocounts.com/github/openai/codex/commit/95946faafcd8f068e28610e8ae6a4c03060c1448?reportId=85078644c64d21d5ff168168e41e71c12d27f8b79deed1c9c2867064fcb1adcd&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/95946faafcd8f068e28610e8ae6a4c03060c1448?reportId=85078644c64d21d5ff168168e41e71c12d27f8b79deed1c9c2867064fcb1adcd&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,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.

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

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.

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

This OctoCounts report was generated from main at commit 95946faafcd8 on November 16, 2026.

## Similar repository reports

- [tylertms/Stela](https://octocounts.com/github/tylertms/Stela) — Rust, 1,761,332 code lines
- [rustfs/rustfs](https://octocounts.com/github/rustfs/rustfs) — Rust, 1,757,112 code lines
- [codewhale-hq/Codewhale](https://octocounts.com/github/codewhale-hq/Codewhale) — Rust, 1,944,921 code lines
- [microsoft/windows-rs](https://octocounts.com/github/microsoft/windows-rs) — Rust, 2,012,077 code lines
- [nautechsystems/nautilus_trader](https://octocounts.com/github/nautechsystems/nautilus_trader) — Rust, 1,685,048 code lines
- [openinterpreter/openinterpreter](https://octocounts.com/github/openinterpreter/openinterpreter) — Rust, 1,668,448 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)
- [How to count lines of code in a GitHub repository](https://octocounts.com/docs/count-lines-of-code-github)
- [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)
- [All OctoCounts guides](https://octocounts.com/docs)
