aicoolies logo
bat logo
bat logo

bat

A cat clone with wings

open sourceupdated Jul 28, 2026

Modern replacement for the Unix cat command with syntax highlighting for 200+ languages, automatic paging, line numbers, Git integration showing file modifications, and themes including integration with terminal color schemes. Supports plain text output mode for piping. Extremely fast with Rust-based implementation. Can be used as a drop-in cat replacement via aliasing. 51K+ GitHub stars. Part of the modern CLI toolkit alongside fd, ripgrep, and eza.

Bat is a modern replacement for the Unix cat command that adds syntax highlighting, Git integration, and automatic paging to file viewing in the terminal. Written in Rust and using the same syntax highlighting engine as Sublime Text, bat supports over 170 programming and markup languages out of the box. It solves the problem of reading code files in the terminal being a poor experience compared to viewing them in an editor, bringing rich visual formatting to command-line file inspection.

Bat automatically detects the file type and applies appropriate syntax highlighting with customizable color themes, displays line numbers by default, shows Git modifications in the left margin, and pipes output to a pager like less when the content exceeds the terminal height. It also supports displaying non-printable characters, can concatenate multiple files, and integrates with other command-line tools as a drop-in replacement for cat. Bat's themes are compatible with Sublime Text and TextMate theme formats, offering extensive visual customization.

Bat is essential for developers who spend significant time reading code and configuration files in the terminal. It pairs exceptionally well with other modern CLI tools like ripgrep, fzf, and fd, and can be aliased to replace cat for everyday use. Available on macOS, Linux, and Windows, bat has become a standard part of the modern terminal toolkit, frequently recommended alongside other Rust-based CLI utilities for upgrading the default Unix command-line experience.

Pricing

Free

Platforms

macOS, Linux, Windows

Categories

Tags

Use Cases

Related Tools

computed discovery: shared active categories · kept separate from editor-verified Alternatives

Grok logo

Grok Build

Top Pick

xAI's terminal coding agent with parallel subagents and worktree-aware automation

Grok Build is xAI's terminal-first coding agent for planning, editing, testing, and reviewing code from a local CLI. The early beta exposes subagent controls, worktree mode, headless JSON output, best-of-N parallel attempts, sandbox profiles, and experimental memory. It fits developers comparing Claude Code, Codex, and Gemini CLI for local agentic workflows with deeper parallel execution.

paid
Ghostty logo

Ghostty

Top Pick

Fast, native terminal emulator

GPU-accelerated terminal emulator written in Zig by Mitchell Hashimoto (HashiCorp co-founder). Native UI rendering on macOS and Linux. Supports ligatures, true color, Kitty graphics protocol, and splits/tabs. Configurable via a simple key-value file with sensible defaults. Open-source with 20K+ GitHub stars and a focus on correctness, speed, and minimal resource usage. Growing as a modern alternative to iTerm2, Alacritty, and WezTerm.

Open Source
Claude Code logo

Claude Code

Top Pick

Anthropic's agentic coding CLI

Anthropic's agentic CLI coding tool that delegates complex tasks to Claude directly from the terminal. Understands entire codebases via automatic context gathering, edits multiple files, runs shell commands, and manages Git workflows autonomously. Supports CLAUDE.md for persistent project instructions, integrates with VS Code and JetBrains, and uses Claude Opus/Sonnet with extended thinking for complex architectural decisions. Built for terminal-first developers.

paid
Codex logo

Codex

Top Pick

OpenAI coding agent for app, editor, terminal, and cloud work

Codex is OpenAI's coding agent for software development across the Codex app, editor, terminal, and cloud tasks. It helps write, review, debug, refactor, and automate code, with ChatGPT plan access for managed surfaces and API-key usage for CLI, SDK, and IDE workflows. The open-source CLI and SDK support local repository work, while cloud features add GitHub review, Slack/Linear integrations, worktrees, skills, MCP, and automations.

freemium
roborev logo

roborev

Continuous local code-review loops for commits produced by AI coding agents

roborev is an MIT-licensed local review system that checks every commit in the background, stores findings in a review queue, and feeds actionable issues back into AI coding sessions. Git hooks, a TUI, branch and dirty-tree analysis, Codex and Claude agent hooks, plus iterative fix/refine commands turn review into a continuous agent workflow.

Open SourceTelemetry
Windows-MCP logo

Windows-MCP

MCP server for controlling Windows desktops through UIAutomation

Windows-MCP is an open-source MCP server for giving AI agents structured access to Windows desktop automation. It focuses on UIAutomation, snapshots, input control, and Windows-specific app workflows, making it different from general filesystem or shell MCP servers.

Open Source

FAQ

What is bat?

Modern replacement for the Unix cat command with syntax highlighting for 200+ languages, automatic paging, line numbers, Git integration showing file modifications, and themes including integration with terminal color schemes. Supports plain text output mode for piping. Extremely fast with Rust-based implementation. Can be used as a drop-in cat replacement via aliasing. 51K+ GitHub stars. Part of the modern CLI toolkit alongside fd, ripgrep, and eza.

Is bat free?

Yes — bat is open source and free to use. Free

Is bat open source?

Yes — bat is open source.

What are the best bat alternatives?

The top editor-verified bat alternatives are eza, ripgrep.