Skip to content

Spend ​

Monitor → Spend shows what your coding agents cost, from two directions: what the gateway estimates from the requests it handled, and what providers say they billed. Harbor Pilot keeps every kind of cost in its own column and never adds different kinds together. An estimate plus a bill plus a subscription fee is not a meaningful number, so you will not find one here.

Spend overview with billed by providers, through Harbor Pilot, not through Harbor Pilot, subscription fees and tokens tiles, a daily cost chart stacked by account, and a breakdown tableSpend overview with billed by providers, through Harbor Pilot, not through Harbor Pilot, subscription fees and tokens tiles, a daily cost chart stacked by account, and a breakdown table
Spend overview for the last 30 days

Pick the range at the top right: 24h, 7d, 30d or 90d. + Add budget opens the budget dialog. One-time budgets show what is left instead of a forecast.

The kinds of cost ​

KindWhere it comes fromIs it money you pay?
Estimated costComputed by the gateway from token counts and the prices configured on the providerAn estimate of it
Billed costReported by the provider's billing API, through quota trackingYes, as the provider reports it
Subscription valueSubscription usage priced at public list prices, for comparisonNo: not a charge or an invoice
Subscription feesThe fixed fees you entered for each subscription, prorated to the rangeYes, but not a usage charge
AllocationSubscription fees split across the clients and projects that used themA share of the fees above
No costNo price is configured for the modelUnknown

Subscription value is how you compare "what this Claude Max plan did for us" with "what the same tokens would have cost on the API". It is never added to the estimated or billed figures.

Overview ​

The tiles change with what Harbor Pilot knows:

TileShownWhat it is
Billed by providersWhen at least one account's quota tracking reports billingWhat those providers charged, including usage that did not go through Harbor Pilot
Through Harbor PilotAlways (named Estimated cost when there is no billing data)Estimated from gateway requests
Not through Harbor PilotWith billing dataBilled by providers minus the gateway estimate: usually other tools or keys using the same accounts
Subscription feesWhen you have entered feesProrated to the range
TokensAlwaysInput and output tokens

The chart shows Daily cost (hourly for 24 hours, weekly for 90 days), switchable between Cost and Tokens, and stacked by the grouping you pick for the breakdown below it: Account, Client, Model or Project. The breakdown lists each group's requests, tokens in and out, estimated cost and share. Click a row to open its requests.

Per run and by reference ​

Requests made with a token that carries trusted references, such as an orchestrator's run token, can be split and narrowed by them:

  • Group by → Run lists one row per run (the spaceman.run reference), each with its own requests, tokens, cost and share. Reference… groups by any other key: type or pick it, for example spaceman.task. Usage without the key is one row, such as No run. Rows are listed by value, 50 at a time; Load more adds the next ones. The chart shows the whole range unsplit.
  • Filter by reference narrows the page to requests that carry a reference, for example Run: run_42. Add up to four to require all of them. The tiles become Estimated cost, Requests and Tokens for the matching requests, and the chart and the breakdown cover only them. Provider billing, subscription fees and Provider vs gateway can't be narrowed this way, so they are hidden while a filter is on.

Both are part of the page address, so /usage?group=ref:spaceman.run is a link to per-run spend. A run's row opens that run's requests. Only trusted references count: hints a tool sends in headers never move usage between runs. See Agent orchestrators and the API.

Provider vs gateway ​

The Provider vs gateway section compares, per account, the input tokens a provider reported with the ones the gateway saw. When a provider reports far more than went through Harbor Pilot, it says so plainly, for example:

Providers reported 19.3M input tokens the gateway never saw. Usage may be bypassing Harbor Pilot.

That usually means someone is using the same API key or subscription directly. It needs an account whose quota tracker reports usage; otherwise it says no provider reports usage for a linked account.

Breakdown ​

Breakdown is for questions like "which client failed most this week" or "what does each tool cost".

Spend breakdown with request, error rate, fallback and latency tiles, a requests per day chart split into OK, errors, blocked and fallbacks, and a table grouped by clientSpend breakdown with request, error rate, fallback and latency tiles, a requests per day chart split into OK, errors, blocked and fallbacks, and a table grouped by client
Breakdown: requests, errors, fallbacks, latency and cost by any dimension
  • Tiles: Requests (with failed and blocked counts), Error rate, Fallbacks (how many switched account and how many changed model) and Latency p95 (with the median and time to first token).
  • The Requests per day chart shows Requests, Tokens, Latency or Cost, split into OK, errors, blocked and fallbacks.
  • By groups the table by Client, Tool, Model, Account, Provider, Plan, Project, Purpose or Session. More columns adds errors, fallbacks and latency percentiles.

Click a row to open Requests filtered to that group.

Prices ​

Estimated cost uses the per-model prices on each provider (Models and prices in the provider dialog, see Providers). A model without a price shows No cost, not $0. Every amount carries its currency, and money is stored exactly (in 10⁻¹⁰ units), not as floating point.

Released under the Apache-2.0 License.