RepoOps
Open the app
06 / Cost

Cost: what did this cost?

The Cost page answers what your sites and agents cost to build and run. It draws model and hosting spend by day, provider, site and agent, lists the spikes, holds the budgets and caps, prices each change that stuck, and shows what watching production costs. A figure the app does not read says so, never $0.

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 Cost stacks model and hosting spend, day by day, for every site.
  2. 0:06 The weekly check flags a Railway service up more than a fifth,
  3. 0:09 and names what grew.
  4. 0:13 Set a monthly budget under Budgets and caps.
  5. 0:16 At it, the desktop holds builds and validation runs.
  6. 0:20 Hosted budgets send an alert instead.
  7. 0:23 Cost per outcome prices each change that stuck:
  8. 0:26 thirty days with no revert.

Synthetic example. Read the guide

1

How to

The desktop app running with at least one tracked repository, or a seat on a team at repoops.ai.

On repoops.ai, a connected provider bill (hosting or model) for the totals. Without one, the totals read not measured and the agent table still fills.

  1. Open Cost in the sidebar.

    Both apps open the same page, /v2/cost.html. The desktop reads the Claude Code capture on this machine and prices it at list rates, one line per tracked repository. The hosted page reads each connected provider's bill per day, hosting and model, for a member who sees every repository.

  2. Set the scope.

    The scope bar narrows the page to one site; By site rows do the same when pressed. Provider bills carry no site, so under a site scope the page says the bills are not split by site, and the agent table narrows to that site.

  3. Read the Overview.

    The chart stacks models and hosting per day. Drag across it to compare those days with the ones before them. By provider, By site and By agent break the same spend down. Agent spend is never added to the totals, because a model bill already contains it. Findings about spend open their case in Remediation.

  4. Read what the tools report on repoops.ai.

    Once GitHub Copilot, Claude Code or Cursor is connected as a source, the What the tools report card sets each tool's own numbers beside RepoOps' estimate. Cursor's bill for the current billing cycle sits beside the Cursor sessions RepoOps priced since the cycle began, labelled billed and estimated. Anthropic's Claude Code estimate sits beside RepoOps' for the last 30 days, and Copilot shows active users and code accepted. A tool re-reads recent days, so the card keeps only the newest read of each day. When a tool refuses two pulls in a row with a 401, its row reads token expired and links to the connect steps in Connectors.

  5. Scan Vercel and Railway settings on the desktop.

    The Hosting settings that cost money card on Overview runs a read-only scan on demand. Pick Vercel and a tracked repository to read its Vercel folder (middleware with no matcher, short revalidate, image settings, the build machine tier, no Ignored Build Step, builds from both CI and Git), or pick Railway to read every project your Railway login can see (idle memory, services that could sleep, replicas, public database URLs, PR environments, unused volumes). Each finding shows its dollars a month or why it is not priced, its evidence and its fix. With no Vercel login or VERCEL_TOKEN the repository rules still run, unpriced; with no Railway login no Railway rule runs, and the card says so. The card names where the credential came from and never shows it. A Vercel finding whose fix is a file change has an Open a fix PR button: RepoOps reads the repository again, writes the smallest edit that clears it (a middleware matcher, revalidate raised to 60 seconds, a day of image cache, an ignoreCommand, or Git deployments off for the branches your CI deploys), opens a pull request on a new branch with the finding's evidence and dollars, and records it on the finding's case in Remediation. It never merges it. When the edit cannot be made safely, for example a file that does not parse or a setting already partly set, the button is disabled and says why. The build machine and every Railway finding are account settings, so their fix stays text to apply in the provider. The scan needs the repository and the login, so repoops.ai shows the card with the run disabled.

  6. Check Spikes.

    Each spike is a spend case opened or closed this month, drawn on the spend the page already read: a day in the case's window against a day in up to 7 days before it. The note names the rule the cases come from.

  7. Set a budget under Budgets and caps.

    On the desktop the form saves the monthly budget in force on this machine; at it, remediation builds, validation runs and spending actions wait. On repoops.ai an owner or admin saves the team's monthly budget, and the hourly sweep alerts at 100%. The caps card draws each fleet cap over the window it judges, the last 90 days; on the desktop each switch flips a cap between block and warn.

  8. Read the weekly run-rate check on the desktop.

    Under Budgets and caps, the Weekly run-rate check card lists each Railway service's last seven complete days, scaled to 30.4 days, beside the seven before. A service that rose more than 20%, and costs at least $5 a month in either week, is flagged with the resource that grew (memory, CPU, egress or volume) and a link to its metrics in Railway. A day the store lacks is named, never read as $0. Below it, each cost cut in docs/strategy/spend-savings.json shows the saving it promised beside the one measured seven days after its ship date: met, under for review, or under with a note due when it saved less than half. The desktop daemon reads Railway once a day when your Railway login or RAILWAY_API_TOKEN is set, so the card fills the day after you log in; repoops.ai shows Railway per service under Hosting and model spend instead.

  9. Read Cost per outcome.

    A change is one merged pull request, priced from the sessions its merge commit names. It stuck when it stood 30 days with no revert and no fix naming it. Each row is one agent in one repository; a group under the floor says not enough data.

  10. Read Cost of watching on repoops.ai.

    It shows the bytes the evidence ingest service took this month against the monthly cap, the drain lines on the team's Vercel bill and four guardrails. Evidence up to the plan's monthly cap is included in the plan, so the ingest line shows only the month's job logs past the daily budget, billed at $1 a GB, and the cap guardrail says how many GB are used and left. The desktop runs no ingest and says so.

2

Use cases

Why did spend jump on Tuesday?

Situation
The Overview chart shows one day well above the rest.
You do
Open Spikes, or drag across that day on the chart.
You see
A spike names its case, its window and the day it compares against. Open the case in Remediation to see the change and the session behind it.

Are agents worth what they cost?

Situation
Someone asks what a merged change from one agent costs.
You do
Open Cost per outcome.
You see
Each agent and repository reads its price per change that stuck, counted only over changes at least 30 days old, so a fresh merge cannot flatter the figure.
3

Expected outcome

WorkedA chart of models and hosting per day, with By provider, By site and By agent below it.
WorkedSpikes that each open a spend case.
WorkedA budget in force, with the hold or the alert the app applies at it.
Did not workHosting reads not read on the desktop.

Next step: The desktop reads no hosting bill. Connect the provider on repoops.ai, where the hosted page reads it.

Did not workThe totals read not measured on repoops.ai.

Next step: No provider bill is connected for the workspace, or your membership does not see every repository.

Did not workThe Weekly run-rate check says nothing is stored.

Next step: The daemon has not read Railway yet. Run railway login (or set RAILWAY_API_TOKEN) on this machine; the next daily read fills the last 15 days.

Did not workExport CSV is disabled.

Next step: Spend is not read into the page yet, so there is nothing to export.

Did not workEvery hosting scan finding reads not priced.

Next step: No Vercel credential was found, or the folder has no .vercel/project.json. Run vercel login or vercel link in that folder, or set VERCEL_TOKEN, and run the scan again.

Did not workOpen a fix PR says no credential is configured.

Next step: Set credential on the repository's entry to an env var holding a GitHub token for its remote, or to default to use this machine's gh login, then run the scan again.

Did not workA tool in What the tools report reads token expired.

Next step: Create a new token or admin key in that tool and give it to RepoOps as you did the first; Connectors lists the steps. The next pull reads again.

4

What else to consider

Budgets hold actions; they do not cap the provider

At the monthly budget the desktop holds agent actions that would spend, and hosted budgets alert. Neither stops a provider from billing, and neither has a percentage alert or a pause for sessions people start, so the form shows those controls disabled with the reason.

A monthly cap per person, and the models each group may use

The fleet caps take a person scope: one monthly number for everyone, and a number of their own for anyone you name, keyed by the git email each session records. The policy bundle takes a model allowlist per team, with a default for people in no listed team. Neither has a page yet: set the cap through POST /api/fleet/caps and the allowlist in the bundle. Both are off until you set them. Through a RepoOps gateway, a model the person may not use, or a person past their cap, is refused before the call is made. On the desktop RepoOps learns the model and the cost only after Claude Code records a turn, so it stops the next tool call instead and says who, how much and which month, or which model and what is allowed. Spend that cannot be priced never counts against the cap.

Spend evidence for R&D capitalization and the research credit

On the desktop, Cost, Cost per outcome has an R&D spend evidence card for your accountant: model spend and AI-assisted active hours per project, period and work type, with the count of sessions and merged pull requests behind each row. Pick by month, quarter or year, a year or the last 365 days, and one repository or all of them. It targets US rules, IRC Section 174 and the Section 41 research credit. It is evidence, not tax advice: RepoOps does not decide what qualifies, and the work type is how you tagged it. Each row's Tag the project select sets its project to development, maintenance or other, or clears it, and the rows are read again. To tag one merged pull request instead, press the row's Pull requests cited number: it lists those pull requests with their titles and merge dates, each with its own select. A pull request's tag wins over its project's for the sessions that fed it, so they can move to another row, and untagged work reads unclassified. A project is the repository's initiative, or the repository. The hours are time inside tracked assistant sessions, a lower bound and not a timesheet. Spend nothing priced reads not priced, never $0. Download CSV saves the same rows with each row's session ids and pull requests; after a read that timed out, the card says so and the download is off until a whole read. The same file is GET /api/rd-evidence?year=2026&period=quarter&format=csv, and format=json returns the rows.

The earlier Cost page and its tools

The earlier page stays at /llm-cost on the desktop, with the billed and measured figures, the cost case queue and the section's tools under All tools: Billing Guard, App LLM calls, Provider spend, CI spend, Spend efficiency and the others. Claude Code usage, with the 20 latest sessions and their cost, is a card further down the v2 Overview on the desktop (GET /api/cc-usage, 30 days). Under its Top tools, Repeated failing steps lists each session that ran the same command, or edited the same file, and got an error three or more times in a row with nothing changed between, with the tokens it spent after the second failure. The same finding counts toward Cap the run in Loop Economics. It reports and never stops a run. On repoops.ai the old /team/costs address opens this page, and the cards only repoops.ai fills (Railway per project and service, Every vendor, and Estimated, billed and invoiced) are described in the hosted Cost page.

Cost, egress and data

Reading the page makes no model call. The desktop prices its own capture and sends nothing. The hosted page reads the bills and counters already stored for the workspace.