IntentiAI

Check your AI features before the bill does

The IntentiAI cost audit reads your repository, finds every call to a language model, and flags what makes the bill grow or the feature break: loops with no limit, endpoints anyone can call with no spending cap, retired and oversized models, and answers you pay for twice. It is free, open source, and runs on your machine.

npx intentiai audit

Checks every AI call in the repository. To check only the AI calls in the change you are about to push, run npx intentiai: it runs the same rules as part of the review. Node 20 or later and a free account. No API key. See a sample report.

What it looks for

Every rule describes a pattern that has cost real teams money, and most cite the research behind them. Each one has its own page with an example and the fix.

How it works

  1. Scan. npx intentiai audit finds each model call and the code around it: loops, retries, schedules, request handlers, guards.
  2. Price. Each finding is estimated against current public pricing for the model it calls, and a cheaper model is suggested where one fits. A problem with no ceiling gets a cost per request, never a monthly total.
  3. Second look. If Claude Code, Codex or Gemini CLI is installed, it reviews every AI call read-only: what triggers it, who can reach it, the model it really uses, and what limits it. --no-agent skips this.
  4. Report. You get a plain summary in the terminal and the full report in your account: what could happen, how to fix it, and a fix prompt for every issue. The upload is findings and the AI’s notes, no lines of code. Add --local to upload nothing.

How it stays honest

It is a static audit, so it cannot see real traffic, and a clean result is not a guarantee. Every dollar figure is a rough estimate with its assumptions next to it. The rules are tuned to be right when they fire rather than to fire often, and languages it cannot read are named in the report instead of silently skipped.

Questions

How does the cost audit find model calls?

It reads your source statically. It recognises the official provider SDKs, LangChain, LiteLLM, the Vercel AI SDK, Spring AI, LangChain4j, LangChainGo and plain HTTP calls to provider endpoints, then checks each call site against 22 rules.

Do I need an API key or production traffic?

No. It runs on your machine against the code in your repository, before anything is deployed. Estimates use public pricing, not your usage data. You need only a free IntentiAI account, which keeps each audit in your project's history.

Does it use AI?

Yes, your own. The rules run first, with no model. Then, when Claude Code, Codex or Gemini CLI is installed and you run it in a terminal, that agent reviews the result read-only. On a subscription this costs nothing extra; with an API key it uses your API credits. For every AI call it says what triggers it, who can reach it, which model it really uses and what limits it, and it confirms or rules out each finding. Add --no-agent for the rules alone.

What does it upload?

Its findings and the AI review's written notes, to your account, in the same project as your other runs. The upload holds no files and no lines of your code; an issue's text may name a function, a file or a setting. --private replaces those names with made-up ones before upload, and --local uploads nothing. The AI review itself runs in your own coding agent, which sends code to its provider (Anthropic, OpenAI or Google) under your account.

Which languages does it support?

TypeScript, JavaScript and Python get every rule with a real parser. Go, Java, Ruby and PHP get every call site and the 8 rules that need no deeper analysis. Other languages are counted and named as not scanned.

How is this different from LLM observability tools?

Observability tools such as Langfuse or Helicone measure traffic after you deploy. The cost audit reads code before you deploy, so it finds a loop with no limit before it runs. The two work well together.

LLM cost audit: find what inflates your AI API bill | IntentiAI