ClawMetry is a self-hosted dashboard for observing and governing AI coding agents. It reads the session files that coding agents have already written to disk, bringing timelines, tool calls, and the token and cost data exposed at runtime into a single view, helping users distinguish a long-running session that is working effectively from one that is stuck.
Purpose
The core purpose of ClawMetry is to let users "see the agent thinking." It is aimed at developers or teams using multiple AI coding agents, providing zero-configuration observability without modifying how agents run or inserting any component into the request path. It supports 33 AI agent runtimes, including Claude Code, OpenAI Codex, Hermes, OpenClaw, and others, managing the entire agent fleet with a single dashboard.
Main capabilities
- Sessions and records: Show what each agent did turn by turn, with replay support.
- Cost and tokens: Statistics by runtime, model, session, and date, with anomaly flags.
- Flow view: A real-time chart showing messages flowing between channels, models, and tools.
- Brain view: A real-time stream of reasoning and tool-call events.
- Context overflow: Adjust window utilization by provider, distinguish compaction from forced overflow, and provide a mapping of what cannot be observed for each runtime.
- Memory and skills: Show the files and skills actually loaded by each runtime.
- Health and logs: Disk, memory, error rates, rate limits, real-time log streaming.
- Alerts: Budget caps, error spikes, agents offline, routable to Slack, Discord, PagerDuty, Telegram, Email.
- Approvals: Pause risky tool calls before they run, and approve them from your phone.
How to use
One command, zero configuration, automatically detects everything. After installation, open http://localhost:8900。它会找到已有的智能体运行时,以只读方式读取,不改变它们的运行方式。需要 Python 3.8+, supporting macOS, Linux, or Windows, and at least one agent runtime on the same machine. Docker installation instructions are also provided.
Example installation command:
curl -sSL https://raw.githubusercontent.com/vivekchand/clawmetry/main/install.sh | bash
Agents can also set this up themselves: the agent-kill-switch skill can teach Claude Code, Codex, Cursor, Gemini CLI, Copilot, or OpenCode to install ClawMetry, report agent activity and spend on the machine, stop a session on request, and pause risky tool calls pending approval.
Use cases
- Monitor the running status and cost of multiple coding agents.
- Identify whether long-running tasks are stuck or productive.
- Track token consumption and cost anomalies.
- Approve risky tool calls before they execute.
- Scenarios that require local data retention and do not want session data to leave the machine.
Limitations
- The data exposed by different runtimes varies greatly, and some runtimes do not publish any cost data.
- Observing an action is not the same as being able to stop it; control capabilities differ across runtimes.
- Context window sizes are obtained from a readable table by provider, covering Anthropic, OpenAI, Google, xAI, DeepSeek, Kimi, Qwen, Mistral, Llama, and GLM, but not all runtimes can see compaction events.
- The dashboard daemon continuously consumes about 12% of a single core CPU on busy installations, exceeding its own set 5-10% budget.
- The agent's overhead on Windows is about seven times that on Linux.
- The default installation performs an anonymous installation ping and a PyPI version check, and queries a public IP once for the startup banner; all of these can be opted out of.
Data and privacy
ClawMetry reads local session files and logs. Unless you run clawmetry connect, no session data leaves the machine. When connected, snapshots use end-to-end encryption, the key never leaves the machine, and decryption happens in the browser. If a node has no key, the upload is skipped rather than sent in plaintext. The decryption code is located in clawmetry/static/js/cm-e2e.js, ships with the wheel, and is pinned via a subresource integrity hash.
License and pricing
The core is under the MIT license. The free open-source app supports OpenClaw, NVIDIA NemoClaw, Goose, and Qwen Code. Paid plans support Claude Code, Cursor, GitHub Copilot, OpenAI Codex, Gemini CLI, Lovable, Replit Agent, Cline, OpenHands, OpenWorker, Muse Code, OpenExecutive, OpenDots, opencode, Aider, n8n, Devin, Antigravity, Grok Build, Grok Bot, Hermes, Pi, Deep Agents, Kimi CLI, DeepSeek Harness, Exo, NanoClaw, PicoClaw, QM, and more. See clawmetry.com/pricing for annual plans, enterprise edition, and current prices. Self-hosted license keys work without the cloud. See docs/ENTITLEMENTS.md for the specific free/paid breakdown.