What is claude-carbon?
claude-carbon is a Claude Code mod by gwittebolle that track the carbon footprint of your Claude Code sessions, in the terminal and the Claude desktop app. It is listed under Interface and has 259 GitHub stars.
| Type | Claude code mod |
|---|---|
| Author | gwittebolle |
| Repository | gwittebolle/claude-carbon |
| Popularity | 259 GitHub stars |
| Category | Interface |
| Security | High risk (53/100) |
| Rank | #157 of 9,397 Claude Code mods; #54 in Interface |
| License | MIT |
| Last commit | 2026-11-30 |
| Stars this week | +5 |
| Hooks | 10 events |
| Sees | Agent calls, subagent spawns |
| Draws on | AbovePrompt, Pane, TurnDuration |
Is claude-carbon safe to install?
claude-carbon scores 53/100 on the MCPMods security check: High risk. Things to review: reads environment variables; validator reported problems. It passed 6 of 8 checks.
Mod footprints come from claude plugin validate, which lists every event a mod hooks and every API call it makes without running it.
| Check | Result |
|---|---|
| No network access | Pass |
| Starts no processes | Pass |
| Writes no files or config | Pass |
| Reads environment variables | Review |
| Only sees the events it hooks | Pass |
| Doesn't drive Claude | Pass |
| Validator reported problems | Flag |
| Has an open-source license | Pass |
API calls in its code
| Call | What it means |
|---|---|
$.clock.after | |
$.clock.now | |
$.command.register | |
$.env.get | reads env vars |
$.fs.read | reads files |
$.prompt.fill | writes the prompt box |
$.prompt.read | |
$.session.id | |
$.session.surfaces | |
$.session.usage | |
$.settings.read | reads settings |
$.state.get | |
$.state.set | |
$.store.get | keeps its own state |
$.store.set | keeps its own state |
$.ui.blit | draws interface |
$.ui.close | draws interface |
$.ui.invalidate | draws interface |
$.ui.open | draws interface |
$.ui.panes | draws interface |
$.ui.resolve | draws interface |
$.ui.status | draws interface |
$.ui.toast | draws interface |
How do I install claude-carbon?
- Check your Claude Code version. Mods need Claude Code 2.1.287 or later and are on by default.
claude --version
- Read its footprint. This lists every event it hooks and every API call it makes, without running it.
git clone https://github.com/gwittebolle/claude-carbon claude plugin validate ./claude-carbon/.
- Install it. Run this in your terminal, then /reload-plugins in an open session.
git clone https://github.com/gwittebolle/claude-carbon && claude --plugin-dir ./claude-carbon/.
Or ask Claude to set it up
Paste this into Claude Code and it installs claude-carbon for you:
Install the "claude-carbon" Claude Code mod from https://github.com/gwittebolle/claude-carbon. Run claude plugin validate on it first and show me what it can access before you enable it.