A monorepo of Claude Code plugins by CNaught.
Track and offset carbon emissions from your Claude Code usage
Features:
- Estimates carbon emissions per Claude Code session based on token usage
- Stores session data locally via SQLite
- Provides status line integration showing session carbon impact
- Includes commands for setup and reporting
Add the marketplace and install the carbon plugin in Claude Code:
/plugin marketplace add CNaught-Inc/claude-code-plugins
/plugin install carbon@cnaught-plugins
Restart Claude Code and then run /carbon:setup to initialize the tracker.
To install from a local clone of this repo:
bun installThen in Claude Code:
/plugin marketplace add /path/to/claude-code-plugins
/plugin install carbon@cnaught-plugins
Restart Claude Code and then run /carbon:setup to initialize the tracker.
To point at a staging API, create plugins/carbon/.env.local:
CNAUGHT_API_URL=https://your-staging-api-url.com
To pull the latest plugin version:
/plugin marketplace update cnaught-plugins
- Bun v1.3.6+
- Node.js 20+
bun installbun run test # Run tests
bun run typecheck # Type-check all plugins
bun run lint # Lint all plugins.claude-plugin/ # Plugin marketplace metadata
plugins/
carbon/ # Carbon tracker plugin
src/ # Source code (run directly by Bun)
Trigger the "Release" workflow manually with a version number (e.g., 1.6.0). This will update plugin.json, commit, tag, and create a GitHub release.
Plugin version lives in plugins/<plugin>/.claude-plugin/plugin.json.