aicoolies logo

bat

A cat clone with wings

Share
open-sourceOpen Source
Visit Website →

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

Alternatives

Related Tools

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-sourceOpen 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.

paidOpen Source
Hermes Agent logo

Hermes Agent

Top Pick

Open-source AI agent framework with persistent memory, reusable skills, tools, and messaging gateways

Hermes Agent is an open-source AI agent framework with persistent memory, reusable skills, 40+ tools, cron jobs, and messaging gateways.

open-sourceOpen Source
pi dev code

Pi

Top Pick

Minimal terminal coding harness

Pi Coding Agent is an MIT-licensed Node.js CLI from earendil-works for building and running coding agents in a local terminal. The current package describes a read/bash/edit/write toolset and session management, while the repo positions Pi as a unified LLM API, agent loop, TUI, and coding-agent CLI. It is best framed as a lean, self-extensible BYO-model toolkit rather than a managed IDE.

open-sourceOpen Source
OpenCode logo

OpenCode

Top Pick

Open-source AI coding agent for the terminal

Open-source terminal-based AI coding agent built in Go by the SST team, with a rich TUI (Bubble Tea) supporting 75+ model providers including OpenAI, Anthropic, Gemini, Bedrock, Groq, and OpenRouter. Features vim-like editing, persistent SQLite sessions, and LSP integration for 40+ languages. Fully free with no vendor lock-in, it has rapidly grown to 95k+ GitHub stars.

open-source
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.

freemiumOpen Source