erabot finds the LLM calls in your codebase paying frontier prices for trivial work, shadow-tests the cheaper swap against your real traffic, and hands you the evidence it held. You cut the API bill on proof — not a leaderboard guess. Runs in your own environment under your own keys, so your source never leaves.
From the erabot validation eval — every number traces to a signed proof artifact.
You can probably guess where it is. The classifier running on a frontier model. The loop re-sending the same context every turn. The retrieval stuffing forty chunks where five would do.
You haven’t changed it because a cheaper model that’s ninety percent as good is a bargain on one task and a quiet disaster on another — and you won’t learn which from eyeballing five outputs. You’ll learn it from a customer.
So the blocker was never discovery. It’s permission to act.
That’s what erabot produces: evidence, per call site, that the cheaper swap holds — the kind you can attach to a pull request and defend in review.
The biggest savings come from running a task on a cheaper model — but get it wrong and you ship a quality regression nobody notices for weeks. erabot never recommends a downgrade on a guess. It shadow-tests it first:
A swap stays a candidate until the evidence clears it. We tried an LLM judge early on and it flip-flopped; execution didn’t. Swaps that fail are shown with their measured quality — never applied quietly.
The unsafe downgrade is blocked and downgraded to a routing fix that keeps quality at 100%.
Every tool in this space advertises ninety percent. Read the fine print and those savings are measured on JSON, logs, command output and tool schemas — not your source code. For real code, the credible published figures cluster nearer twenty to fifty-five percent.
We know, because we measured our own. A naive estimate of $66,000 a month in open-model savings came out at $28,500 a month once every swap was shadow-tested — roughly a forty-three percent realization, ranging from six to eighty-three percent depending on the task mix. It cut both ways: the naive check also wrongly rejected swaps that turned out to be safe.
You get the verified number, the range around it, and every assumption labelled. If you want a bigger number, there are plenty of tools that will happily give you one.
Realization figures are from the erabot validation eval. Competing savings ranges are as published by their own vendors and are not independently verified.
Live Demo
Watch how we find per-request savings from 25 lines of code.
How It Works
Four steps. Eight AI agents. Zero setup. Just connect and go.
Run the erabot CLI in your repo, or wire in the GitHub Action. Detects 60 models across 10 providers. Zero config.
Eight AI agents scan in parallel — Token Optimizer, Model Selector, Cache Analyzer, Architecture Reviewer, Cost Projector, Prompt Engineer, Batch Strategist, and Rate Limiter. AST parsing, token counting, and a RAG knowledge base surface every wasted token.
erabot shadow-verifies every fix — it applies the change in-memory and re-runs to confirm quality holds before you see it. You get three output formats: a branded PDF, a Claude Code-ingestible markdown report with code diffs, and git-apply patches.
Connect Helicone, Langfuse, or OpenTelemetry and estimates become measured spend. A CI cost-gate fails a PR when a diff would raise your bill, and realized savings are tracked as fixes land.
Open-weight migration
The biggest line on your bill is usually a frontier model doing work a cheaper open-weight model could do just as well. erabot replays your real traffic through open-weight candidates cheapest-first, verifies every call site objectively — executed code, structural checks, ground-truth accuracy — rewrites the prompt when a swap fails, and ships each migration as a signed, expiring proof. Nothing is downgraded on a guess.
Beyond single calls
Modern AI spend isn't one big call — it's agents looping, calling tools, and running skills. erabot finds the waste and the runaway risk hiding in that machinery.
Multi-step agents fan out call after call. erabot maps the orchestration and flags where an agent re-runs a frontier model on a step a cheaper rung would handle — so a single audit shrinks the whole chain, not just one prompt.
The pattern behind runaway bills and stuck agents is an LLM call inside an unbounded loop with no turn cap or spend ceiling. erabot detects those loops statically and proposes a bounded guard — shadow-verified so the cap never breaks the task.
Every tool or skill an agent can call is a cost surface. erabot surfaces oversized tool context, redundant skill invocations, and uncached repeat calls — the quiet waste that never shows up as a single expensive request.
Results
Detection precision, scored against independent labels on 520 repos
Full-stack recall — four detection layers, measured on 3,049 labeled call sites
LLM call sites audited across 15 real open-source AI products
Measured cost cut at 100% output quality (escalation routing, replayed traffic)
Output Formats
Every scan produces three deliverables — one for each audience.
Branded executive report with optimization grade, cost breakdown, and per-finding savings. Share with your CTO or finance team.
Download and share — no technical setup needed.Human-readable markdown with rounded savings, per-finding "What to consider" analysis, and no code diffs. Built for skimming and sharing.
Share with your team — human-readable cost analysis.Structured handoff for Claude Code, Cursor, and Copilot. Each finding includes architectural context, fix locus, and anti-patterns to avoid.
Point Claude Code at agent-instructions.md — structured handoff.Install the plugin and run /erabot:scan in any repo. Your agent finds where the code wastes money on LLM APIs — the wrong model for the job, prompts and tool schemas re-sent uncached in a loop, uncapped agent loops, oversized context — with an honest dollar estimate and the fix for each. It also triggers automatically when you ask about a high API bill.
Free, and nothing leaves your machine — the scan runs locally on your own agent. The same install also registers erabot’s hosted deep_audit tool: the verified audit that shadow-tests each cheaper-model swap against your real traffic and proves it holds quality before recommending it, with apply-ready diffs. Diagnose free, then upgrade to the verified fixes in the same tool.
Integrations
Drop erabot.ai into any AI stack — zero migration required.
Pricing
No hidden fees. Cancel anytime. Your savings pay for the plan.
For individual developers serious about costs
For engineering teams optimizing at scale
For teams running $10K+/mo on LLM APIs
Not sure which tier? Book a demo
View full pricing comparison →FAQ