

claude-carbon is an open source Claude Code plugin that tracks the carbon footprint of your sessions: a live CO2 estimate computed locally from your token usage, in the terminal status line and in the Code tab of the Claude desktop app, next to the session's API-equivalent cost. In the desktop app, /carbon-panel opens a pane with a pixel molecule coloured by this session's CO2 against the median of your past sessions, your usage over the period you pick, its warming stripes, and a button for your yearly card.

What claude-carbon does
/carbon-panel: a pane in the Claude desktop app with your CO2 molecule, your usage and the warming stripes of your sessions (in a terminal, the session in the band above the prompt). See the mod
- Adds a live CO2 estimate to the Claude Code status line, and the session's CO2 under the prompt in the Claude desktop app, each next to the session's API-equivalent cost
- Persists each session to a local SQLite database, so history survives the 30-day transcript purge
- Backfills historical data from existing
~/.claude transcripts
- Slash commands:
/carbon-report (text), /carbon-card (PNG), /carbon-pr (footprint of a pull request)
- A README badge with your all-time total, and a public methodology with every factor sourced
About the $ figure. It is an API equivalent: what your session would cost at Anthropic's pay-as-you-go API list prices. On a Pro, Max or Ultra subscription you do not pay it; it shows the value of what you used, next to its CO2. See How it works.
Install
In Claude Code, type:
/plugin install claude-carbon --marketplace gwittebolle/claude-carbon
Claude Code asks you to confirm the marketplace, shows what the plugin installs, then asks where to install it: pick Install for you. The same line works on macOS, Linux and Windows. In the Code tab of the Claude desktop app, if the line is not taken, paste this message instead and accept when Claude asks:
Install the claude-carbon plugin for me: claude plugin install claude-carbon --marketplace gwittebolle/claude-carbon
Then quit Claude Code completely, open it again and start a new session. Your CO2 now shows next to the session's cost:
- in a terminal, in the status line:
$0.50 · 65gCO₂
- in the desktop app, under the prompt:
This session: 3.6 gCO₂ · $0.12
The plugin sets that status line once, at its first session start, and only when you have none: another tool's status line is left as it is (to add the CO2 to it, see ccstatusline). /carbon-report gives your totals, and /carbon-panel opens the pane in the desktop app. The $ is an API-equivalent cost, not what your subscription bills. To update later, run /carbon-update.

If the install stops