Catalog PyPI
PACKAGE EXPLORERView in registry

agentop

PyPI

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

agentaiclaudemonitoringtui
Versions collected1
Direct dependencies12From release 0.2.2
Last observed20 Oct, 22:48 UTC

README

Version 0.2.2 documentation

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

AgentProcess MonitorUsage StatsQuotaStatus
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)

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Versions 1

Collected releases
VersionPublishedDirect dependenciesOpen version
0.2.28 Feb 202612

Package advisories

0
No matching advisories collected

This describes our collected data; it is not a security assessment.

Repository

PENDING
dadwadw233/agentop

Shared repository data · GitHub

License detected in repository
Not collected

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 22:48 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package:b0656569dafaa6d9f4201392910d57f1dd9153f82498f2ccd38ae1dce6299f24