Skip to main content

A terminal UI tool for monitoring local AI coding agents (Claude Code, etc.)

Project description

Agentop

A terminal UI tool for monitoring local AI coding agents — like nvtop/htop, but for Claude/Codex.

Features

  • Real-time process monitoring (CPU, memory, uptime)
  • Claude Code usage + cost from local stats
  • Quota panels (beta) for Codex + Antigravity
  • Lightweight Textual TUI

Supported Agents

Agent Process Monitor Usage Stats Quota Status
Claude Code Stable
Antigravity Beta
OpenAI Codex Beta
OpenCode Beta

Supported Platforms (has been tested)

  • macOS
  • Linux

Installation (macOS / Linux)

PyPI

pip install agentop

From source

pip install git+https://github.com/dadwadw233/agentop.git

Quick Start

# TUI
agentop

# Or
python3 -m agentop

Detailed stats:

python3 show_stats.py

Data Sources

  • Claude stats: JSONL logs under ~/.config/claude/projects/ or ~/.claude/projects/ (override with CLAUDE_CONFIG_DIR, supports comma-separated paths)
  • Codex token usage: local session logs under ~/.codex/sessions/
  • Codex quota: /usage API 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)

Changelog

0.2.0 (2026-01-25)

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)

Roadmap

  • More agents (TBD)
  • Config file (YAML)
  • History + export (CSV/JSON)
  • UI polish

Known Limitations

  • Claude stats can lag behind real time
  • Codex local token stats depend on availability of token_count events in session logs
  • Antigravity quota depends on account access
  • Antigravity refresh requires ANTIGRAVITY_OAUTH_CLIENT_SECRET or a fresh login
  • Proxy users: if you see “unknown scheme for proxy URL”, set AGENTOP_DISABLE_PROXY=1 or install httpx[socks]

License

MIT (see LICENSE)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

agentop-0.2.2.tar.gz (45.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

agentop-0.2.2-py3-none-any.whl (51.4 kB view details)

Uploaded Python 3

File details

Details for the file agentop-0.2.2.tar.gz.

File metadata

  • Download URL: agentop-0.2.2.tar.gz
  • Upload date:
  • Size: 45.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.6

File hashes

Hashes for agentop-0.2.2.tar.gz
Algorithm Hash digest
SHA256 031bf896a7bc20d4ddaf79314d38ff6986ded25fd9d087f1189878d2e0b98cfc
MD5 a264141afd98a457cc38821cba662325
BLAKE2b-256 bbafc88b6394edf6d14b23a05368d0b695552d79287e43e9e72b628d0be2dc96

See more details on using hashes here.

File details

Details for the file agentop-0.2.2-py3-none-any.whl.

File metadata

  • Download URL: agentop-0.2.2-py3-none-any.whl
  • Upload date:
  • Size: 51.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.6

File hashes

Hashes for agentop-0.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 c1b66234f34169a473f7a504ec5d2772fa4115574745b4c7b98be4af179633db
MD5 aceb81abb2f80185a68003e1efca46c6
BLAKE2b-256 83e8544e6c125bac2a5bf953495e90876c8f669fe27b7cd37ae95da3bdcfdcd1

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page