Metrik CLI

A desktop widget with quota balances and token use across Claude, Codex, Kimi, GLM and other agents in one window.

  • 110 ★ on the repository
  • Last commit
  • AGPL-3.0
CLI

Extended access

Why this level

  • The app reads local agent logs and calls official quota interfaces.
  • Installers without commercial signing need manual approval.
All reasons and checks

keros68/metrik

Install

Manual install

Text for your agent

Download the installer for your system from the releases page (Windows x64, macOS universal, Ubuntu 24.04), run the app and allow it in the system on first launch. For scripts call the app with the `--quota-json` flag.

Access and checks

How we review

Extended accessThe tool runs code or makes network calls and only reads external data.

  • The app reads local agent logs and calls official quota interfaces.
  • Installers without commercial signing need manual approval.

This is third-party code. Review the repository files before installing.

What it does

Metrik shows remaining limits, reset times and local token use of several coding agents in a single widget. Usage is computed from logs on your computer, and quotas come from each agent's official interfaces. There is no cloud service. Supported are Codex, Claude, GLM, Kimi, OpenCode, Antigravity, WorkBuddy, Grok and others. It offers quota cards, a 26-week heatmap, a per-project breakdown, cost estimates at public prices and CSV export. The `--quota-json` command outputs data for scripts and external widgets. The Tauri app runs on Windows, macOS and Ubuntu.

Who it is for. Users of several subscription-based coding agents who need to track remaining limits and avoid hitting a ceiling mid-task.

Good fit when

  • Claude and Codex subscriptions burn down differently and you need one overview of balances.
  • You want a notification when the balance falls below 15 percent.
  • A per-project token report with CSV export is needed.
  • Quota data feeds an external widget or script through `--quota-json`.

Not a fit when

  • You need a web service reachable from any device: Metrik is local.
  • Agents run on remote machines without access to their logs.
  • You need exact cost: the calculation uses public API prices, not the subscription plan.

Example request

Use quota-json to show how much of Claude and Codex remains before reset and how many tokens went this week.

Limitations

The AGPL-3.0 license sets conditions on distributing changes, so study it before embedding. Installers are not yet signed with a Windows or Apple commercial certificate, so the system must be allowed manually on first launch. For Pi, Qwen, Hermes and some other agents there is no official quota data, only usage is visible. Cost estimates use public prices and actual subscription charges may differ. Some sources, such as the Cursor dashboard, are enabled in settings and call external interfaces. Documentation is mostly Chinese.

How to disable. Remove the app with standard system tools. Delete the local database and settings from the app data directory; turn off shared-folder sync in settings.

FAQ

What exactly does Metrik count?

Quota balances from agents' official interfaces, reset times and token use from local logs, plus a cost estimate at public prices.

What if the system warns on launch?

Installers are not yet commercially signed. Allow the launch manually as Windows or macOS prompts.

Does the app send data?

There is no cloud service. Requests go only to agents' official quota interfaces, to the Cursor and Grok Bot dashboards when enabled, and to update checks, which can be turned off.

Can I use it in scripts?

Yes, the `--quota-json` flag outputs quota data for external widgets and scripts.

How do I combine data from several computers?

Point to a shared folder such as Syncthing or OneDrive: 30-day statistics merge automatically.

Discussion

No questions or reviews yet.

CLI tools

Tokdash shows token usage and session cost for Claude Code, Codex, Gemini CLI and a dozen more agents locally

CLIExtended access93Repository stars

TokenTracker counts tokens and spend across Claude Code, Codex, Cursor, Gemini CLI and other agents from local logs and shows them on a local dashboard

CLIBroad access2.2KRepository stars

htop for AI costs: a terminal dashboard shows tokens and spending across 11 providers and 8 coding agents in real time.

CLIMinimal access77Repository stars

A limits and token spend monitor for Claude Code, Codex, Antigravity and Grok CLI: macOS menu bar, Windows tray, HTML reports

CLIExtended access347Repository stars

A CLI that shows an agent the remaining quota of Claude, Codex, Cursor, Copilot and 15 more services in one compact report.

CLIBroad access174Repository stars

Counts token use and cost of Claude Code and Codex sessions from local logs and shows remaining limits in the status line

CLIExtended access536Repository stars

README in short

Describes widget features, forms for Windows, Ubuntu and macOS, a summary of supported agents with data sources and privacy matters.

README badge

Report a problem