commaai/openpilot has 96,007 source lines of code out of 125,015 total lines across 790 files, counted with tokei from the master ref at commit 9ada6b94adeb on November 16, 2026. Tests, docs and generated files are excluded under OctoCounts' canonical public options.
commaai/openpilot: 96,007 code lines at commit 9ada6b94adeb, counted with tokei-15.0.0 on 2026-11-16. Saved result 7202f21454cdc6f1e0e4826a19bc4125a9205e46eea42e9764f4a6208895064d.
OctoCounts produced this report by resolving commaai/openpilot to commit 9ada6b94adeb, 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 medium-sized codebase by counted code lines. Code represents 76.8% of all lines, comments represent 7.2%, and the repository averages 122 code lines per file. Python accounts for 48.3% of counted code.
| Language | Files | Lines | Code | Comments | Blanks |
|---|---|---|---|---|---|
| Python | 415 | 59966 | 46373 | 2682 | 10911 |
| C++ | 113 | 35718 | 30903 | 899 | 3916 |
| C Header | 117 | 10056 | 8234 | 432 | 1390 |
| PO File | 14 | 11194 | 5608 | 2856 | 2730 |
| XML | 14 | 1525 | 1448 | 59 | 18 |
| Shell | 33 | 1834 | 1379 | 162 | 293 |
| Scons | 13 | 876 | 704 | 40 | 132 |
| JSON | 21 | 582 | 582 | 0 | 0 |
| Jupyter Notebooks | 6 | 425 | 309 | 13 | 103 |
| TOML | 2 | 356 | 268 | 25 | 63 |
| C | 1 | 88 | 74 | 5 | 9 |
| HTML | 2 | 71 | 71 | 0 | 0 |
| SVG | 16 | 48 | 48 | 0 | 0 |
| BASH | 1 | 7 | 6 | 1 | 0 |
| Markdown | 22 | 2269 | 0 | 1839 | 430 |
Top language: Python 48.3%. Generated on .
commaai/openpilot: 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.
commaai/openpilot has 96,007 lines of code, plus 9,013 comment lines and 19,995 blank lines, for 125,015 total lines at commit 9ada6b94adeb on November 16, 2026. Tests, docs and generated files are excluded under OctoCounts' canonical public options.
OctoCounts resolved the public GitHub repository to commit 9ada6b94adeb, 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 master at commit 9ada6b94adeb on November 16, 2026.
Other public repositories with an OctoCounts report, ranked by top language and code size similarity:
Play the growth animation for commaai/openpilot on this page — 96,007 code lines across 15 languages, counted by tokei.