# mudler/LocalAI SLOC report

> mudler/LocalAI: 1,651,833 code lines at commit b83ba84754ac, counted with tokei-15.0.0 on 2026-11-16. Saved result acf3eac0fa22822b8ac5ee4fff6f394e740cb05c06a477f06321fc5135432b65.

mudler/LocalAI has 1,651,833 source lines of code out of 2,015,267 total lines across 8,657 files, counted with tokei from the master ref at commit b83ba84754ac on November 16, 2026. Tests, docs and generated files are excluded under OctoCounts' canonical public options.

OctoCounts produced this report by resolving mudler/LocalAI to commit b83ba84754ac, 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

mudler/LocalAI: 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 82.0% of all lines, comments represent 10.4%, and the repository averages 191 code lines per file. Go accounts for 50.4% of counted code.

| Language | Files | Lines | Code | Comments | Blanks |
| --- | ---: | ---: | ---: | ---: | ---: |
| Go | 4,939 | 1,030,664 | 832,325 | 110,857 | 87,482 |
| YAML | 168 | 303,399 | 300,340 | 1,371 | 1,688 |
| JSON | 543 | 210,546 | 210,544 | 0 | 2 |
| JavaScript | 962 | 134,432 | 107,689 | 15,242 | 11,501 |
| JSX | 622 | 98,296 | 84,383 | 8,550 | 5,363 |
| CSS | 130 | 40,255 | 32,916 | 2,535 | 4,804 |
| Python | 137 | 33,428 | 26,958 | 2,015 | 4,455 |
| C++ | 67 | 27,639 | 20,031 | 4,764 | 2,844 |
| TypeScript | 63 | 13,068 | 10,145 | 1,822 | 1,101 |
| Shell | 300 | 13,257 | 8,699 | 3,010 | 1,548 |
| Makefile | 86 | 8,086 | 5,326 | 1,611 | 1,149 |
| TSX | 22 | 3,668 | 3,361 | 138 | 169 |
| C Header | 47 | 5,066 | 2,873 | 1,661 | 532 |
| HTML | 54 | 1,451 | 1,390 | 22 | 39 |
| Protocol Buffers | 2 | 1,777 | 1,139 | 435 | 203 |
| CMake | 21 | 1,558 | 1,011 | 343 | 204 |
| Rust | 4 | 929 | 772 | 25 | 132 |
| C | 4 | 638 | 536 | 39 | 63 |
| Templ | 31 | 461 | 455 | 0 | 6 |
| Dockerfile | 3 | 697 | 452 | 160 | 85 |
| C++ Header | 1 | 485 | 360 | 54 | 71 |
| TOML | 3 | 83 | 58 | 11 | 14 |
| Nix | 1 | 173 | 47 | 118 | 8 |
| XML | 2 | 11 | 11 | 0 | 0 |
| Autoconf | 1 | 14 | 7 | 7 | 0 |
| SVG | 5 | 5 | 5 | 0 | 0 |
| Markdown | 150 | 82,023 | 0 | 50,942 | 31,081 |
| Plain Text | 289 | 3,158 | 0 | 3,017 | 141 |

Top language: Go 50.4%. Generated on November 16, 2026. Canonical report: https://octocounts.com/github/mudler/LocalAI/commit/b83ba84754ac8ce009453a221c54d35d24e06ef2?reportId=acf3eac0fa22822b8ac5ee4fff6f394e740cb05c06a477f06321fc5135432b65&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/mudler/LocalAI/commit/b83ba84754ac8ce009453a221c54d35d24e06ef2?reportId=acf3eac0fa22822b8ac5ee4fff6f394e740cb05c06a477f06321fc5135432b65&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 mudler/LocalAI have?

mudler/LocalAI has 1,651,833 lines of code, plus 208,749 comment lines and 154,685 blank lines, for 2,015,267 total lines at commit b83ba84754ac on November 16, 2026. Tests, docs and generated files are excluded under OctoCounts' canonical public options.

### How was the mudler/LocalAI line count measured?

OctoCounts resolved the public GitHub repository to commit b83ba84754ac, downloaded the source archive, counted it with tokei, and cached the report by commit, tokei version, and analysis options.

### What commit was counted for mudler/LocalAI?

This OctoCounts report was generated from master at commit b83ba84754ac on November 16, 2026.

## Similar repository reports

- [vitessio/vitess](https://octocounts.com/github/vitessio/vitess) — Go, 1,658,694 code lines
- [coder/coder](https://octocounts.com/github/coder/coder) — Go, 1,590,207 code lines
- [coze-dev/coze-studio](https://octocounts.com/github/coze-dev/coze-studio) — Go, 1,533,916 code lines
- [apache/plc4x](https://octocounts.com/github/apache/plc4x) — Go, 1,519,066 code lines
- [open-telemetry/opentelemetry-collector-contrib](https://octocounts.com/github/open-telemetry/opentelemetry-collector-contrib) — Go, 1,885,079 code lines
- [OrchestratorInc/agent-orchestrator](https://octocounts.com/github/OrchestratorInc/agent-orchestrator) — Go, 1,433,565 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)
- [Deno vs Node.js](https://octocounts.com/compare/deno-vs-node)
- [Kubernetes vs Terraform](https://octocounts.com/compare/kubernetes-vs-terraform)
- [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)
