Claude Code environmental impact tracker
Project description
cceco
Claude Code environmental impact tracker. Reads local session history and shows energy, GHG, water, metals, and fossil fuel usage via EcoLogits.
Also made with Claude code and superpowers.
Install
pipx install cceco
Usage
cceco # all time
cceco --since 2026-06-01 # from a date
cceco --since 2026-06-01 --until 2026-06-09 # date range
cceco --tokens # also show token breakdown
Example output
Claude Code Environmental Impact
Period: all time (3 projects, 12 sessions, 47 requests)
── claude-sonnet-4-6 ──────────────────────────────────
Electricity 0.042 kWh [0.031 – 0.053]
GHG 0.018 kgCO2eq [0.013 – 0.023]
Water 0.12 L [0.09 – 0.15]
Abiotic depl. 4.2e-09 kgSbeq [3.1e-09 – 5.3e-09]
Fossil fuels 0.61 MJ [0.45 – 0.77]
With --tokens:
── claude-sonnet-4-6 ──────────────────────────────────
Tokens input: 1,234,567 output: 89,012
cache creation: 345,678 cache read: 234,567
Electricity ...
Development
git clone https://github.com/icij/cceco
cd cceco
uv sync
uv run cceco
uv run pytest
Notes
Impact is calculated using EcoLogits from the total tokens that require GPU
computation per model: input_tokens + cache_creation_input_tokens + output_tokens. Cache-read tokens are excluded because they are cheap
key-value cache lookups rather than full forward passes.
This matches what you would enter manually in the EcoLogits web calculator.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file icij_cceco-0.1.0.tar.gz.
File metadata
- Download URL: icij_cceco-0.1.0.tar.gz
- Upload date:
- Size: 31.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.11.19 {"installer":{"name":"uv","version":"0.11.19","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ae980aa1c3f73009a42673f2822913c03eb2de8071f51a29ffba8acdba1ff4c6
|
|
| MD5 |
460a2a0904cd0185eb9a0cd5c77b74af
|
|
| BLAKE2b-256 |
8a9b3926e4599928c61d17a5603cf3c9db898cd0e6ef86a487e8d170e1994415
|
File details
Details for the file icij_cceco-0.1.0-py3-none-any.whl.
File metadata
- Download URL: icij_cceco-0.1.0-py3-none-any.whl
- Upload date:
- Size: 6.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.11.19 {"installer":{"name":"uv","version":"0.11.19","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
36d17be00300196c7af0604135477187511da4bfafe1e5af6bbfd4601d13a0bf
|
|
| MD5 |
ccd498904de308d14a47e168c3b65f15
|
|
| BLAKE2b-256 |
5fd8d5c9afda0be1719b1ffb355175e2a16b02f88f68d19da2fb46913d5258b9
|