RepoOps
Open the app
06 / Cost

See what your AI cost across every provider

Provider spend puts metered LLM spend in one ledger from two lenses RepoOps never adds together: what each connected provider says it billed your organization, and what this install captured locally. Every provider carries a precision band, and one you have not connected reads not connected, never $0.00.

Last updated

Watch it

30.0 s, captions on. Narration: Microsoft Zira Desktop (provisional voice; an approved narration source is pending).Transcript
Read the narration
  1. 0:00 Six providers, six dashboards.
  2. 0:03 So someone adds them up and guesses the total.
  3. 0:06 RepoOps shows two numbers instead of one.
  4. 0:09 The bill, and what this machine saw.
  5. 0:13 Each provider carries a precision band: per-token, day-level, or per-call.
  6. 0:18 A provider you never connected reads not connected, never zero dollars.
  7. 0:23 Read the number and its band.
  8. 0:25 Billing Guard is where you dispute it.

Synthetic example. Read the guide

1

How to

The desktop app running. The captured lens needs no key.

For the reported lens, at least one of: an Anthropic Admin key, an OpenAI admin key, the three AWS variables for Bedrock, or the four AZURE variables for Azure OpenAI.

  1. Open Cost, then the Overview tab.

    Provider spend is a card on the Overview, read when the tab first shows. Pick a repository above it to narrow the captured lens, or leave All tracked repositories. An old link to the Provider spend page opens here with its repository.

  2. Connect Anthropic or OpenAI from Billing Guard.

    Billing Guard carries the paste boxes. RepoOps checks a key with the provider before storing it in the data folder behind owner-only file permissions. A key in this machine's environment always wins over a stored one.

  3. Set Bedrock and Azure credentials in the data directory's .env.

    Bedrock needs AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY and AWS_REGION, with Cost Explorer read permission. Azure needs AZURE_TENANT_ID, AZURE_CLIENT_ID, AZURE_CLIENT_SECRET and AZURE_SUBSCRIPTION_ID. Miss one and the provider stays not connected.

  4. Read the two lens tiles.

    Provider-reported is the bill your whole organization was charged. Locally-captured sums the model-call rows this install wrote into each tracked repository's .claude/brain/ai-calls day files. The line under both says the two totals are never added together.

  5. Read the provider table.

    Each row gives a connection state, a precision band (per-token for Anthropic and OpenAI, day-level for Bedrock and Azure, per-call for OpenRouter and Cloudflare AI Gateway), the reported cost and the captured cost with a call count. OpenRouter and Cloudflare AI Gateway publish no cost API, so they read captured only.

  6. Read By key and workspace.

    The provider's own usage report grouped by API key and workspace (Anthropic) or API key and project (OpenAI), priced through the Billing Guard rate card, so each figure is an estimate at organization scope. Name keys in the repository's costReconciliation block; until then a key shows by its last four characters.

  7. Open Day by day, then read the notes.

    Every line carries its lens and band. The notes under it name each provider that is not connected and say what connecting it would add. The card asks for a trailing 30 days; for another span call GET /api/metered-ledger with from and to as YYYY-MM-DD.

2

Use cases

Month end, and someone wants one number

Situation
Anthropic and OpenAI are connected, Bedrock and Azure are not, and brain embeddings run through OpenRouter.
You do
Read the two lens tiles, then the provider table, then the notes.
You see
You can state what the connected providers billed, what this install attributed, and which providers the first figure leaves out. You cannot state one total, and the page will not let you pretend otherwise.

A provider you thought was connected

Situation
The Azure credentials were rotated, and only three of the four variables were set again.
You do
Read the Azure OpenAI row, then the notes.
You see
The row reads not connected, and a note says no provider-reported cost is available for Azure OpenAI. Nothing renders as $0.00, so the reported total visibly excludes Azure.
3

Expected outcome

WorkedTwo lens tiles with a dollar total each and a line saying they are never added together.
WorkedSix provider rows with a connection state and a precision band, including four reading not connected on a fresh install.
WorkedA day-by-day table whose Bedrock and Azure lines carry no model name, because their cost APIs return day totals.
Did not workEvery provider row reads not connected.

Next step: No key resolves on this machine. Connect one on Billing Guard, or set the AWS or AZURE variables and restart.

Did not workA connected row reads no data.

Next step: The provider reported no cost in the window. Widen it with from and to.

Did not workThe card says the provider pulls are still running.

Next step: The first read ran past its 2-second budget. The card asks again every 5 seconds for a minute; after that, pick the repository again.

Did not workA red line says a provider pull did not complete.

Next step: Fix that credential or permission and refresh. The rest of the ledger still rendered.

Did not workThe reported total differs from Billing Guard's.

Next step: Billing Guard narrows Anthropic to REPOOPS_ANTHROPIC_ADMIN_WORKSPACE_ID and this page does not.

4

What else to consider

It reconciles nothing

The card is a display. Recomputing what a day should have cost and arguing with the invoice is Billing Guard's job. OpenRouter and Cloudflare AI Gateway figures count forward from the first call RepoOps saw; on this install, OpenRouter captures brain embeddings when REPOOPS_BRAIN_EMBED_PROVIDER is openrouter. A captured row may be a rate-card estimate, but the card draws no marker for it.

Repository scope

Picking a repository narrows the captured lens only. The reported lens is the organization's bill and has no repository dimension, and the first note under the card says so.

What the tool vendors say your team used

Some tools report usage only through their vendor's admin API. With CURSOR_ADMIN_KEY set, RepoOps pulls per-developer daily Cursor usage for the last 30 days; with COPILOT_METRICS_TOKEN and COPILOT_METRICS_ORG set, it pulls GitHub Copilot seats and the organization's daily metrics (Copilot reports per-developer presence but only organization-wide counts). Pulls run every 12 hours (REPOOPS_VENDOR_USAGE_PULL_HOURS), or now through POST /api/vendor-usage/pull, into a local store of daily snapshots kept 90 days. The rows show as Vendor-reported usage on FleetView and as Vendor-reported tool usage on the AI share tab, labelled as their own source. They never change an AI-share percentage or mark a pull request as AI-authored. With no key, nothing is sent.

Hosted, data and egress

The keys and captured rows are per machine, so the ledger runs only in the desktop app; repoops.ai/team/metered-spend opens the Cost page. RepoOps makes no model call for this card; the only outbound requests are read-only cost and usage pulls to the providers you connected, held for five minutes (REPOOPS_METERED_LEDGER_TTL_MS). No route deletes a captured row; deleting an ai-calls day file is the only way to remove its spend.