# openai/codex SLOC report

> As of 2026-09-19 (commit 132c2be239ec), openai/codex contains 1,600,481 total lines: 1,456,785 code, 33,083 comments, 110,613 blank, across 6,004 files in 26 languages (top: Rust 85.4%). Custom configuration (tests excluded, docs excluded, generated excluded). Counted with tokei via OctoCounts.

openai/codex has 1,456,785 source lines of code out of 1,600,481 total lines across 6,004 files, counted from the main ref at commit 132c2be239ec by the OctoCounts tokei engine on 2026-09-19. 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 132c2be239ec, 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.0% of all lines, comments represent 2.1%, and the repository averages 243 code lines per file. Rust accounts for 85.4% of counted code.

| Language | Files | Lines | Code | Comments | Blanks |
| --- | ---: | ---: | ---: | ---: | ---: |
| Rust | 3,807 | 1,353,989 | 1,243,485 | 12,144 | 98,360 |
| JSON | 322 | 155,242 | 155,242 | 0 | 0 |
| Python | 140 | 35,745 | 31,242 | 276 | 4,227 |
| TOML | 166 | 6,750 | 5,738 | 279 | 733 |
| YAML | 8 | 5,520 | 4,988 | 1 | 531 |
| Bazel | 194 | 5,716 | 4,936 | 232 | 548 |
| TypeScript | 741 | 9,219 | 3,806 | 3,821 | 1,592 |
| Shell | 15 | 2,167 | 1,775 | 103 | 289 |
| PowerShell | 4 | 1,912 | 1,656 | 84 | 172 |
| JavaScript | 6 | 1,208 | 1,066 | 39 | 103 |
| SQL | 69 | 844 | 758 | 8 | 78 |
| CSS | 1 | 867 | 757 | 5 | 105 |

Top language (Rust 85.4%). Generated at 2026-09-19T18:02:13.632381536+00:00. Canonical report: https://octocounts.com/github/openai/codex

## Reproduce this report

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

## Report FAQ

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

openai/codex has 1,600,481 total lines, including 1,456,785 code lines, 33,083 comment lines, and 110,613 blank lines.

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

OctoCounts resolved the public GitHub repository to commit 132c2be239ec, 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 132c2be239ec on 2026-09-19T18:02:13.632381536+00:00.

## Similar repository reports

- [xai-org/grok-build](https://octocounts.com/github/xai-org/grok-build) — Rust, 1,458,593 code lines
- [oven-sh/bun](https://octocounts.com/github/oven-sh/bun) — Rust, 1,469,308 code lines
- [warpdotdev/warp](https://octocounts.com/github/warpdotdev/warp) — Rust, 1,470,282 code lines
- [openinterpreter/openinterpreter](https://octocounts.com/github/openinterpreter/openinterpreter) — Rust, 1,492,495 code lines
- [zed-industries/zed](https://octocounts.com/github/zed-industries/zed) — Rust, 1,404,143 code lines
- [nicodunks/mog](https://octocounts.com/github/nicodunks/mog) — Rust, 1,568,608 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)
