macOS
brew install tokeilocal Homebrew formula metadata
sudo port install tokeiMacPorts ports tree · devel/tokei/Portfile · source: api.github.com
brew
Program that allows you to count code, quickly. Version 14.0.0 via Homebrew; verified from local package data.
install
brew install tokeilocal Homebrew formula metadata
sudo port install tokeiMacPorts ports tree · devel/tokei/Portfile · source: api.github.com
sudo apk add tokeiAlpine Linux edge package indexes · tokei · source: dl-cdn.alpinelinux.org
sudo apt install tokeiDebian stable package indexes · tokei · source: deb.debian.org
sudo dnf install tokeiFedora Rawhide package metadata · tokei · source: dl.fedoraproject.org
nix profile install nixpkgs#tokeinixpkgs package indexes · pkgs/by-name/to/tokei/package.nix · source: api.github.com
sudo pacman -S tokeiArch Linux sync databases · tokei · source: geo.mirror.pkgbuild.com
sudo zypper install tokeiopenSUSE Tumbleweed package metadata · tokei · source: download.opensuse.org
scoop install main/tokeiScoop official bucket manifest trees · bucket/tokei.json · source: api.github.com
winget install --id XAMPPRocky.Tokei -eWindows Package Manager source index · XAMPPRocky.Tokei · source: cdn.winget.microsoft.com
overview
Program that allows you to count code, quickly
history
Tokei is a Rust code-statistics tool that counts files, total lines, code, comments, and blanks by language, with both CLI and library use cases.
The README positions Tokei as a fast and accurate counter for source trees, emphasizing multi-line and nested-comment handling, more than 150 supported languages, multiple machine-readable output formats, and use as a library.
Tokei's changelog follows Keep a Changelog and Semantic Versioning. Recent entries show continued maintenance through the 13.0.0 alpha series in 2024 and 2025, and a 14.0.0 release dated 2025-12-26 with additional language support such as C++20 modules, Ark TypeScript, and Koka.
The upstream README lists package-manager installs across Unix, macOS, and Windows: apk, pacman, Cargo, conda-forge, dnf, FreeBSD pkg, NetBSD pkgin, Nix, zypper, Void, Homebrew, MacPorts, winget, and Scoop. The input facts independently list Homebrew, Debian, Fedora/DNF, MacPorts, Nix, Arch, Scoop, winget, and openSUSE.
The README also advertises crates.io, GitHub, Homebrew, Chocolatey, and Repology badges, reflecting the project's package-manager-centered distribution culture.
Typical use is pointing tokei at one or more source directories to get a language-by-language table. It respects .gitignore, .ignore, and .tokeignore by default, can exclude paths, sort by statistics columns, print per-file counts, and emit JSON, YAML, or CBOR for downstream tools.
Because tokei can read prior output back in, it also supports workflows that snapshot code statistics and combine them with later runs.
Tokei is significant in the package-nerd niche because it is both a benchmarkable Rust CLI and a widely packaged developer utility. It is small enough to install casually, but broad enough to become a standard smoke-test tool for language detection, ignore-file behavior, terminal output, and package metadata across many ecosystems.
Its long package-manager list and machine-readable output make it useful for maintainers comparing source trees, release artifacts, vendored code, or language mix without bringing in a full analytics stack.
security posture
narrow executable package without higher-risk signals.
green risk · low confidence · appliance
Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.
executables
| Command | Kind | Exposure | Note |
|---|---|---|---|
tokei | cli | global executable |
freshness
These signals separate page generation age, package-manager activity, and upstream release comparison. Version lag is warned only when an evidence URL and comparable versions are present.
https://github.com/XAMPPRocky/tokei
install metadata
| Package key | brew:tokei |
|---|---|
| Version | 14.0.0 |
| Package manager | Homebrew |
| Package manager page | https://formulae.brew.sh/formula/tokei |
| Homepage | https://github.com/XAMPPRocky/tokei |
| Repository | https://github.com/XAMPPRocky/tokei |
| Upstream docs | https://github.com/XAMPPRocky/tokei#readme |
| License | Apache-2.0 OR MIT |
| Source archive | https://github.com/XAMPPRocky/tokei/archive/refs/tags/v14.0.0.tar.gz |
| Build dependencies | rust |
| Bottle | available (on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux) |
| Homebrew post-install | not defined |
| Service | none declared |
registry facts
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | tokei |
| Version Scheme | 0 |
| Revision | 0 |
| Head Version | HEAD |
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
source database matches
Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.
tokei 12.1.2-6+b1
display statistics about your code
sudo apt install tokeitokei
nix profile install nixpkgs#tokeitokei 14.0.0-r0
A blazingly fast CLOC (Count Lines Of Code) program
https://github.com/XAMPPRocky/tokei
sudo apk add tokeitokei 14.0.0-5.fc45
Count your code, quickly
https://crates.io/crates/tokei
sudo dnf install tokeitokei 14.0.0-1
A blazingly fast CLOC (Count Lines Of Code) program
https://github.com/XAMPPRocky/tokei
sudo pacman -S tokeitokei 14.0.0+git0-1.1
Code statistics commandline tool
https://github.com/XAMPPRocky/tokei
sudo zypper install tokeitokei
sudo port install tokeimain/tokei
scoop install main/tokeiXAMPPRocky.Tokei
winget install --id XAMPPRocky.Tokei -esource trail
This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.
View the package source record on GitHub.