youming-ai

Agent Usage Monitor — Productivity skill for Claude Code

Productivity community

Real-time Claude Code & Codex & Cursor usage monitor TUI.

How to install Agent Usage Monitor

This entry records only its repository, not the path inside it, so there is no exact command to give. Open youming-ai/agent-usage-monitor and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What Agent Usage Monitor does

Real-time Claude Code & Codex & Cursor usage monitor TUI.

Alternatives in Productivity

  • Performance Optimization Skill — Systematic performance analysis and optimization for RTK CLI tool, focusing on startup time (<10ms), memory us 11.9k ★
  • Nosqli — NoSQL injection scanner (MongoDB/Mongoose/operator-injection DBs) — auth bypass via $ne/$gt operators, bracket 4.5k ★
  • Ccseva — A beautiful macOS menu bar app for tracking your Claude Code usage in real-time 787 ★

README

Agent Usage Monitor

Terminal dashboard for **Claude Code** and **Codex** usage, cost, and live quota. Command: `aum`.

![Platform](https://img.shields.io/badge/platform-macOS%20%7C%20Linux-blue) [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](LICENSE)

Install

curl -fsSL https://raw.githubusercontent.com/youming-ai/agent-usage-monitor/main/install.sh | sh

Requires `minisign` (`brew install minisign` / `apt install minisign`). Or grab a binary from [Releases](https://github.com/youming-ai/agent-usage-monitor/releases), or `cargo build --release`.

Usage

aum                          # dashboard (q / Esc to quit)
aum -r 2                     # 2s fallback poll (default 5)
aum stats                    # JSON usage report
aum mcp                      # MCP server over stdio
aum config                   # show config
aum config set   # claude_path, codex_path, refresh, max_records
aum update                   # self-update

Override data paths with `--claude-path` (default `~/.claude/projects`) and `--codex-path` (default `~/.codex`).

JSON stats

aum stats --compact | jq '.platforms.claude_code.totals.cost_usd'
aum stats --platform codex --since 2026-06-01 --until 2026-06-30
aum stats --include-quota

Dates are inclusive UTC days. Invalid arguments exit with status 2.

MCP

{ "mcpServers": { "aum": { "command": "aum", "args": ["mcp"] } } }

Tools: `get_daily_stats`, `get_model_usage`, `get_cost_breakdown`, `get_file_operations`, `get_session_stats`, `get_quota`. Resources: `aum://summary`, `aum://platforms`.

How it works

  • Usage is read from local logs, no API keys needed:
    • Claude Code: ~/.claude/projects/**/*.jsonl
    • Codex: ~/.codex/sessions/**/rollout-*.jsonl
  • Quota comes from the vendors' usage endpoints using your existing local login.
  • Cost uses built-in pricing tables; unknown models show $0.00.
  • Updates are near-instant through FS eve