diff --git a/docs/api/costs.md b/docs/api/costs.md index 1d99df02913..00efd4bbc38 100644 --- a/docs/api/costs.md +++ b/docs/api/costs.md @@ -75,7 +75,7 @@ Both are board-only. Both are separate from budgets. A budget is a budget policy on one scope: `company`, `agent`, or `project`. Only board users can change budgets. -Budgets count billed cost in cents (`billed_cents`). Usage with the billing type `subscription_included` has a cost of 0 cents, so a budget does not stop an agent that runs on a subscription. +Budgets count billed cost in cents (`billed_cents`). Usage with the billing type `subscription_included` has a cost of 0 cents, so it never moves a budget toward its limit. A hard stop and `reservationCents` still apply to runs on a subscription. ### Budget Overview @@ -125,7 +125,7 @@ POST /api/companies/{companyId}/budgets/policies | `notifyEnabled` | `true` | Whether the warning opens | | `hardStopEnabled` | `true` | Whether work stops when spend reaches the limit | | `reservationCents` | `0` | An estimate held against the budget before each run starts | -| `unpricedUsagePolicy` | `block` | `block` or `allow`. What to do when usage has no reliable price | +| `unpricedUsagePolicy` | `block` | `block` or `allow`. What to do when a complete usage receipt has no reliable price | | `isActive` | `true` | Set `false` to turn the policy off and keep its amount | A scope has one policy for each window kind. A second call with the same scope and window updates the policy. Fields you leave out keep their value. diff --git a/docs/guides/agent-developer/cost-reporting.md b/docs/guides/agent-developer/cost-reporting.md index be58fe8b2d5..7cf06c71328 100644 --- a/docs/guides/agent-developer/cost-reporting.md +++ b/docs/guides/agent-developer/cost-reporting.md @@ -86,7 +86,7 @@ POST /api/companies/{companyId}/cost-events Each cost event has a billing type. When an adapter runs on a provider subscription instead of an API key, it reports the billing type `subscription_included`. Paperclip keeps the token counts and records the cost as 0 cents. -Budgets count billed cents only. Subscription usage therefore never moves an agent toward its budget, and a budget does not stop an agent that runs on a subscription. +Budgets count billed cents only. Subscription usage therefore never moves an agent toward its budget. A hard stop on a company or project budget, and the reserve per run, still apply to an agent that runs on a subscription. ## Budget Awareness diff --git a/docs/guides/board-operator/costs-and-budgets.md b/docs/guides/board-operator/costs-and-budgets.md index 1b74c642452..4e7b7ef9faa 100644 --- a/docs/guides/board-operator/costs-and-budgets.md +++ b/docs/guides/board-operator/costs-and-budgets.md @@ -6,7 +6,7 @@ summary: Cost tracking, budget limits, hard stops, and budget incidents Paperclip records the usage and cost of every agent run. You can set a budget for the company, for one agent, or for one project. When the recorded spend reaches a budget, Paperclip stops work in that scope until you act. -A budget counts dollars only. Usage on a Claude, ChatGPT, or other provider subscription is recorded at $0, so **a budget does not stop an agent that runs on a subscription**. See [What a Budget Counts](#what-a-budget-counts). +A budget counts dollars only. Usage on a Claude, ChatGPT, or other provider subscription is recorded at $0, so **subscription usage never moves a budget toward its limit**. A budget does not limit how much of a subscription an agent uses. A hard stop and the reserve per run still apply to subscription agents. See [What a Budget Counts](#what-a-budget-counts). ## What a Budget Counts @@ -18,7 +18,7 @@ Every cost event has a billing type. The billing type decides whether the event | Billing type | Recorded cost | Counts toward a budget | |--------------|---------------|------------------------| | `metered_api` | The cost the provider or Paperclip's price list reports | Yes | -| `subscription_included` | Always $0. Tokens are still recorded | No | +| `subscription_included` | Always $0. Tokens are still recorded | No. It adds $0 | | `subscription_overage`, `credits`, `fixed` | The reported cost, if there is one | Yes, for the reported cost | | `unknown` | The reported cost, if there is one | Yes, for the reported cost | @@ -26,9 +26,17 @@ An agent runs on a subscription when its adapter signs in with a subscription ac For these agents: -- The spend stays at $0, so the warning and the hard stop never trigger. -- The budget card shows $0 observed, even when the agent uses many tokens. -- To stop the agent, pause it. See [Managing Agents](/guides/board-operator/managing-agents). +- Their usage adds $0 to the spend. Subscription usage alone never triggers the warning or the hard stop. +- The budget card shows $0 observed for their runs, even when they use many tokens. + +A budget can still stop an agent that runs on a subscription: + +- A hard stop stops all work in its scope. If API-billed work reaches the company budget or a project budget, the subscription agents in that company or project stop too. +- The reserve per run is held for every run, whatever its billing type. If the reserve does not fit under the limit, the run is refused. See [Reserve per Run](#reserve-per-run). + +To limit how much of a subscription an agent uses: + +- Pause the agent. See [Managing Agents](/guides/board-operator/managing-agents). - To see how much of the subscription is used, open the **Providers** tab. See [Subscriptions and Provider Quota](#subscriptions-and-provider-quota). ## How Cost Tracking Works @@ -181,23 +189,33 @@ If the recorded spend plus the amounts held for unfinished runs would go above t - The default is `0`, which turns the estimate off. - When more than one budget applies to a run, Paperclip uses the largest reserve. - The reserve is an estimate. The real cost of a run can be higher. +- The reserve applies to every run, including a run on a subscription that records $0. Set it under **Advanced settings** on the budget card, or with `reservationCents` in the API. ## Usage With No Reliable Price -Sometimes Paperclip records usage but cannot give it a price. `unpricedUsagePolicy` controls what a budget with a hard stop does in that case: +Sometimes Paperclip has a complete usage receipt for a run but cannot give it a price. `unpricedUsagePolicy` controls what a budget with a hard stop does with that usage: - `block` (default) — a hard stop opens, even when the known spend is under the limit. To resume, resolve the unpriced usage or change the setting to `allow`. You cannot raise the budget past this stop. - `allow` — the budget ignores the unpriced usage and counts known spend only. -Subscription usage is not unpriced usage. It has a price of $0 and never triggers this setting. +The budget card shows the usage that counts for this setting as **usage events are unpriced**. Hosted browser work with a cost that is not known yet also counts. -In the UI, this is the **Block new work when usage has no reliable price** checkbox under **Advanced settings**. To see which runs have no price, expand **run costs unavailable** on the Costs overview. See [Cost Reporting](/guides/agent-developer/cost-reporting). +This setting does not cover every entry that the Costs overview lists under **run costs unavailable**. These entries do not trigger `block`: + +- A run whose final usage receipt is missing or could not be captured +- An entry that has a known partial cost +- A metered API or subscription entry with no tokens +- Subscription usage. It has a price of $0 + +Work continues for those entries. For what each label on the Costs overview means, see [Cost Reporting](/guides/agent-developer/cost-reporting). + +In the UI, this setting is the **Block new work when usage has no reliable price** checkbox under **Advanced settings**. ## Subscriptions and Provider Quota -Budgets do not cover subscriptions. Paperclip shows subscription information in two other places. +Budgets do not measure subscription usage. Paperclip shows subscription information in two other places. ### Subscriptions @@ -234,7 +252,7 @@ See the [Costs API](/api/costs) for the full list. ## Best Practices -- Check how each agent is billed before you rely on a budget. A budget protects API-key usage. It does not limit a subscription +- Check how each agent is billed before you rely on a budget. A budget measures API-billed spend. Subscription usage adds $0 to it - Set conservative budgets initially and increase as you see results - Use per-agent budgets to limit exposure from any single agent - Use a project budget to cap the total cost of one piece of work diff --git a/docs/guides/board-operator/creating-a-company.md b/docs/guides/board-operator/creating-a-company.md index 5ebf0298f4c..1b94b45e5fc 100644 --- a/docs/guides/board-operator/creating-a-company.md +++ b/docs/guides/board-operator/creating-a-company.md @@ -50,9 +50,9 @@ Set monthly budgets at the company and per-agent level. You can also set a budge - **Warning** at 80% of the budget. Work continues - **Hard stop** at 100% — the company, agent, or project is paused, new work is refused, and a budget incident opens -Both thresholds are settings on the budget. +You can change the warning percentage and turn the hard stop on or off. The hard stop always uses 100% of the budget. -Budgets count dollars only. Usage on a provider subscription is recorded at $0, so a budget does not stop an agent that runs on a subscription. See [Costs and Budgets](/guides/board-operator/costs-and-budgets). +Budgets count dollars only. Usage on a provider subscription is recorded at $0, so subscription usage never moves a budget toward its limit. A hard stop still stops every agent in its scope. See [Costs and Budgets](/guides/board-operator/costs-and-budgets). ## Step 6: Launch diff --git a/docs/guides/board-operator/managing-agents.md b/docs/guides/board-operator/managing-agents.md index 59ebb440e2b..16bda7b8dcb 100644 --- a/docs/guides/board-operator/managing-agents.md +++ b/docs/guides/board-operator/managing-agents.md @@ -70,7 +70,7 @@ Edit an agent's configuration from the agent detail page: - **Adapter config** — change model, prompt template, working directory, environment variables - **Heartbeat settings** — interval, cooldown, max concurrent runs, wake triggers -- **Budget** — monthly spend limit. It counts billed cost, so it does not limit an agent that runs on a subscription +- **Budget** — monthly spend limit. It counts billed cost. Usage on a provider subscription adds $0 to it Use the "Test Environment" button to validate that the agent's adapter config is correct before running. @@ -90,7 +90,7 @@ POST /api/agents/{agentId}/resume An agent is also paused when its recorded spend reaches its monthly budget, unless the hard stop is turned off for that budget. A budget pause opens a budget incident. Resolve it from the incident: raise the budget, or keep the agent paused. A budget pause on a monthly budget also ends when the next UTC month starts. -Budgets count dollars only. Usage on a provider subscription is recorded at $0, so a budget does not pause an agent that runs on a subscription. See [Costs and Budgets](/guides/board-operator/costs-and-budgets). +Budgets count dollars only. Usage on a provider subscription is recorded at $0, so an agent's subscription usage never reaches its budget. A hard stop on the company budget or on a project budget still stops the agent. See [Costs and Budgets](/guides/board-operator/costs-and-budgets). ## Terminating Agents diff --git a/docs/start/core-concepts.md b/docs/start/core-concepts.md index 27cfecb1af2..998dc77c431 100644 --- a/docs/start/core-concepts.md +++ b/docs/start/core-concepts.md @@ -24,7 +24,7 @@ Every employee is an AI agent. Each agent has: - **Adapter type + config** — how the agent runs (Claude Code, Codex, shell process, HTTP webhook) - **Role and reporting** — title, who they report to, who reports to them - **Capabilities** — a short description of what the agent does -- **Budget** — per-agent monthly spend limit. It counts billed cost, so it does not limit usage on a provider subscription +- **Budget** — per-agent monthly spend limit. It counts billed cost. Usage on a provider subscription adds $0 to it - **Status** — active, idle, running, error, paused, or terminated Agents are organized in a strict tree hierarchy. Every agent reports to exactly one manager (except the CEO). This chain of command is used for escalation and delegation.