Own Weights

Free AI cost audit: every LLM call in your code

A free, open-source tool that finds every AI API call in your repo, estimates the spend and flags waste. It runs on your machine and uploads nothing.

How do you run the free AI cost audit?

Open a terminal inside your repository and run:

curl -fsSL https://ownweights.com/audit | sh

It saves ownweights-audit.pdf in the same folder: every AI call it found, the models they use, an estimated monthly cost, and the checks below. The script checks the tool’s checksum before running it. Read the source on GitHub.

What does the AI cost audit check?

CheckWhy it matters
Models being retiredcalls that will stop working on the provider’s retirement date
Long repeated prompts with no prompt cachingcached input costs about a tenth
Calls with no limit on output lengthone bad request can cost far more than usual
API keys written in the codereported by file and line, never printed
Model output parsed as JSON without structured-output modefree-text JSON breaks now and then
AI calls with no timeoutSDK defaults can wait up to 10 minutes
AI calls inside loopsone request can fan out into many paid calls
High reasoning effort or large thinking budgetsreasoning tokens are billed as output
No second provider or model if the first failsone outage stops the feature
No tests that score AI outputnobody can prove a cheaper model is safe
Prompts sent to an outside logging serviceyour users’ text is stored there too
Model names written in many placesswitching models means editing every file

What can’t the audit see?

Code shows where AI is called, not how often. The cost figures are what-ifs until you compare them with a real invoice or usage export, and calls made through a framework wrapper may not be detected. That is what the free call is for: we go through your invoices with you and find the one task where a trained model pays off. Read what an AI cost audit finds and how to cut your LLM API bill.

Questions

Does the audit upload my code?

No. It reads your code as plain text on your machine, blocks network access while it reads, and saves the report as a PDF in the folder you ran it from.

What languages does it read?

Python is parsed properly. TypeScript, JavaScript and Go are matched with patterns. Example, test, docs and git-ignored folders are left out of the numbers.

Is it really free?

Yes. It is open source under the MIT license, with no sign-up and no account. You can read every line before you run it.