How much water is your AI agent drinking? Live water-usage meter for Claude Code & Codex CLI — status line, split-pane meter, research-backed estimates.
Python
1
5 commits
updated Oct 1, 2026
How much water is your AI agent drinking? drip estimates the water used by terminal AI agents (Claude Code and Codex CLI) and shows it live in your status line, a split-pane meter, or a full breakdown page, with every number traced back to published research.
Opus 5.5 │ my-project │ ████░░░░░░ 48% │ 💧 412 mL (1.7 glasses) · today 3.1 L
git clone https://github.com/beausterling/drip-ai-water-usage.git ~/.drip
~/.drip/bin/drip install
install plays a short intro, imports your existing Claude Code and Codex
history, puts drip on your PATH (via ~/.local/bin), and turns on the Claude
Code status line. If you already have a custom status line, it shows the line to
add instead of replacing yours.
| Where | How |
|---|---|
| Claude Code status line | Automatic after install. Cmd+click the 💧 to open the full breakdown (iTerm2, Ghostty, WezTerm, Kitty). |
| Codex CLI / any agent | drip run codex opens the agent with a live meter beside it (details below). |
| Live meter, any terminal | Split your terminal and run drip watch. A short pane becomes a one-line bar; a tall one shows a filling bottle. |
| Browser breakdown | drip open: this session by model and token type, the uncertainty range, 30-day history, the methodology, and sources. The share button makes a 1080×1350 stats card for social media. |
| Inside Claude Code | Type !drip for a text breakdown (uses no model tokens). |
drip run uses whatever layout your terminal supports:
| Terminal | Layout |
|---|---|
| Ghostty 1.3+ / iTerm2 | Splits the current tab, with a meter panel beside it (--layout strip for a one-line bar underneath) |
| Warp | Opens a new tab with the agent and the meter side by side |
| tmux | A meter panel beside the agent (or a 3-row strip with --layout strip) |
| macOS Terminal | A small separate meter window |
The meter closes automatically when the agent exits. So far only the iTerm2 setup has been tested by hand. The others follow each terminal's documentation; please open an issue if one misbehaves.
drip this session + today + last 14 days
drip open browser breakdown
drip watch [--tool codex] live meter for a split pane
drip run <cmd> run an agent with the meter beside it
drip history --by day|week|month|model|tool|project [--days N]
drip session [ID] per-model breakdown + low/mid/high range
drip explain [MODEL] mL per 1K tokens and where each number comes from
drip splash replay the intro animation
drip sync import new log data (usually automatic)
--band low|mid|high default mid (or DRIP_BAND)
--onsite count data-center cooling water only (or DRIP_ONSITE=1)
DRIP_LINKS=0 turn off the clickable status-line link
water (mL) = tokens × energy per token (Wh) × water per kWh (L/kWh)
water per kWh = on-site cooling (WUE ÷ PUE) + water used to generate the electricity (EWIF)
~/.claude/projects, including subagents, counted once per API response.~/.codex/sessions.~.The full derivation is in RESEARCH.md, and every source is linked
on the breakdown page. The coefficients live in
drip/coefficients.toml. To override them, copy the
file to ~/.config/drip/coefficients.toml. drip stores only token counts
(~/.local/share/drip/usage.db) and computes water when you view it, so edited
coefficients re-price all of your history.
drip is free and MIT-licensed. If it's useful, you can chip in on Gumroad (link coming soon).
python3 -m unittest tests/test_drip.py
MIT © 2026 Beau Sterling
Python
72.8%
HTML
27.2%
How much water is your AI agent drinking? Live water-usage meter for Claude Code & Codex CLI — status line, split-pane meter, research-backed estimates.
Python
1
5 commits
updated Oct 1, 2026
How much water is your AI agent drinking? drip estimates the water used by terminal AI agents (Claude Code and Codex CLI) and shows it live in your status line, a split-pane meter, or a full breakdown page, with every number traced back to published research.
Opus 5.5 │ my-project │ ████░░░░░░ 48% │ 💧 412 mL (1.7 glasses) · today 3.1 L
git clone https://github.com/beausterling/drip-ai-water-usage.git ~/.drip
~/.drip/bin/drip install
install plays a short intro, imports your existing Claude Code and Codex
history, puts drip on your PATH (via ~/.local/bin), and turns on the Claude
Code status line. If you already have a custom status line, it shows the line to
add instead of replacing yours.
| Where | How |
|---|---|
| Claude Code status line | Automatic after install. Cmd+click the 💧 to open the full breakdown (iTerm2, Ghostty, WezTerm, Kitty). |
| Codex CLI / any agent | drip run codex opens the agent with a live meter beside it (details below). |
| Live meter, any terminal | Split your terminal and run drip watch. A short pane becomes a one-line bar; a tall one shows a filling bottle. |
| Browser breakdown | drip open: this session by model and token type, the uncertainty range, 30-day history, the methodology, and sources. The share button makes a 1080×1350 stats card for social media. |
| Inside Claude Code | Type !drip for a text breakdown (uses no model tokens). |
drip run uses whatever layout your terminal supports:
| Terminal | Layout |
|---|---|
| Ghostty 1.3+ / iTerm2 | Splits the current tab, with a meter panel beside it (--layout strip for a one-line bar underneath) |
| Warp | Opens a new tab with the agent and the meter side by side |
| tmux | A meter panel beside the agent (or a 3-row strip with --layout strip) |
| macOS Terminal | A small separate meter window |
The meter closes automatically when the agent exits. So far only the iTerm2 setup has been tested by hand. The others follow each terminal's documentation; please open an issue if one misbehaves.
drip this session + today + last 14 days
drip open browser breakdown
drip watch [--tool codex] live meter for a split pane
drip run <cmd> run an agent with the meter beside it
drip history --by day|week|month|model|tool|project [--days N]
drip session [ID] per-model breakdown + low/mid/high range
drip explain [MODEL] mL per 1K tokens and where each number comes from
drip splash replay the intro animation
drip sync import new log data (usually automatic)
--band low|mid|high default mid (or DRIP_BAND)
--onsite count data-center cooling water only (or DRIP_ONSITE=1)
DRIP_LINKS=0 turn off the clickable status-line link
water (mL) = tokens × energy per token (Wh) × water per kWh (L/kWh)
water per kWh = on-site cooling (WUE ÷ PUE) + water used to generate the electricity (EWIF)
~/.claude/projects, including subagents, counted once per API response.~/.codex/sessions.~.The full derivation is in RESEARCH.md, and every source is linked
on the breakdown page. The coefficients live in
drip/coefficients.toml. To override them, copy the
file to ~/.config/drip/coefficients.toml. drip stores only token counts
(~/.local/share/drip/usage.db) and computes water when you view it, so edited
coefficients re-price all of your history.
drip is free and MIT-licensed. If it's useful, you can chip in on Gumroad (link coming soon).
python3 -m unittest tests/test_drip.py
MIT © 2026 Beau Sterling
Python
72.8%
HTML
27.2%