Anthropicβs prompt caching is a powerful cost-saving feature, but it has a critical weakness: expiration. Warmy, a new tool launched on Hacker News, aims to plug that leak by automatically keeping the cache warm for Claude Code users on macOS. The tool operates as a local proxy, intercepting requests to api.anthropic.com to ensure that cached context remains active, potentially reducing usage costs by up to 15%.
The Economics of Cold Starts
The core mechanism relies on the massive price disparity between reading from the cache and rewriting it. According to Warmyβs documentation, a warm cache read costs 0.05x the standard input price, whereas a cold start forces the model to rewrite the entire chat context at 2x the input price. This creates a 40x cost difference. By re-sending the last request just before the one-hour cache expiration window closes, Warmy ensures the next interaction hits the cheap path.
Predictive Warm-Up Logic
Warmy doesn't just blindly ping the server; it employs a local model trained on the userβs own usage history to predict which chats are worth keeping warm. The system analyzes patterns such as lunch breaks, meeting schedules, and end-of-day workflows to determine if a user is likely to return to a specific session. If the model predicts a low probability of return, it allows the cache to expire, avoiding unnecessary warm-up costs.
Privacy and Local Architecture
Security-conscious developers will appreciate that Warmy runs entirely locally. The tool modifies the ANTHROPIC_BASE_URL in ~/.claude/settings.json to point to http://127.0.0.1:8796. Requests are still sent directly to Anthropic, and the proxy logs only token counts and timings, never the actual prompt content. The proxy itself is open source under the MIT license, and the app sends only anonymous aggregate data to warmy.dev for version checking.
Key Takeaways
- Warmy claims to save up to 15% of Claude usage by preventing cache expiration.
- The tool uses a 40x price difference between warm cache reads and cold starts to drive savings.
- A local model predicts user behavior to avoid wasting resources on abandoned chats.
- The architecture is fully local, with no chat data leaving the user's Mac.
The Bottom Line
This is a smart, pragmatic hack for power users who hit rate limits or cost caps. While the 15% savings claim needs independent verification, the underlying math on cache pricing is undeniable. For developers working in long, intermittent sessions, Warmy turns a hidden infrastructure cost into a manageable, optimized workflow. Itβs a reminder that in the LLM era, the real money is often in the plumbing.