M5 MacBook Pro runs Gemma 4 31b at $1.50–$4.79 per million tokens; OpenRouter's same model costs $0.38–$0.50, plus 3–7× faster throughput.
May 19, 2026
Summary
If you're evaluating local inference for production agents, hardware amortization dominates cost—not electricity. Speed matters more: cloud providers deliver 60–70 tokens/sec vs. your 10–20 local. For salary-bearing developers, token cost is noise; latency kills productivity.
Why it matters
If you're evaluating local inference for production agents, hardware amortization dominates cost—not electricity. Speed matters more: cloud providers deliver 60–70 tokens/sec vs. your 10–20 local. For salary-bearing developers, token cost is noise; latency kills productivity.
Implementation verdict
Don't replace cloud APIs with local M5 inference for latency-sensitive work. Local remains viable only for offline-first or air-gapped deployments where you have no choice. If you already own the hardware and have CPU cycles to spare, run it—but don't buy a MacBook Pro for this.
Sources
Dev Signal
Get briefs like this in your inbox — free, every weekday.
100+ sources compressed into one 4-minute read. Ranked, cited, implementation-ready.