Gemini CLI × ClawMetry

Observability and cost tracking for Gemini CLI

See every Gemini CLI session, turn, tool call, subagent, and token as it happens. ClawMetry finds Gemini CLI on your machine on its own and renders sessions, transcripts, token splits, and cost in one dashboard, next to every other agent you run.

Supported runtime Zero config, auto-detected Read-only Free trial Official Gemini CLI site ↗
📦 631k+ installs 🌍 128+ countries 392 on GitHub 🏆 #5 Product Hunt

What ClawMetry sees on Gemini CLI

Gemini CLI is Google's open-source terminal agent, the one you start with npx @google/gemini-cli, npm install -g @google/gemini-cli or brew install gemini-cli. It is Apache-2.0, it has over 106,000 GitHub stars, and it runs Gemini models against your repo with file edits, shell commands, web fetch, Google Search grounding, MCP servers, extensions, and specialist subagents. Once ClawMetry is running, your Gemini CLI activity shows up as:

What this covers, exactly: the Gemini CLI, the agent in your terminal. Two neighbours are separate things and are not silently folded in:
Read-only by design: ClawMetry never writes to Gemini CLI and never sends a prompt on your behalf. It reads what Gemini CLI already recorded, after the fact. A session you deleted stays deleted.

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 finds Gemini CLI on the machine and starts reading immediately. No config, no flag to turn recording on, and no need to restart Gemini CLI.

3. Open the dashboard

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

Start the free trial →

The one thing this catches that Gemini CLI alone does not

Inside the CLI, /stats tells you what the session you are sitting in has used, cached tokens included. What it cannot tell you is the shape of the week: how many sessions you left behind in how many repos, which ones burned tokens re-reading the same files, how much of yesterday went to subagents you never watched run, and how Gemini CLI's total compares with the Claude Code and Codex runs happening beside it. On a Google sign-in the meter that actually runs out is a daily request quota, not a bill, and nothing in the terminal shows you how fast you are spending it across projects. ClawMetry keeps that view: spend per hour across every session and every runtime, subagents billed separately instead of hidden inside a parent, repeated-call detection, and token-growth curves per session. Set a threshold and the approval queue pauses before the next call. Kill switch (Pro) stops it.

Starred by the people building AI

Engineers and founders from OpenAI, Google, PostHog and more have starred ClawMetry on GitHub. One of them helped build it.

Peter Steinberger
Peter SteinbergerOpenAI
Creator of OpenClaw and founder of PSPDFKit, now at OpenAI.
Matt Van Horn
Matt Van HornJune · Weber
Co-founder of June, the smart oven acquired by Weber. ClawMetry contributor.
Alex Krentsel
Alex KrentselGoogle
Systems research engineer at Google and PhD student at UC Berkeley.
Manoel Aranda Neto
Manoel Aranda NetoPostHog
Software engineer at PostHog, previously mobile SDKs at Sentry.
Kody Kendall
Kody KendallLlamaPress AI
Co-founder of LlamaPress AI, an open-source AI web-app builder.

All 26 runtimes ClawMetry observes

Gemini CLI is one of 26. Free on every plan: OpenClaw, NVIDIA NemoClaw, Goose. Paid on Cloud Pro or Self-Hosted Pro: the rest.

OpenClaw Claude Code Cursor GitHub Copilot Codex Cline OpenHands OpenCode NVIDIA NemoClaw Aider Goose n8n Qwen Devin Antigravity Grok Hermes Pi Deep Agents Kimi CLI DeepSeek Harness Exo NanoClaw PicoClaw QM Gemini CLI (this page)