Automic VaultAutomic Vault

brew

Install tokei with Homebrew, apk, apt, dnf, MacPorts, Nix, pacman, scoop, winget, zypper

Program that allows you to count code, quickly. Version 14.0.0 via Homebrew; verified from local package data.

install

Additional install commands

macOS

Homebrewverified · 100%
brew install tokei

local Homebrew formula metadata

MacPortsverified · 94%
sudo port install tokei

MacPorts ports tree · devel/tokei/Portfile · source: api.github.com

Linux

Alpine Linux apkverified · 92%
sudo apk add tokei

Alpine Linux edge package indexes · tokei · source: dl-cdn.alpinelinux.org

Debian aptverified · 92%
sudo apt install tokei

Debian stable package indexes · tokei · source: deb.debian.org

Fedora dnfverified · 92%
sudo dnf install tokei

Fedora Rawhide package metadata · tokei · source: dl.fedoraproject.org

Nixverified · 92%
nix profile install nixpkgs#tokei

nixpkgs package indexes · pkgs/by-name/to/tokei/package.nix · source: api.github.com

Arch Linux pacmanverified · 92%
sudo pacman -S tokei

Arch Linux sync databases · tokei · source: geo.mirror.pkgbuild.com

openSUSE zypperverified · 92%
sudo zypper install tokei

openSUSE Tumbleweed package metadata · tokei · source: download.opensuse.org

Windows

Scoopverified · 92%
scoop install main/tokei

Scoop official bucket manifest trees · bucket/tokei.json · source: api.github.com

Windows Package Managerverified · 92%
winget install --id XAMPPRocky.Tokei -e

Windows Package Manager source index · XAMPPRocky.Tokei · source: cdn.winget.microsoft.com

overview

Package summary

Program that allows you to count code, quickly

Commands and aliases

  • tokei

history

Project history and usage

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.

Project history

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.

Adoption history

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.

How it is used

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.

Why package nerds care

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.

Timeline

  • Current: README documents support for Mac, Linux, and Windows, more than 150 languages, JSON/YAML/CBOR output, and library use.
  • 2024-03-04: 13.0.0-alpha.1 changelog entry added maintenance and language-data updates.
  • 2025-07-21: 13.0.0-alpha.9 changelog entry included Markdown CRLF and mixed-line-ending fixes.
  • 2025-12-26: 14.0.0 changelog entry added C++20 modules and Ark TypeScript support.

Related projects

  • Tokei belongs to the same utility family as cloc and scc, though the cited upstream material emphasizes Tokei's own speed, accuracy, language coverage, and Rust library interface.
  • Repology, Homebrew, Cargo, winget, Scoop, and distribution package managers are part of the adoption surface documented by the README and input facts.

security posture

Risk level: green

narrow executable package without higher-risk signals.

Risk classifier

green risk · low confidence · appliance

Why

  • narrow executable package without higher-risk signals

Signals

  • metadata:no-higher-risk-signals

Install behavior

  • No Homebrew post-install hook is recorded in formula metadata.
  • Homebrew bottle metadata is available for 6 platform targets.
  • Build metadata lists 1 build dependencies.

Recommended review

Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.

executables

Installed executables

CommandKindExposureNote
tokeicliglobal executable

freshness

Version and 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.

page generated2026-07-08
manager version14.0.0
manager updated
local dataok
upstreamcurrent
latest detectedv14.0.0

https://github.com/XAMPPRocky/tokei

  • infoNo package-manager update timestamp was available.low confidence

install metadata

Package metadata

Package keybrew:tokei
Version14.0.0
Package managerHomebrew
Package manager pagehttps://formulae.brew.sh/formula/tokei
Homepagehttps://github.com/XAMPPRocky/tokei
Repositoryhttps://github.com/XAMPPRocky/tokei
Upstream docshttps://github.com/XAMPPRocky/tokei#readme
LicenseApache-2.0 OR MIT
Source archivehttps://github.com/XAMPPRocky/tokei/archive/refs/tags/v14.0.0.tar.gz
Build dependenciesrust
Bottleavailable (on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux)
Homebrew post-installnot defined
Servicenone declared

registry facts

Source database details

Source DatabaseHomebrew formula API
Taphomebrew/core
Full Nametokei
Version Scheme0
Revision0
Head VersionHEAD
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyno
URL Keys
  • head
  • stable

source database matches

Other package-manager records

Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.

Debian apt95%

tokei 12.1.2-6+b1

display statistics about your code

https://tokei.rs

sudo apt install tokei
  • Section: utils
  • Architecture: amd64
  • Source Package: rust-tokei
  • 2 dependencies
  • normalized package name match
  • Matched by: Tokei
Debian stable package indexes · deb.debian.org · Debian stable package indexes: tokei from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Nix95%

tokei

nix profile install nixpkgs#tokei
  • normalized package name match
  • Matched by: Tokei
nixpkgs package indexes · api.github.com · nixpkgs package indexes: pkgs/by-name/to/tokei/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
apk95%

tokei 14.0.0-r0

A blazingly fast CLOC (Count Lines Of Code) program

https://github.com/XAMPPRocky/tokei

sudo apk add tokei
  • License: MIT AND Apache-2.0
  • Architecture: x86_64
  • Source Package: tokei
  • 1 dependencies
  • 1 provides
  • normalized package name match
  • Matched by: Tokei
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: tokei from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
dnf95%

tokei 14.0.0-5.fc45

Count your code, quickly

https://crates.io/crates/tokei

sudo dnf install tokei
  • License: (MIT OR Apache-2.0) AND BSD-3-Clause AND MIT AND MPL-2.0 AND Unicode-DFS-2016 AND (Apache-2.0 OR BSL-1.0) AND (Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR
  • Category: Unspecified
  • Architecture: x86_64
  • Source Package: rust-tokei
  • 4 dependencies
  • 1 provides
  • normalized package name match
  • Matched by: Tokei
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: tokei from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst
pacman95%

tokei 14.0.0-1

A blazingly fast CLOC (Count Lines Of Code) program

https://github.com/XAMPPRocky/tokei

sudo pacman -S tokei
  • License: MIT AND Apache
  • Architecture: x86_64
  • 1 dependencies
  • normalized package name match
  • Matched by: Tokei
Arch Linux sync databases · geo.mirror.pkgbuild.com · Arch Linux sync databases: tokei from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz
zypper95%

tokei 14.0.0+git0-1.1

Code statistics commandline tool

https://github.com/XAMPPRocky/tokei

sudo zypper install tokei
  • License: (Apache-2.0 OR BSL-1.0) AND (Apache-2.0 OR MIT) AND (Apache-2.0 OR Apache-2.0 WITH LLVM-exception OR MIT) AND (Apache-2.0 OR MIT OR Zlib) AND (MIT OR
  • Category: Unspecified
  • Architecture: x86_64
  • Source Package: tokei
  • 2 dependencies
  • 2 provides
  • normalized package name match
  • Matched by: Tokei
openSUSE Tumbleweed package metadata · download.opensuse.org · openSUSE Tumbleweed package metadata: tokei from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst
MacPorts95%

tokei

sudo port install tokei
  • normalized package name match
  • Matched by: Tokei
MacPorts ports tree · api.github.com · MacPorts ports tree: devel/tokei/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
Scoop95%

main/tokei

scoop install main/tokei
  • normalized package name match
  • Matched by: Tokei
Scoop official bucket manifest trees · api.github.com · Scoop official bucket manifest trees: bucket/tokei.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1
winget95%

XAMPPRocky.Tokei

winget install --id XAMPPRocky.Tokei -e
  • normalized package name match
  • Matched by: Tokei
Windows Package Manager source index · cdn.winget.microsoft.com · Windows Package Manager source index: XAMPPRocky.Tokei from https://cdn.winget.microsoft.com/cache/source.msix

source trail

Generated from repository data

This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.

Used sources

  • Geiger risk classifier
  • Nucleus package database
  • av.db category and tag curation
  • cross-ecosystem install command graph
  • curated package history
  • external package-manager database matches
  • package relationship graph
  • package version freshness
  • package-page enrichment