
bat
A cat clone with wings
The Lens
By Erik Loyd, SaaS CEO and former COO/CFO of an AWS Premier Partner.
Updated Sep 2026
bat is cat with syntax highlighting, line numbers and Git change markers built in. Type bat file.py and you get a color-coded, numbered view of the file, and long output goes to a pager automatically. Written in Rust by David Peter, who also wrote fd, and dual licensed MIT or Apache 2.0.
Pipe it into another command and it quietly behaves like plain cat, so scripts don't break. The README's recommended alias is alias cat='bat --paging=never'. Every major package manager carries it; on older Debian and Ubuntu releases the binary is called batcat.
Anyone who reads code in a terminal: install it. It costs nothing and changes nothing about how you work. The bat-extras companion scripts bring the same highlighting to grep, diff and man pages.
The catch is copy and paste. The line numbers and margin markers come along when you select text in the terminal. Use bat -p (or --plain) when you need clean output.
Free vs Self-Hosted vs Paid
fully freeFree: Everything. Dual licensed MIT or Apache 2.0, your choice.
Self-hosted: A single binary from apt, Homebrew, cargo, WinGet, Chocolatey, Scoop and most other package managers.
Paid: None.
Completely free, MIT or Apache 2.0.
What to do by team size
- Solo
- free
- Small team
- free
- Medium team
- free
- Large team
- free
Get tools like this every Wednesday
One featured tool, three on the radar. No fluff.
Similar Tools
A low score is not a verdict on quality. Young and niche tools start low by design. How we calculate scores
Trust Signals
License: MIT OR Apache-2.0
Dual licensed: choose MIT or Apache 2.0. Use freely, including commercial.
Commercial use: ✓ Yes
About
- Stars
- 61,108
- Forks
- 3,051
Explore Further
More tools in the directory
rea
Reverse engineer anything with agents, from app behavior down to native binaries.
435.8k ★openclaw
Your own personal AI assistant. Any OS. Any Platform. The lobster way. 🦞
394.0k ★everything-claude-code
The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.
298.1k ★


