Show HN: Frugon – Find which LLM calls a cheaper model could handle (local, MIT)
TL;DR Highlight
Frugon analyzes your LLM logs locally and shows which calls a cheaper model could handle.
Who Should Read
A backend developer worried about a growing LLM API bill who wants to know which calls can move to a cheaper model
Core Mechanics
- Feed it logs, get savings estimates
- Run frugon analyze ./logs.jsonl on OpenAI-format request/response JSONL logs.
- Cost analysis uses local tokenizers and pricing tables, with no LLM calls or network.
- Move easy calls, keep hard ones
- In the demo with baseline gpt-5.5 and 56,100 calls, spend drops from $549.46 to $343.91 per month, saving $205.55 (37.4%).
- 36,100 calls (64.4%) route to deepseek-v4-flash while 10,000 stay on gpt-5.5.
- Capture logs via proxy or write them yourself
- frugon capture is a local HTTP proxy that forwards calls unchanged and saves each as a JSONL line.
- If you already log, write model, request, response, usage and timestamp; only model is required.
- The default analysis is an offline estimate
- It never sees a candidate model's real output and uses an easy/hard split heuristic.
- Quality tiers come from LMArena and savings bands from RouteLLM, so they are not guarantees for your prompts.
- -measure and --judge check real quality
- --measure samples your traffic through candidates with your own API keys; --judge compares answers pairwise in anonymized, random A/B order.
- Sampling can miss rare cases, so raise --samples and re-run on fresh samples.
- The README states its limits openly
- Each prompt is answered once, so run-to-run variance isn't measured.
- Retries and human review costs are not in the logs and are not counted.
Community Reactions
- Hidden second-order costs
- One commenter noted a cheaper model can look fine per request, but one weak answer may trigger another call or human review.
- They saw this as the hardest cost to capture.
- Interest in automatic routing
- A commenter asked whether a gateway/router already exists that analyzes input tokens and picks a cheap model or something like GPT 5.6 as needed.
- Question about --judge
- A commenter asked how --judge decides a tie or acceptable response, and whether it uses a specific LLM-as-a-judge template.
- Local models and practicality
- One commenter said the next step is analyzing what a local model can handle, with response time as a judging dimension.
- Others were skeptical about how to operationalize this, or wanted comparisons with other providers' models.
How to Apply
- Run the demo first
- Run uvx frugon analyze --demo in a terminal to see the report format.
- Read the Route/Keep split and the 'Quality is not verified' warning.
- Capture and analyze your own calls
- Start frugon capture --out ./logs.jsonl and set your app's OPENAI_BASE_URL to http://127.0.0.1:8787 to collect a day of calls.
- Run frugon analyze ./logs.jsonl --candidates with your chosen models to compare monthly savings.
- Validate with --measure --judge before switching
- Install 'frugon[measure]' and run --measure --judge to check quality on your own prompts.
- If the judge overlaps with a scored model, set an independent one via --judge-model.
- Share the report in review
- Add --report savings.html (or .md) and attach it to a PR or budget review.
- Re-run with a larger --samples and include that result too.
Try It
# Paste into a terminal (uses the CLI from the post; needs uv)
uvx frugon analyze --demo
# Analyze your own logs (create them first with frugon capture)
frugon capture --out ./logs.jsonl &
# Call your app with OPENAI_BASE_URL=http://127.0.0.1:8787, then:
frugon analyze ./logs.jsonl --report savings.html
# Check quality too (needs OPENAI_API_KEY etc.)
uv tool install 'frugon[measure]'
frugon analyze ./logs.jsonl --measure --judgeTerminology
Related Papers
A Beginner's Guide to Local AI with Inkling, Qwen, and Unsloth
Install Unsloth Desktop, load a quantized Qwen model, and share a private ChatGPT-like AI on your home LAN.
Muru – AI-assisted Rust server for Python apps by mod_WSGI's creator
mod_wsgi's creator is building Muru, an AI-assisted Rust ASGI/WSGI server, documenting it in public
87% of the Anthropic power will come from gas and 11% from coal in 2028
Analysis of Anthropic's contracted data centers: 87% gas, 11% coal power in 2028
Anthropic’s Nasdaq debut
Anthropic listed on Nasdaq and closed its first day below its opening price.
OpenAI still has a WebRTC Problem
WebRTC drops late audio, hurting voice AI; MoQ retransmits and buffers instead
Gemini 4 Neon
Gemini 4 Neon cuts cost per task 32% versus Carbon, at $3 input and $15 output per million tokens
AI is killing All About Berlin
After Google AI Overviews, a Berlin guide site lost 70-75% of its traffic.
Not Everything Needs an LLM
PostHog used small decision models to skip 98.7% of expensive LLM calls