Observability and cost tracking for xAI Grok

See every Grok CLI session, tool call, and token as it happens. ClawMetry reads Grok's session store under ~/.grok/sessions and its unified event log, and renders sessions, tokens, cost, and outbound repo payloads (so you see what left your machine) in one dashboard.

Supported runtime Reads Global event log at ~/.grok/logs/unified.jsonl plus per-session JSONL under ~/.grok/sessions/// Read-only Free trial

What ClawMetry sees on Grok

ClawMetry's Grok adapter opens the store Grok already writes (~/.grok/logs, ~/.grok/sessions, ~/.grok/bin/grok (overrideable via CLAWMETRY_GROK_HOME)) in read-only mode and surfaces:

Source: the adapter is at clawmetry_pro/adapters/grok.py. Every parse rule and every SQL SELECT is in that file.

Enable it in about two minutes

1. Install ClawMetry

Pick the line that matches your OS. Windows users: paste the install.cmd line, not the shell one.

# macOS or Linux
curl -fsSL https://clawmetry.com/install.sh | bash
# Windows (cmd.exe or PowerShell)
curl -fsSL https://clawmetry.com/install.cmd -o install.cmd && install.cmd

2. Run the daemon

clawmetry

The daemon auto-detects Grok's local store and starts reading immediately.

3. Open the dashboard

Open http://localhost:8900. Switch the runtime chip to Grok.

Start the free trial →

The one thing this catches that Grok alone does not

Left alone, Grok's failure mode is a session that stages an unexpectedly large repo payload for upload and you never notice. ClawMetry watches for it: cost per hour on the Grok runtime, message-repeat detection, and per-session token-growth curves. Set a threshold, and the approval queue pauses before the next call. Kill switch (Pro) stops it.

All 19 runtimes ClawMetry observes

Grok is one of 19. Free on every plan: OpenClaw, NVIDIA NemoClaw. Paid on Cloud Pro or Self-Hosted Pro: the rest.

OpenClaw NVIDIA NemoClaw NanoClaw PicoClaw Claude Code Codex Cursor Aider Goose opencode Qwen Code Hermes Pi Deep Agents n8n Antigravity GitHub Copilot Grok (this page) QM