@crbonfree/cliv0.1.11Measure what you use

Your Claude Code and Codex usage, metered from their own logs.

One install hooks the coding agents you already run, records their token usage locally and syncs it to your dashboard on a schedule, per agent, per model and per week. The backend adds the cost and the carbon.

Install and sign in

npm install -g @crbonfree/cli && crbon install
illustrative session

4,500+

SDK and MCP downloads with no paid marketing

Crbon Labs, 2026

5

coding agents metered through their own hooks

7

MCP tools for shared agent memory

3

layers in the carbon methodology, version 1.2

What is the crbon CLI?

The crbon CLI is a command-line usage tracker for AI coding agents. Installed from npm, it hooks Claude Code, Codex, Gemini CLI, Cursor and OpenClaw, records their token usage on your machine and syncs it to your CrbonFree dashboard on a schedule, per agent, per model and per week, with cost and CO2e from the published methodology. It also ships a small MCP server for shared agent memory.

Last checked against the product on 5 September 2026. Carbon figures follow methodology v1.2.

At a glance
Package
@crbonfree/cli on npm
Version
0.1.11
Licence
MIT
Requires
Node.js 20 or newer
Runs on
macOS and Linux, via launchd or systemd
Meters
Claude Code, Codex, Gemini CLI, Cursor, OpenClaw
Data direction
Captures locally, uploads on a schedule
Signs in with
crbon install, or CRBON_API_KEY

Hooks for the agents you already run

Claude Code, Codex, Gemini CLI, Cursor and OpenClaw each get their own hook, so usage is captured per agent and per model as it happens, with nothing to change in how you work.

  • Local first, then a scheduled sync

    Capture lands in a folder on your machine. crbon install registers a job with your operating system’s scheduler, and each sync uploads what is new. The backend turns it into CO2e with the published methodology.

  • Redaction before anything leaves

    Redaction is always on. Sensitive folders are excluded, .env files are blocked and secrets are scrubbed before an upload starts.

  • A shared memory across agents

    The CLI ships its own MCP server with seven tools, so any agent can search past sessions, summarise them, brief itself on a file or hand work to another agent. Search scope is yours, your team’s or the whole organisation’s, as your org settings allow.

How the crbon CLI moves your data

  1. 1

    An agent runs

    Each supported agent gets its own hook, so every call is recorded with its model and token counts as it happens.

  2. 2

    Capture lands on disk

    Sessions are written to a folder on your machine. Redaction, sensitive-folder exclusion and .env blocking run here, before anything leaves.

  3. 3

    The scheduler syncs

    The job crbon install registered uploads what is new every hour. Run crbon sync to push immediately.

  4. 4

    The dashboard reports

    The backend converts tokens to CO2e with methodology v1.2 and My coding agents shows the result per model, per agent and per week.

How to get started

  1. 1

    Install

    Node 20 or newer. The package is MIT licensed.

    npm install -g @crbonfree/cli
  2. 2

    Sign in and set up

    Opens the browser to sign in, provisions an API key, registers the scheduler and runs the first sync. On a headless machine it falls back to a device code you approve from the dashboard.

    crbon install
  3. 3

    Check what it found

    Lists the agents it is metering and the time of the last sync. Run crbon sync to push immediately instead of waiting for the schedule.

    crbon status

It lands in My coding agents

Every synced session shows up in the dashboard per model, per agent and per week, next to connection health and the last sync time. Any member of your organisation can create their own CLI key, so a team can start without an admin.

Open the sample account

What it does not do

It meters the supported agents on the machine it runs on and needs an account and an API key; there is no anonymous mode. The token-saving features, compressed output, bounded reads and loop detection, are available for Claude Code only today. Usage metering needs only metadata, but the shared-memory tools store redacted session content on the server so your agents can search it.

Who reaches for the crbon CLI

Engineering lead

Wants to know what the team’s coding agents cost in tokens and carbon without asking anyone to change tools.

What they get: Every developer runs one install, and the dashboard shows usage per agent, per model and per week.

Sustainability officer

Needs developer AI usage inside the same Scope 3 report as the production workloads.

What they get: CLI sessions land in the same methodology and the same monthly audit pack as provider connections.

Developer

Switches between agents during the day and loses the thread each time.

What they get: The shared-memory tools let any agent search, summarise and hand off past sessions.

Which CrbonFree surface do I need?

Three of them put usage in: the dashboard through provider connections, the CLI for coding agents and the browser extension for chat sessions. The other four read the numbers back into your own code. The crbon CLI is highlighted.

SurfaceMeters usageReads numbers backRunsNeedsLanguage
DashboardIn the browserAn account; the sample account opens without oneNone
CLIthis page statusOn your machineAn account; device code for headless machinesNode 20 or newer
Browser extension estimatesIn ChromeOptional, per the store listingNone
TypeScript SDKNode 18 or newerAn API keyTypeScript or JavaScript
Python SDKPython 3.8 or newerAn API keyPython
MCP serverBeside your MCP clientAn API key from loginAny MCP client
REST APIOver HTTPSAn API keyAny

Questions

Questions about the crbon CLI.

Short answers. The package page and the API reference have the long ones.

View on npm
  • Install the CLI and run crbon install. It hooks Claude Code and records every session’s tokens per model on your machine, and the dashboard’s My coding agents view shows them per agent, per model and per week with cost and CO2e. Your plan’s usage limits stay in Anthropic’s own app; the CLI reports what you used, not what you have left.

  • The same way. The CLI hooks Codex alongside Claude Code, Gemini CLI, Cursor and OpenClaw, so its sessions land in the same view with the same per-model breakdown. OpenAI’s plan limits and credits are shown in ChatGPT and on the OpenAI platform, not in CrbonFree.

  • The job that crbon install registers with your operating system runs every hour and uploads whatever is new. If you want the dashboard current right now, run crbon sync.

  • The CLI is free and MIT licensed, and tracking usage and carbon estimates on the free plan costs nothing. Signed receipts, audit packs and trust assets are part of the paid plans.

  • Claude Code, Codex, Gemini CLI, Cursor and OpenClaw, each through a dedicated hook the installer wires up. A local proxy can also capture direct API traffic for tools without a hook.

  • Metering needs only usage metadata: model, tokens and timestamps. The optional shared-memory tools store redacted session content so agents can search past work, and redaction, sensitive-folder exclusion and .env blocking run before anything leaves your machine.

  • Yes. On a machine without a browser, crbon install shows a device code you approve from the dashboard. You can also set CRBON_API_KEY in the environment and skip the sign-in entirely.

See your own number instead of ours.

However your team already runs AI, that is how you connect. Paste a read-only provider key, drop in an SDK, add the MCP server, install the CLI or switch on the browser extension, and the first measured tokens reach your dashboard within seconds.

Create your free account

Free plan · first tokens in seconds