Catalog PyPI
PACKAGE EXPLORERView in registry

agentpulse-cli

PyPI

Real-time AI Agent activity dashboard — sessions, tokens, tools, costs at a glance

Versions collected1
Direct dependencies8From release 1.2.1
Last observed20 Oct, 23:02 UTC

README

Version 1.2.1 documentation

Agent Pulse

A unified activity, token, and cost dashboard for coding agents.

See what your local AI agents are doing, how much they are using, which models are most efficient, and where costs are drifting before they become a surprise.

PyPI Python License Agent sources Interfaces


Why Agent Pulse

Modern development often runs through several agent CLIs at once: Claude Code for refactors, Codex for implementation loops, Aider for pair-programming, Cursor for project edits, and other specialized tools for research or automation. Each tool keeps its own logs. Agent Pulse turns those scattered local traces into one operational view.

You need to knowAgent Pulse shows
Which agents ran recentlySessions grouped across supported local agent logs
How much context was usedInput, output, cache, reasoning, and total token counts
Where money is goingEstimated session, model, project, daily, and monthly cost
Which models are efficientCost/token, cache behavior, tool usage, and leaderboard scoring
Whether usage is healthyBudgets, alerts, anomaly detection, forecasts, and CI-friendly checks
How to share the resultTerminal dashboard, JSON, HTML report, REST API, Prometheus metrics, MCP server

Preview

Agent Pulse
Unified activity dashboard for local AI coding agents

┌─ Last 24h ───────────────────────────────────────────────────────────────┐
│ Sessions       42        Tokens       3.8M        Est. cost      $18.42  │
│ Tool calls     316       Search          28        Active models      9  │
└──────────────────────────────────────────────────────────────────────────┘

Top sessions
┌──────────────┬───────────────┬─────────────┬────────┬───────┬──────────┐
│ Source       │ Model         │ Project     │ Tokens │ Tools │ Cost     │
├──────────────┼───────────────┼─────────────┼────────┼───────┼──────────┤
│ claude-code  │ claude-sonnet │ api         │ 842K   │ 61    │ $4.12    │
│ codex        │ gpt-5-codex   │ frontend    │ 516K   │ 44    │ $2.08    │
│ aider        │ deepseek      │ migrations  │ 203K   │ 12    │ $0.37    │
└──────────────┴───────────────┴─────────────┴────────┴───────┴──────────┘

Quick Start

pip install agentpulse-cli

# Try the dashboard with synthetic data
agent-pulse demo

# Check which local data sources are available
agent-pulse doctor

# Open the terminal dashboard
agent-pulse

Useful first commands:

agent-pulse status
agent-pulse top --sort cost
agent-pulse models
agent-pulse optimize
agent-pulse web --port 8765

Install optional web/API dependencies when you need the browser dashboard or REST server:

pip install "agentpulse-cli[web]"

Supported Agent Sources

Agent Pulse reads local logs only. It does not proxy model traffic and does not require API keys for normal dashboard usage.

SourcePlatform keyWhat is collected
HermeshermesLocal Hermes state database, sessions, projects, token and tool usage
Claude CodeclaudeJSONL session files under Claude project logs
OpenAI Codex CLIcodexRollout JSONL logs, model metadata, token usage, tool calls
DeepSeek TUIdeepseekLocal task/runtime metadata and legacy session files
OpenClawopenclawAgent transcript sessions and stored metadata
GitHub Copilot CLIcopilotLocal session state and event logs
AideraiderChat history and optional analytics logs
Qwen CodeqwenOpenAI-compatible request/session logs
OpenCodeopencodeLocal SQLite session store
Goose CLIgooseSQLite sessions and legacy JSONL sessions
Cursor CLI / cursor-agentcursorProject session index and wrapper logs
Google Antigravity CLIantigravityBest-effort Antigravity JSON/JSONL logs
Amp CLIampBest-effort Amp JSON/JSONL logs

Select sources per command:

agent-pulse -P claude -P codex -P aider
agent-pulse top -P cursor -P opencode --sort tokens

Or make it persistent in ~/.agent-pulse.toml:

monitor_platforms = "claude,codex,aider,cursor"
agent_log_home = "C:/Users/you"
hours = 24
limit = 30
theme = "nord"

Feature Map

Monitor

CommandPurpose
agent-pulseFull terminal dashboard with sessions, projects, tokens, tools, and costs
agent-pulse statusOne-line status for shells, scripts, and quick checks
agent-pulse topRank sessions by tokens, cost, tools, search calls, duration, or messages
agent-pulse session <id>Inspect one session in detail
agent-pulse --watchLive auto-refresh dashboard with change indicators
agent-pulse tuiInteractive terminal UI for keyboard-driven inspection
agent-pulse summaryCompact summary line for shell prompts and automation

Analyze

CommandPurpose
agent-pulse modelsModel-level analytics: cost, cache usage, token mix, efficiency
agent-pulse optimizeFind cheaper model alternatives for recent usage patterns
agent-pulse historyTrend charts for tokens, cost, tools, and sessions
agent-pulse timelineGantt-style view of recent session activity
agent-pulse heatmapGitHub-style calendar heatmap of agent activity
agent-pulse compareCompare two time windows
agent-pulse compare-projectsCompare tracked projects side by side
agent-pulse leaderboardRank models by efficiency, cost, tokens, or tool usage
agent-pulse diff <a> <b>Compare two sessions
agent-pulse search <query>Fuzzy search sessions by title, source, model, and ID
agent-pulse insightsAutomatic pattern analysis and recommendations
agent-pulse snapshotSave and compare dashboard snapshots over time

Govern

CommandPurpose
agent-pulse budgetDaily and monthly budget tracking with projections
agent-pulse alertsCost and token threshold checks
agent-pulse healthCI-friendly health check with exit codes
agent-pulse anomalyDetect unusual cost spikes with z-score analysis
agent-pulse forecastProject future cost from recent daily trends
agent-pulse scoreComposite health grade for activity, efficiency, cost, reliability, and diversity

Share and Integrate

CommandPurpose
agent-pulse webBrowser dashboard powered by FastAPI
agent-pulse apiREST API with OpenAPI documentation
agent-pulse mcpMCP server so compatible agents can query usage data
agent-pulse metricsPrometheus or JSON metrics export
agent-pulse reportDaily or weekly terminal report
agent-pulse export-htmlSelf-contained HTML report
agent-pulse export -f markdownExport tables for docs, issues, and reports
agent-pulse notifyWebhook notifications for Slack or Discord
agent-pulse pluginsList registered data-source plugins

Setup and Discovery

CommandPurpose
agent-pulse initInteractive setup wizard
agent-pulse doctorDiagnose local configuration and data availability
agent-pulse scanDiscover known agent log locations
agent-pulse config showInspect saved configuration
agent-pulse themesList terminal color themes
agent-pulse completionsGenerate shell completions
agent-pulse frameworksDetect AI-agent frameworks in local projects

Package and Run

ModeCommand
CLI packagepip install agentpulse-cli
Editable dev installpip install -e ".[dev,web]"
Web dependenciespip install "agentpulse-cli[web]"
Docker web dashboarddocker compose up web
Docker CLIdocker compose run cli -- --theme nord

Common Workflows

Find the most expensive sessions

agent-pulse top --sort cost --hours 168
agent-pulse session <session-id>

Compare model efficiency

agent-pulse models --hours 168
agent-pulse leaderboard --rank-by efficiency
agent-pulse optimize

Put usage checks in CI

agent-pulse health --cost-limit 100 --token-limit 1000000 --json

Example GitHub Actions step:

- name: Check AI agent usage
  run: agent-pulse health --cost-limit 100 --json

Export a weekly report

agent-pulse report --period weekly
agent-pulse export-html -o agent-pulse-weekly.html --title "AI Usage Report"

Save and compare a point-in-time snapshot

agent-pulse snapshot save morning
agent-pulse snapshot save evening
agent-pulse snapshot diff morning evening

Expose data to other tools

agent-pulse api --port 8766
agent-pulse metrics --format prometheus
agent-pulse mcp --list-tools
agent-pulse mcp

Configuration

Run the setup wizard:

agent-pulse init

Or edit ~/.agent-pulse.toml directly:

# Data sources
hermes_db = "C:/path/to/hermes/state.db"
agent_log_home = "C:/Users/you"
monitor_platforms = "all"

# Display
theme = "default"
hours = 24
limit = 20
watch_interval = 5

# Alerts
alert_cost_threshold = 25.0
alert_token_threshold = 1000000

# Web
web_host = "127.0.0.1"
web_port = 8765

Disable individual log readers when you want a narrower scan:

claude_code = true
codex_code = true
aider = true
cursor_agent = false
antigravity = false
amp = false

Web Dashboard and API

The terminal dashboard is the default interface. For browser-based inspection, install the optional web extra and start the server:

pip install "agentpulse-cli[web]"
agent-pulse web --port 8765

For automation and internal dashboards:

agent-pulse api --port 8766

The API exposes status, sessions, projects, models, and health endpoints with generated OpenAPI documentation.

MCP Server

Agent Pulse can expose local usage data as MCP tools:

agent-pulse mcp --list-tools
agent-pulse mcp

Example MCP client configuration:

{
  "mcpServers": {
    "agent-pulse": {
      "command": "agent-pulse",
      "args": ["mcp"]
    }
  }
}

Use this when you want an assistant to answer questions like "which model was most expensive this week?" or "show the last high-token session" using local telemetry.

Data Accuracy

Agent Pulse reports estimates from local logs. It is designed for engineering visibility, budgeting, anomaly detection, and trend analysis.

MetricNotes
TokensParsed from each tool's local usage fields when available
CostEstimated from bundled pricing metadata and observed token categories
Tool callsCounted from known tool/function-call shapes in each log format
Search callsBest-effort classification of search-like tools
BillingNot a replacement for provider invoices or organization billing exports

Different CLIs expose different levels of detail. Agent Pulse preserves partial sessions instead of hiding them, so source and model coverage can improve without losing historical visibility.

Development

git clone https://github.com/Jane-o-O-o-O/agent-pulse.git
cd agent-pulse
pip install -e ".[dev,web]"

python -m pytest -q
python -m compileall agent_pulse

Project layout:

agent_pulse/
  cli.py              command surface
  core.py             session aggregation
  sources/            Hermes and agent-log readers
  renderers/          terminal and JSON output
  models/             shared session/project/stat models
tests/
  test_agent_log_sources.py

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
1.2.128 May 20268

Package advisories

0
No matching advisories collected

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

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 23:02 UTC

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

Record identity

package:ffeb41255fc2e03233ae46c02197188412281a22c5efccec368bd2fdd25a8544