# ollama/ollama SLOC report

> As of 2026-10-08 (commit c2b7368d4156), ollama/ollama contains 717,776 total lines: 521,271 code, 134,478 comments, 62,027 blank, across 1,150 files in 22 languages (top: Go 54.8%). Custom configuration (tests excluded, docs excluded, generated excluded). Counted with tokei via OctoCounts.

ollama/ollama has 521,271 source lines of code out of 717,776 total lines across 1,150 files, counted from the main ref at commit c2b7368d4156 by the OctoCounts tokei engine on 2026-10-08. 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 ollama/ollama to commit c2b7368d4156, 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 large codebase by counted code lines. Code represents 72.6% of all lines, comments represent 18.7%, and the repository averages 453 code lines per file. Go accounts for 54.8% of counted code.

| Language | Files | Lines | Code | Comments | Blanks |
| --- | ---: | ---: | ---: | ---: | ---: |
| Go | 884 | 334,272 | 285,862 | 14,948 | 33,462 |
| JSON | 33 | 142,263 | 142,259 | 0 | 4 |
| C Header | 44 | 74,126 | 56,579 | 2,086 | 15,461 |
| TSX | 59 | 17,542 | 16,151 | 276 | 1,115 |
| TypeScript | 50 | 5,604 | 4,799 | 225 | 580 |
| C | 4 | 3,519 | 3,483 | 2 | 34 |
| C++ | 5 | 4,560 | 3,304 | 713 | 543 |
| Objective-C | 4 | 2,940 | 2,554 | 89 | 297 |
| CMake | 11 | 2,458 | 2,032 | 226 | 200 |
| PowerShell | 2 | 1,655 | 1,394 | 112 | 149 |
| Shell | 9 | 1,645 | 1,296 | 139 | 210 |
| SVG | 20 | 513 | 511 | 2 | 0 |

Top language (Go 54.8%). Generated at 2026-10-08T23:00:30.608434447+00:00. Canonical report: https://octocounts.com/github/ollama/ollama

## Reproduce this report

[Reproduce this exact report and configuration](https://octocounts.com/github/ollama/ollama/commit/c2b7368d4156656ddb9a23b43f721a841b9c23e0?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 ollama/ollama have?

ollama/ollama has 717,776 total lines, including 521,271 code lines, 134,478 comment lines, and 62,027 blank lines.

### How was the ollama/ollama line count measured?

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

### What commit was counted for ollama/ollama?

This OctoCounts report was generated from main at commit c2b7368d4156 on 2026-10-08T23:00:30.608434447+00:00.

## Similar repository reports

- [HaoyueQin/DeepSeek-Reasonix](https://octocounts.com/github/HaoyueQin/DeepSeek-Reasonix) — Go, 519,274 code lines
- [seakee/CPA-Manager-Plus](https://octocounts.com/github/seakee/CPA-Manager-Plus) — Go, 512,550 code lines
- [harness/harness](https://octocounts.com/github/harness/harness) — Go, 505,458 code lines
- [openbao/openbao](https://octocounts.com/github/openbao/openbao) — Go, 538,455 code lines
- [littlesight9-sketch/unkey](https://octocounts.com/github/littlesight9-sketch/unkey) — Go, 551,787 code lines
- [google/gvisor](https://octocounts.com/github/google/gvisor) — Go, 484,312 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)
- [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)
