Claude Carbon
Claude-carbon: track the carbon footprint of your Claude Code sessions
Install: /plugin install claude-carbon --marketplace gwittebolle/claude-carbon
Works with Claude Code · 241 GitHub stars
Install
/plugin install claude-carbon --marketplace gwittebolle/claude-carbonInstall command taken from the project's README or registry entry. Always review code before running it.
README excerpt
Read full README on GitHub →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
~/.claudetranscripts - 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 or Max subscription you do not pay it; it shows the value of what you used, next to its CO2. See How it works.
Install
Two ways, same result. Pick the one that fits you:
- Not a developer, or you use the Claude desktop app: let Claude install it for you. No terminal, one message to paste.
- Developer, at ease in a terminal: one command.
Already installed? See Updating.
Option 1: from the Claude desktop app (no terminal)
Open the Code tab of the Claude desktop app and start a session, in any folder.
Paste the message for your system. It works in any language. Claude runs the installer for you and asks before running the command: accept.
macOS or Linux:
Install claude-carbon for me by running this command: curl -fsSL https://raw.githubusercontent.com/gwittebolle/claude-carbon/main/install.sh | bashWindows:
Install claude-carbon for me by running this command in PowerShell: irm https://raw.githubusercontent.com/gwittebolle/claude-carbon/main/install.ps1 | iexQuit the desktop app completely, open it again, and start a new session in the Code tab. Under the prompt you now see
This session: 3.6 gCO₂ · $0.12(Cette session : 3,6 gCO₂ · 0,12 $in French)./carbon-reportand/carbon-cardwork from there too.The
$is an API-equivalent cost, not what your subscription bills.
If the install stops
Similar plugs
CLI proxy that reduces LLM token consumption by 60-90% on common dev commands. Single Rust binary, zero dependencies
Bash is all you need - A nano claude code, like 「agent harness」, built from 0 to 1
Documented system prompts from Anthropic - Claude Fable 5.1, Opus 5.5, Claude Design, Claude Code. OpenAI - ChatGPT GPT-6-Astra, Codex. Google - Gemini 3.8 Flash, 3.1 Pro…
Wrap Antigravity, ChatGPT Codex, Claude Code, Grok Build, Muse Code, Devin as an OpenAI/Gemini/Claude/Codex compatible API service, allowing you to enjoy the free Gemini…