Claude Code usage

abtop

htop-style terminal monitor for Claude Code and Codex sessions, tokens, context window and rate limits.

3,795 stars 343 forksUsage & cost trackers Source

Install

Install
cargo install abtop
From source
git clone https://github.com/graykode/abtop.git

From the README

abtop

Like btop, but for your AI coding agents.

See every Claude Code, Codex CLI, and OpenCode session at a glance — token usage, context window %, rate limits, child processes, open ports, and more.
Claude Code, Codex CLI, and OpenCode sessions are discovered from local process/file state, so multiple active profiles are supported across macOS, Linux, and Windows.

Why

- Running 3+ agents across projects? See them all in one screen.
- Hitting rate limits? Watch your quota in real-time.
- Agent spawned a server and forgot to kill it? Orphan port detection.
- Context window filling up? Per-session % bars with warnings.

All read-only. No API keys. No auth.

Install

macOS / Linux

On Linux, ensure sqlite3 is installed to enable monitoring for OpenCode sessions.

Cargo

Windows

Native support — no WSL required. Uses sysinfo for process info and host CPU/MEM metrics, and netstat -ano for listening ports. Windows has no load average, so LOAD is reported as 0. OpenCode session discovery additionally requires the sqlite3 CLI (winget install SQLite.SQLite); without it abtop prints a one-time warning to stderr.

Or cargo install abtop from any terminal with Git in PATH. Claude Code config is resolved automatically from %USERPROFILE%\.claude.

Other

Pre-built binaries for all platforms are available on the GitHub Releases page.

Usage

Recommended terminal size: 120x40 or larger. Minimum 80x24 — panels hide gracefully when small.
Mouse capture is off by default so terminal drag selection and copy keep working. Launch with --mouse if you prefer click targets and wheel navigation.

Terminal Jump

Press Enter to focus the terminal running the selected agent. abtop supports cmux, tmux, and iTerm2 on macOS.

Supported Agents

OpenCode support reads the local SQLite database at…
Read the full README on GitHub

Details

Repository
graykode/abtop
Language
Rust
License
MIT
Last updated
14 September 2026
Topics
ai-agentsai-coding-agentbtopclaude-codeclicodexdeveloper-toolshtopmonitorratatuirustterminal

FAQ

What is abtop?

htop-style terminal monitor for Claude Code and Codex sessions, tokens, context window and rate limits. It is a usage for Claude Code, from graykode/abtop on GitHub.

How do I install abtop?

Run cargo install abtop, then follow the setup in the README.

Is abtop popular?

graykode/abtop has 3,795 GitHub stars and 343 forks, and is included in 1 curated Claude Code list. It was last updated on 14 September 2026.

More usage & cost trackers

Browse the most popular Claude Code mods, all usage & cost trackers, or the skills and MCP server directories.