abtop

Active
GitHub Rust MIT

Description

Like htop, but for AI coding agents. Monitor Claude Code & Codex CLI sessions, tokens, context window, rate limits, and ports in real-time.

Key Features

  • Real-time monitoring of Claude Code, Codex CLI, and OpenCode sessions
  • Token usage tracking with context window percentage bars
  • Rate limit monitoring with real-time quota visibility
  • Orphan port detection for leftover agent-spawned servers
  • 12 built-in themes including 4 colorblind-friendly options
  • Cross-platform: macOS, Linux, and native Windows support

Use Cases

💡 Monitor multiple AI coding agent sessions running across projects simultaneously
💡 Track token consumption to avoid hitting rate limits during long coding sessions
💡 Detect and kill orphan processes spawned by AI agents
💡 Visualize context window usage to know when to compact or start fresh
💡 Jump between agent terminal sessions via tmux integration

Quick Start

1. Install: curl --proto '=https' --tlsv1.2 -LsSf https://github.com/graykode/abtop/releases/latest/download/abtop-installer.sh | sh
2. Or: cargo install abtop
3. Run: abtop
4. Use --theme dracula for a specific theme
5. Use --once for a one-shot snapshot
6. Recommended terminal size: 120x40 or larger

Related Projects