{"repo":"gwittebolle/claude-carbon","free":true,"listed":false,"github":"https://github.com/gwittebolle/claude-carbon","clone":"git clone https://github.com/gwittebolle/claude-carbon.git","description":"Track the carbon footprint of your Claude Code sessions","language":"Shell","stars":161,"topics":["ai-sustainability","carbon-emissions","carbon-footprint","claude-code","cli","green-it","anthropic","claude-plugin","climate","developer-tools"],"license":"MIT","category":"cli-tools","readme_excerpt":"claude-carbon Track the carbon footprint of your Claude Code sessions. 1. Install (or update): Or, if you have Node.js: Same command to install and to update to the latest version (both run the same installer). 2. Restart Claude Code. Your CO2 appears in the status line: Segments, left to right: project + git branch, model + context window %, session cost + CO2, 5h block usage % + reset time. A 🔥 prefix appears when the sustained burn rate would overshoot 100% of the limit by the end of the 5h block (after a 15 min grace window, only once usage reaches 15%). Terminal and IDE only. claude-carbon runs through the Claude Code status line and shell hooks, which execute in the terminal CLI and IDE extensions. They do not run in the web app (claude.ai/code) or the desktop app, so no CO2 is displayed or recorded there. 5h quota source. The percentage comes directly from Anthropic's /api/oauth/usage endpoint (the same data Claude Code displays in /usage ). No heuristic, no token-limit file to seed. Two sources in order: 1. stdin (preferred): if Claude Code injects rate limits.five hour.used percentage in the statusline JSON, that value is used straight away. 2. OAuth API fallback : GET https://api.anthropic.com/api/oauth/usage with the bearer token from macOS Keychain, CLAUDE CODE OAUTH TOKEN , or /.claude/.credentials.json . Cached 60s in /.claude/claude-carbon/oauth-usage.json . Accurate on every plan, including Max 20x. 3. Use the slash commands: - /carbon-report - text report wi","default_branch":null,"files":null,"tree":[],"storefront":"/r/gwittebolle","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/gwittebolle/claude-carbon/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}