gwittebolle/claude-carbon
196 stars · Last commit 2026-09-16
claude-carbon: track the carbon footprint of your Claude Code sessions
README preview
# claude-carbon [](https://github.com/gwittebolle/claude-carbon/stargazers) [](LICENSE) [](https://github.com/gwittebolle/claude-carbon/releases) [](https://www.npmjs.com/package/claude-carbon) [](https://github.com/gwittebolle/claude-carbon/actions/workflows/ci.yml) claude-carbon is an open source Claude Code plugin that tracks the carbon footprint of your sessions: a live CO2 estimate in the status line, computed locally from your token usage, next to the session cost.  ## What claude-carbon does - Adds a live CO2 estimate to the Claude Code status line, next to the session 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