erabot.ai
ProductPricingCase studiesEvalBlogDocs
Book a demo

Ship the cheaper model. We prove it holds before you merge.

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.

Book a demo
Runs in your environment under your keys — erabot never sees your code A swap stays a candidate until the evidence clears it — nothing is applied automatically
−97% per-call cost on the tasks a cheaper model can holdshadow-validated — we count only savings that survive testing

From the erabot validation eval — every number traces to a signed proof artifact.

app.erabot.ai/audit/acme-agent
acme-agentGrade C
audited just now
$4,820
Monthly spend
$1,610
Recoverable
12
Findings
47
Call sites
Recoverable spend by category
Model choice
$1,900
Context size
$980
Caching
$720
Batching
$520
Other
$700
model
api/summarize.py:31
gpt-4o → gpt-4o-mini
SAFE$180/mo
caching
rag/retrieve.py:88
prompt not cached
$95/mo
batching
jobs/backfill.py:12
no batching
$60/mo

No spam. Only launch updates and cost optimization tips.

You’re not stuck because you can’t find the waste

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.

Model switching, verified — not guessed

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:

  1. 1Classify what the call site actually does — classify, extract, route, summarise, generate.
  2. 2Replay representative inputs through both the current model and the candidate.
  3. 3Score it objectively wherever possible: exact match, JSON schema, or executing the code — rather than asking one model to grade another.
  4. 4Accept only if the candidate is statistically non-inferior, not merely close enough.

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.

simulation · title generationreplayed 20 requests
current — gpt-4obaseline
gpt-4o-mini · blanket swap
quality 90% — below the bar
blocked
cheap-first routing
−25% cost · quality 100%
shipped

The unsafe downgrade is blocked and downgraded to a routing fix that keeps quality at 100%.

We publish the number that survives verification

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.

20–55%
where credible published savings land for real source code
43%
of a naive savings estimate survived shadow-testing in our own eval
every one
assumption labelled, so you can see measured vs inferred

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.

520
repos in the detection eval
3,049
call sites scored
15
AI products audited
0.80
detection precision

Live Demo

See erabot in action

Watch how we find per-request savings from 25 lines of code.

erabot scan
api_client.py×
config.yaml×
1import openai
2 
3client = openai.OpenAI()
4 
5def analyze_document(doc: str) → dict:
6 # Full document sent as context every call
7 response = client.chat.completions.create(
8 model="gpt-4o",
9 messages=[
10 {"role": "system", "content": SYSTEM_PROMPT},
11 {"role": "user", "content": doc} # 12K tokens avg
12 ],
13 temperature=0.7,
14 )
15 return response.choices[0].message.content
16 
17def summarize_batch(documents: list[str]):
18 results = []
19 for doc in documents:
20 # No caching — identical docs re-analyzed
21 results.append(analyze_document(doc))
22 return results
scan results

How It Works

From codebase to savings in minutes

Four steps. Eight AI agents. Zero setup. Just connect and go.

Step 01

Connect

Run the erabot CLI in your repo, or wire in the GitHub Action. Detects 60 models across 10 providers. Zero config.

Learn more
Step 02

Analysis

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.

Learn more
Step 03

Optimize

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.

Learn more
Step 04

Monitor

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.

Learn more
Your code
Detect
ASTidiomsLLM backstop
Price
Fix + verify
Report + patches

Open-weight migration

Swap frontier models for open weights — with proof it won't break

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.

3/5
production call sites had a provably-safe open-weight win
−97%
per-call cost where a cheaper model holds
0
quality regressions shipped — every swap is shadow-tested first
We publish only savings that survive shadow-validation — each traced to a signed proof artifact Move workloads off proprietary APIs onto open or self-hosted models — evidence first, switch second

Beyond single calls

Optimize agents, loops, and skills — not just prompts

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.

Agents

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.

Loops

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.

Skills & tools

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

Measured on real codebases

0.80

Detection precision, scored against independent labels on 520 repos

0.73

Full-stack recall — four detection layers, measured on 3,049 labeled call sites

1,086

LLM call sites audited across 15 real open-source AI products

24.7%

Measured cost cut at 100% output quality (escalation routing, replayed traffic)

Output Formats

Three ways to ship fixes

Every scan produces three deliverables — one for each audience.

PDF Report

For stakeholders

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.

report.md

For humans

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.

agent-instructions.md

For AI coding agents

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.
Claude Code plugin

Run erabot in Claude Code

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.

$ claude plugin marketplace add erabot-ai/erabot-plugin
$ claude plugin install erabot@erabot-marketplace
/erabot:scan

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.

View the plugin on GitHubGet a key for the verified audit

Integrations

Works with the tools you already use

Drop erabot.ai into any AI stack — zero migration required.

OpenAIAnthropicGoogle CloudMistralCohereGroqOpenAIAnthropicGoogle CloudMistralCohereGroqOpenAIAnthropicGoogle CloudMistralCohereGroq
LangChainOllamaVercel AIHugging FaceTogetherCursorLangChainOllamaVercel AIHugging FaceTogetherCursorLangChainOllamaVercel AIHugging FaceTogetherCursor

Pricing

Start free. Scale as you save.

No hidden fees. Cancel anytime. Your savings pay for the plan.

Pro

For individual developers serious about costs

$99/mo
  • Unlimited scans
  • 50 files per scan
  • Full MD + PDF reports
  • GitHub repo scanning
  • One-click PR button
  • Email support
Book a demo
Most Popular

Team

For engineering teams optimizing at scale

$499/mo
  • Everything in Pro
  • 200 files per scan
  • 5 seats included
  • Team cost dashboard
  • Shared scan history
  • Priority support
Book a demo

Enterprise

For teams running $10K+/mo on LLM APIs

Custom
  • Founder-led 30-min cost audit
  • Everything in Team
  • 500+ files per scan
  • Unlimited members
  • SSO / SAML
  • Custom DPA
  • SLA guarantee
Book a demo

Not sure which tier? Book a demo

View full pricing comparison →

FAQ

Frequently asked questions

Your next LLM cost reduction starts today.

Book a demo and we’ll run erabot against your codebase live — see your first savings in the call.

EB
erabot.ai

Scan any codebase. See exactly what you spend on AI. Get one-click fixes.

No spam. Only launch updates and cost optimization tips.

Product

  • Product
  • CLI
  • Pricing
  • Changelog
  • Docs

Resources

  • Example audit
  • Blog
  • Case studies
  • Eval

Company

  • Security
  • Privacy
  • Terms
  • Support

© 2026 erabot.ai. All rights reserved.