Skip to content

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-carbon

Install command taken from the project's README or registry entry. Always review code before running it.

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 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:

Already installed? See Updating.

Option 1: from the Claude desktop app (no terminal)

  1. Open the Code tab of the Claude desktop app and start a session, in any folder.

  2. 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 | bash
    

    Windows:

    Install claude-carbon for me by running this command in PowerShell:
    irm https://raw.githubusercontent.com/gwittebolle/claude-carbon/main/install.ps1 | iex
    
  3. Quit 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-report and /carbon-card work from there too.

    The $ is an API-equivalent cost, not what your subscription bills.

If the install stops

Similar plugs

Orca is the ADE for working with a fleet of parallel agents. Run any coding agent with your own subscription. Available on desktop, mobile and remote runtime.

PluginDev tools+6,803 this week

CLI proxy that reduces LLM token consumption by 60-90% on common dev commands. Single Rust binary, zero dependencies

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…

Explore related