maazrashid

AgentsUsage — Development skill for Claude Code

Development community

A lightweight Windows system tray application that parses local Claude CLI and Codex usage logs, hosting an embedded web server.

How to install AgentsUsage

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

What AgentsUsage does

A lightweight Windows system tray application that parses local Claude CLI and Codex usage logs, hosting an embedded web server. Easily track your token stats and daily metrics directly from the notification area or via a responsive dashboard on your phone. Includes quick tray controls to start, stop, or manage the running server.

Alternatives in Development

  • Browser Tools MCP — Monitor browser logs directly from Cursor and other MCP compatible IDEs 7.2k ★
  • Kuato — Built for Claude Code but works in any agent that supports skills, easily recall what you discussed with your 176 ★
  • Little Agent — A lightweight embedded agent framework (similar to Claude Code and OpenAI Codex) 95 ★

README

AgentsUsage

AgentsUsage is a local-first Go service for viewing Claude Code and Codex CLI token usage in one lightweight web dashboard. It reads usage metadata from local JSONL files, calculates API-equivalent cost estimates when a model has known pricing, and serves an embedded dashboard without Node.js, Electron, or a remote backend.

This repository is under active development. The first runnable milestone includes:

  • Claude usage parsing from ~/.claude/projects/**/*.jsonl, including response-snapshot deduplication and cache read/write tokens.
  • Codex usage parsing from the allowlisted ~/.codex/sessions/**/*.jsonl and ~/.codex/archived_sessions/**/*.jsonl trees, including exact last_token_usage, cumulative-counter fallback, and replay suppression.
  • Daily, 7-day, all-time, provider, and model aggregates.
  • A recursive fsnotify watcher with periodic fallback scans.
  • GET /api/status, GET /api/stats, and an embedded responsive dashboard.
  • JSON configuration with cross-platform home-directory expansion.

System tray controls and release packaging are the next implementation phase.

Run locally

Go 1.22 or newer is required.

go mod download
go run ./cmd/agentsusage

Open [http://localhost:8787](http://localhost:8787). By default, the server binds to `0.0.0.0`, so another device on the same trusted network can use `http://:8787`.

The first run creates a config file in the operating system's user config directory:

  • Windows: %AppData%\agentsusage\config.json
  • macOS: ~/Library/Application Support/agentsusage/config.json
  • Linux: ${XDG_CONFIG_HOME:-~/.config}/agentsusage/config.json
{
  "server": {
    "host": "0.0.0.0",
    "port": 8787,
    "autoStart": true
  },
  "paths": {
    "claudeLogs": "~/.claude/projects",
    "codexLogs": "~/.codex"
  },
  "refreshIntervalSeconds": 10
}

Use a custom config with:

go run ./cmd/agentsusage -config /path/to/config.json

If `server.autoStart` is fa