How much water does Claude Code use? I built a CLI to measure it
说明与用途
CLI "drip" 使用本地日志中的真实令牌计数和研究基础系数,测量 Claude Code 和 Codex AI 代理的用水量。9 月共消耗 47.8 升水。
问题
Users want to know the water consumption of AI coding agents like Claude Code and Codex CLI.
结果
In September, the author’s AI coding agents used about 47.8 litres of water, roughly eight toilet flushes. The CLI provides a live meter and detailed breakdowns, enabling users to track trends and compare usage.
工作流
- Clone the repo and run the install script to add drip to PATH
- Drip reads local Claude Code and Codex logs to count input, output, cache‑read, and cache‑write tokens
- It applies energy‑per‑token coefficients from Microsoft and Google studies
- It multiplies by water‑per‑kWh derived from Lawrence Berkeley Lab and Li et al.
- Drip displays the result in the terminal status line or a split‑pane meter
- Users can view a detailed breakdown page with per‑model, per‑token‑type data and historical trends
证据
My AI coding agents used about 47.8 litres of water in September
drip reads your agent's local logs, so the token counts aren't guesses.
Water per kWh comes from Lawrence Berkeley National Lab's 2024 US data center report and Li et al., Making AI Less Thirsty (CACM 2025). Mid estimate: about 3.6 L/kWh including generation, about 0.4 L/kWh on site only.
- 记录日期: 2026-10-02T16:41:05.281Z