RepoOps
Open the app
06 / Cost

The hosted Cost page

The Cost page is the same page in the desktop app and on repoops.ai; its tabs are in the Cost guide. On repoops.ai it also draws the cards only the hosted workspace fills: Railway per project and service, Every vendor, Estimated, billed and invoiced, and Billed and measured. This guide covers those cards.

Last updated

Watch it

Transcript

The walkthrough is silent. These are its captions, in order. Every value it shows is illustrative.

  1. 0:00Railway per service, at the last seven days of usage
  2. 0:06Every vendor, month to date and last 30 days
  3. 0:12Estimate, provider bill and receipt, per month
  4. 0:18Billed beside measured, never added together
  5. 0:24Four cards only repoops.ai fills, on the Cost Overview

Estimated, billed and invoiced

Transcript

The walkthrough is silent. These are its captions, in order. Every value it shows is illustrative.

  1. 0:00One row per provider per month, the last six months
  2. 0:06Estimated is the month's daily usage pulls
  3. 0:12Billed is what the provider's own API reports
  4. 0:18Invoiced counts a receipt only from a checked sender
  5. 0:24Each row names its figure and the difference from the estimate
1

How to

A signed-in member of a team on repoops.ai. Vendor bills and invoices cover the whole workspace, so they read only for a member who sees every repository; Billed and measured reads the cases in your own repository scope.

For figures to appear, a connector for a provider bill, receipts forwarded to the workspace's address, Gmail connected for receipts, or a desktop bound to the team that publishes its cases.

  1. Open Cost in the repoops.ai sidebar.

    It opens the Cost page, /v2/cost.html. The old /team/costs and /team/llm-cost addresses send you there with their query strings. The tabs, Overview, Spikes, Budgets and caps, Cost per outcome and Cost of watching, are described in Cost. The cards below are on the Overview.

  2. Read Railway per project and service.

    Railway per project and service lists each Railway project with its services under it, each bar split into memory, CPU, egress, and volume with backups. The big figure is the monthly run rate at the last seven complete days' pace, beside the last 30 days, because a rising rate is what a period total hides. Railway reports usage rather than a bill, so RepoOps prices it at the published list rates and counts the usage of every replaced deployment. The service rows sum to the workspace total; a day stored before the split counts in the total only, and the card says how much.

  3. Read Every vendor.

    One line each for Railway, GitHub, Vercel, OpenRouter, Anthropic, Stripe fees and Apollo.io: month to date and the last 30 days. A vendor read with more than one key, or with a key that names a site, lists a line per site under its total. A vendor RepoOps cannot read says Not readable with the reason and the next step, never $0: an Anthropic Admin key from an organization with no cost and no active API key is not the organization that pays, and OpenRouter's activity needs a management key, though its balance still shows, with a warning under $50. GitHub splits by repository and SKU and lists any repository whose GitHub-hosted spend passed $20 in a day, with the minutes. Apollo.io has no spend API: an owner or admin enters the month's amount from its Plan & Billing page, and the line says who entered it and when.

  4. Read Estimated, billed and invoiced.

    One row per provider per month, the last six months, newest first. Estimated is the month's daily usage pulls. Billed is what the provider's own API reports: Railway's invoices, GitHub's monthly bill per product, and Vercel's charges once the month has closed. An organization's GitHub bill is read with the RepoOps GitHub App when the App is installed on that organization with Administration read; a personal account's bill is read with the GitHub connector's own token, which needs Plan read, because GitHub gives the App no way to read it. Invoiced is a receipt you forwarded to the workspace's address or that a connected Gmail account holds, counted only when the mail server checked the sender and it came from the provider's own domain, from an owner's or admin's own address, or from Stripe within 25% of the month's bill or estimate. Each row names which of the three is its figure, the invoiced one first, and shows that figure minus the estimate. Under the table: the forwarding address, and Connect Gmail for receipts (owner or admin), which reads only receipt and invoice mail from billing senders, read-only, and keeps only receipts a parser reads. Once Gmail is connected, Pull receipts now reads it at once and Disconnect Gmail stops the read; receipts already filed stay.

  5. Read Billed and measured.

    Across the newest 200 cases in your repository scope: Provider billed is the provider bills a desktop attached to those cases, each bill counted once; Measured usage is the cost receipts on them. The two cover different things, so they are never summed and no difference is computed. Beside them, Estimates (never invoice evidence), Unknown rate (receipts counted but not priced), Unallocated (measured receipts that name no spend purpose) and Costly failed attempts. A figure nothing reports reads not reported, never /usr/bin/bash, and other currencies are listed by their own code, never converted. Bills, Measured receipts and the other lists open to show each record. The site picker does not narrow this card.

  6. Set a budget alert (owner or admin).

    Open /team/overview at Budget alerts. Set a daily, weekly and monthly limit (blank for no limit), an optional chat incoming webhook for Slack, Discord or Teams, and whether to email owners and admins, then press Save budget. The budget that holds agent actions is set on Cost's Budgets and caps tab, described in Cost.

2

Use cases

Finance asks whether last month's invoices match

Situation
A team owner needs to show what each provider billed against what RepoOps measured.
You do
Open the Overview and read Estimated, billed and invoiced for last month.
You see
One row per provider with the estimate, the provider's own bill and the receipt, the figure named and its difference from the estimate. A receipt that did not pass the sender rule is listed as not counted, never added.

The Railway bill keeps climbing

Situation
Railway's month to date is well above last month's pace.
You do
Read Railway per project and service, then the service whose bar grew.
You see
The run rate at the last week's pace beside the 30-day figure, split into memory, CPU, egress and volume, so the service and the resource behind the rise are named.
3

Expected outcome

WorkedRailway per project and service, Every vendor, Estimated, billed and invoiced, and Billed and measured on the Overview, beside the tabs the Cost guide describes.
WorkedAfter an owner saves a budget alert, a breach notifies once a period on chat or by email.
Did not workA vendor line reads Not readable.

Next step: Its reason and next step sit beside it: usually a key from the wrong organization or one without billing read. Replace the key on Connectors; the next daily pull reads it.

Did not workEnter amount answers that only an owner or admin can enter a vendor's cost.

Next step: Ask an owner or admin to enter Apollo.io's monthly amount.

Did not workThe cards say vendor bills or invoices show only to members who see every repository.

Next step: They cover the whole workspace. An owner can widen your access.

Did not workThe desktop app's Cost page says to open repoops.ai for these cards.

Next step: The connectors and the invoice mailbox run for the hosted workspace, so only repoops.ai holds them.

Did not workA row says 1 receipt not counted.

Next step: The receipt's sender was not checked, or it came from neither the provider's own domain nor an owner's or admin's address, or it is a Stripe receipt more than 25% away from the month's bill or estimate (Stripe sends receipts for any merchant). An owner or admin can forward it from their own address.

Did not workConnect Gmail for receipts is disabled.

Next step: Its reason sits under it: only an owner or admin can connect, or Gmail connect is not set up on this deployment yet.

Did not workBilled and measured says your team access covers no repository.

Next step: No case cost is shown to a member whose scope covers nothing. Ask an owner or admin for access.

Did not workProvider billed reads not reported.

Next step: No desktop has attached a provider bill to a case in your scope. Billing Guard on the desktop reads the bill, where the key stays, and attaches it.

Did not workInvoices did not load.

Next step: The card says it is not a zero bill. Reload to try again.

4

What else to consider

Bills are not added to measured spend

Vendor lines are billed amounts before credits and tax. Railway and Neon report usage rather than a bill, so RepoOps prices it at their published list rates and the card says so. A budget alert notifies once a period; it never caps spend.

What the Gmail connect reads

Gmail is connected read-only and searched only for mail from provider billing senders whose subject says receipt or invoice, at most 100 messages a pull, once a day. A message is kept only when a parser reads a provider, month and amount from it; anything else is never stored. Disconnect it under the table at any time; receipts already filed stay.

The spike rule

A day is a spike when it is at least 2.5 times the median of the 14 quiet days before it and at least 5 dollars above it. Each episode says what spend read once it ended.

The API

GET /api/costs returns the team's spend rollup. windowDays takes 1 to 365 (default 30), topN 1 to 50 (default 10), and format=csv returns it as a day-grain file.

The vendor cost table in the brain

The Costs reference tab on the desktop is a different thing: .claude/brain/costs.md, a hand-edited table of what the project pays each vendor, with a scale ceiling and a mitigation where one applies. It is only as current as the last time someone read it against the bill.