opencode-ai/opencode has 32,743 source lines of code out of 43,749 total lines across 153 files, counted with tokei from the main ref at commit 73ee493265ac on November 4, 2026. Tests, docs and generated files are excluded under OctoCounts' canonical public options.
As of 2026-11-04 (commit 73ee493265ac), opencode-ai/opencode contains 43,749 total lines: 32,743 code, 6,144 comments, 4,862 blank, across 153 files in 7 languages (top language: Go 97.5%). Canonical public options (tests, docs and generated files excluded). Counted with tokei via OctoCounts.
OctoCounts produced this report by resolving opencode-ai/opencode to commit 73ee493265ac, 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 74.8% of all lines, comments represent 14.0%, and the repository averages 214 code lines per file. Go accounts for 97.5% of counted code.
| Language | Files | Lines | Code | Comments | Blanks |
|---|---|---|---|---|---|
| Go | 140 | 42189 | 31911 | 5688 | 4590 |
| JSON | 1 | 425 | 425 | 0 | 0 |
| SQL | 5 | 270 | 200 | 36 | 34 |
| BASH | 3 | 226 | 176 | 12 | 38 |
| Shell | 1 | 41 | 17 | 15 | 9 |
| YAML | 1 | 14 | 14 | 0 | 0 |
| Markdown | 2 | 584 | 0 | 393 | 191 |
Top language: Go 97.5%. Generated on .
opencode-ai/opencode: 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.
opencode-ai/opencode has 32,743 lines of code, plus 6,144 comment lines and 4,862 blank lines, for 43,749 total lines at commit 73ee493265ac on November 4, 2026. Tests, docs and generated files are excluded under OctoCounts' canonical public options.
OctoCounts resolved the public GitHub repository to commit 73ee493265ac, 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 73ee493265ac on November 4, 2026.
Play the growth animation for opencode-ai/opencode on this page — 32,743 code lines across 7 languages, counted by tokei.