Skip to content

Repository files navigation

Lower My AI Bill

Find the Claude routes costing you money with a local code scan.

MIT licensed Zero runtime dependencies Built for Claude Code

Run it

From the repository you want to audit:

curl -fsSL https://raw.githubusercontent.com/UnderstudyLabs/lowermyaibill/main/install.sh | bash

The installer adds the LMAB plugin for Claude Code and starts an audit in the current repository. The scan and report stay local under .lmab/.

What you get

Static scan Ranked opportunities Local report
Groups Anthropic call sites into route cards with model, cache, token, thinking, retry, batch, tool, and output facts. Prioritizes the code signals most likely to reduce Anthropic spend and cites their file and line. Writes a portable HTML report, deterministic scan ledger, and static share card under .lmab/.

Code only

Code can show where to look. It cannot prove a savings percentage.

LMAB reads repository files. It does not search email, Drive, billing dashboards, connected integrations, telemetry, or traces. It does not ask for provider credentials.

Every recommendation is a static code finding that requires measurement before anyone claims realized savings. The audit does not upload source, edit application code, or require an Understudy account. Claude Code itself uses your existing Claude connection.

Optional follow-up

At the end of a generated report, a person may optionally enter their name, work email, and company to request help acting on the audit. Submitting the form calls POST https://api.understudylabs.com/v1/lmab/leads; it requires no API key. The report does not send the repository name, source code, scan output, or findings. The form requires an explicit consent check before it sends anything.

Files it writes

Artifact Purpose
.lmab/report.html Portable audit report you can open locally
.lmab/scan.json Deterministic code-scan findings
.lmab/share-card.svg Static card for sharing the result

.lmab/ is ignored by the installer so audit artifacts do not land in commits by accident.

Help us test it

We are looking for a small first group of teams with Anthropic code in production. Run LMAB on one repository, inspect the report, and tell us what was useful, wrong, or confusing.

Do not attach source code, prompts, account identifiers, or the generated .lmab/ directory to a public issue. A description of the finding is enough.

Uninstall

curl -fsSL https://raw.githubusercontent.com/UnderstudyLabs/lowermyaibill/main/install.sh | bash -s -- --uninstall
Local development
node bin/lmab audit /path/to/repo
npm test
claude plugin validate .

MIT licensed. Anthropic and Claude are trademarks of their respective owners. This independent project is not affiliated with or endorsed by Anthropic.

About

Find the expensive Claude routes in your codebase and get an evidence-backed plan to lower your AI bill.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages