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: ~/.claude/stats-cache.json
  • Codex usage/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 usage is fetched from the API (not local files)
  • 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.0.tar.gz (41.7 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.0-py3-none-any.whl (47.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: agentop-0.2.0.tar.gz
  • Upload date:
  • Size: 41.7 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.0.tar.gz
Algorithm Hash digest
SHA256 cf8700fbc2a00f1976d6ef8ed3cd27253f84c9a22ef0b29c6538c2d1150b7391
MD5 5707636ec54b644e64348a4c408bf23e
BLAKE2b-256 b03ec05104664a2866de5809f77d4e68b8a1fe58e7d1b4e12c7fac4cc68c23c1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: agentop-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 47.2 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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6ab21fea6ccb3b3c06e96d9f58e432b45a411633908eac3b3720b70b7caa006a
MD5 b0c27ab6105d63b8f1939180522a21df
BLAKE2b-256 ef3d655ae94b9ac24bb2d5317d2b6014cb8c7bb0aed71f345c2f4c0dc8235095

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