carbon.md documentation

An open standard for carbon-governed AI agents. A carbon.md file in your repository declares your agents' carbon policy: how their emissions are estimated, how much is compensated through verified carbon-removal contributions, what they may spend, and where the proof lives.

Humans set the policy. Agents execute within it. Everything is provable.

npx carbon-md init
New here? Go to the Quickstart — five minutes from install to your first footprint. Then read Concepts to understand the loop.

What this is

AI agents run thousands of LLM calls a day. Their operators have three bad options: ignore the footprint, buy into heavyweight enterprise carbon suites, or make offset claims that are illegal in the EU from September 2026. carbon.md is the fourth option — a small, honest, verifiable primitive:

  1. Measure — token usage is captured at chokepoints (Claude Code, LiteLLM, OpenTelemetry, any usage log) and converted to CO₂e estimates with explicit uncertainty ranges.
  2. Govern — a human-authored policy file sets contribution targets, budget caps, and approval thresholds that agents must respect.
  3. Contribute — emissions are matched by verified carbon-removal purchases (monthly, confirm-first by default — agents never spend unattended above your threshold).
  4. Prove — every retirement gets a public receipt; the badge links to a ledger, not to a vibe.

What it is not

  • Not a dashboard company. The standard and the CLI are free and MIT-licensed, local-first, and work with no account.
  • Not a neutrality claim. carbon.md never says "carbon neutral" or "climate positive". It says: this agent measured X, and contributed Y% via verified removal — here is the receipt. See Claims & compliance.
  • Not false precision. Cloud inference is a black box. Every number ships with a low–central–high range, and the methodology is versioned in the open.

Where to go next

If you want to…Read
Get running in five minutesQuickstart
Understand the modelConcepts
Write or read a policy fileThe carbon.md file
Feed usage from your stackCapture recipes
Look up a commandCLI reference
Fund and prove a retirementRetirements & receipts
Let an agent install this itselfFor agents
Know what's shipping nextWhat's coming

Status

The spec is v0.1 (draft) and the reference CLI is published on npm as carbon-md. Things labelled planned in these docs are designed but not yet shipped — we document a feature when it lands, and the docs are versioned with the code. See Docs conventions.

Estimates, not measurements — ranges are shown by design. carbon.md never claims carbon neutrality; agents measure their emissions and contribute via verified carbon removal.

Stewarded by Agentic Realism · MIT · Edit on GitHub