New advertisers: 50% off your first month with code FIRSTMONTHSee slots
getlake avatar

lake-meter

getlake/lake-meter

Estimates per-step model picks and costs for coding-agent plans, with Claude Code run caps.

tools
2
transport
STDIO
last updated
Nov 16, 2026
View on GitHub

What it does

  • Exposes estimate_plan to break a plan into rated steps, each with a recommended model, token range, and dollar estimate versus all-Opus
  • Exposes meter_status to report the current run's spend, token usage, and remaining cap
  • Runs locally over stdio with no account, server, or telemetry; no API key is required for the default setup
  • Designed for planning budgets and spotting runs that would overspend, mainly in Claude Code and Cursor

Tools

2 tools

Public tool metadata for what this MCP can expose to an agent.

estimate_planMCP server exposes an estimate_plan tool for estimating a plan's breakdown.

MCP server exposes an estimate_plan tool for estimating a plan's breakdown.

No parameter schema in public metadata yet.

meter_statusMCP server exposes a meter_status tool for checking the current meter status.

MCP server exposes a meter_status tool for checking the current meter status.

No parameter schema in public metadata yet.

Readme

lake-meter

A model for every step, and a cap that stops and asks. For Claude Code.

Claude Code is great until a run loops, fans out into subagents, or quietly eats your 5‑hour window on a step a cheaper model could have done. lake-meter adds two things using only Claude Code's own extension points (hooks, statusline, skills, MCP):

  1. Model per step. When Claude writes a plan in plan mode, lake-meter rates each step's complexity, recommends the cheapest model that should handle it (Haiku / Sonnet / Opus), and estimates tokens and dollars per step and in total, next to the cost of running everything on Opus. The table appears inside Claude Code's own "Ready to code?" plan dialog.
  2. A per-run cap that stops and asks. Set $5 (or a token budget, or a % of your 5‑hour window). When a run reaches it, the next tool call becomes a permission prompt: Yes continues with +50% headroom, No stops Claude right there. In unattended modes it ends the turn instead.
  3. An end-of-run receipt. Measured tokens and list-price dollars for the run, split by model and subagents, compared with the plan's estimate.

Local only. No account, no server, no telemetry.


View the full README on GitHub

Details

Repository
github.com/getlake/lake-meter
Website
getlake.github.io/lake-meter
Package
lake-meter
Transport
STDIO
Registry
MCP registry, active

More from getlake

All 2

Similar to lake-meter