A terminal UI tool for monitoring local AI coding agents — like nvtop/htop, but for Claude/Codex.
- Real-time process monitoring (CPU, memory, uptime)
- Claude Code usage + cost from local stats
- Quota panels (beta) for Codex + Antigravity
- Lightweight Textual TUI
| Agent | Process Monitor | Usage Stats | Quota | Status |
|---|---|---|---|---|
| Claude Code | ✅ | ✅ | ✅ | Stable |
| Antigravity | ⏳ | ⏳ | ✅ | Beta |
| OpenAI Codex | ✅ | ✅ | ✅ | Beta |
| OpenCode | ✅ | ✅ | ⏳ | Beta |
- macOS
- Linux
pip install agentoppip install git+https://github.com/dadwadw233/agentop.git# TUI
agentop
# Or
python3 -m agentopDetailed stats:
python3 show_stats.py- Claude stats: JSONL logs under
~/.config/claude/projects/or~/.claude/projects/(override withCLAUDE_CONFIG_DIR, supports comma-separated paths) - Codex token usage: local session logs under
~/.codex/sessions/ - Codex quota:
/usageAPI via Codex auth (~/.codex/auth.json) - Antigravity quota: Google Cloud Code API via Antigravity auth (local state db)
- OpenCode stats:
~/.local/share/opencode/storage/(message + session directories)
OpenCode Features:
- Fixed time filtering bug - now shows all historical data (not just today)
- Added time range support (Today/Week/Month/All) for all views
- Implemented lazy loading - only computes aggregates needed for current view
- Added index cache for faster incremental parsing
- Performance optimizations for large datasets
TUI Improvements:
- Redesigned overview dashboard with structured layout (Process Status, Session Stats, Token Usage)
- Added progress bars for visual token usage comparison
- Implemented pagination for handling large datasets
- Dynamic page sizing based on available screen height
- Enhanced table formatting with better alignment and smart truncation
- Color gradients for usage intensity (cyan/magenta/blue)
- Visual status indicators (🟢/⚪) with colored borders
- Improved hint text with time range display and update timestamps
- Consistent styling across all sub-views (Sessions, Projects, Models, Agents, Timeline)
- More agents (TBD)
- Config file (YAML)
- History + export (CSV/JSON)
- UI polish
- Claude stats can lag behind real time
- Codex local token stats depend on availability of
token_countevents in session logs - Antigravity quota depends on account access
- Antigravity refresh requires
ANTIGRAVITY_OAUTH_CLIENT_SECRETor a fresh login - Proxy users: if you see “unknown scheme for proxy URL”, set
AGENTOP_DISABLE_PROXY=1or installhttpx[socks]
MIT (see LICENSE)