diff --git a/cli/commands.mdx b/cli/commands.mdx index 2735e7e..2d00534 100644 --- a/cli/commands.mdx +++ b/cli/commands.mdx @@ -69,9 +69,9 @@ instructions: | reasoning: { effort: medium } ``` -In a terminal, a file with no `model` opens a picker of every model you can use, grouped by who pays. The server checks every field and the CLI prints its message. See [models and provider keys](/providers). +In a terminal, a file with no `model` opens a picker of every model you can use, grouped by who pays. On Free, the [free model](/plans#the-free-model) comes first. The server checks every field and the CLI prints its message. See [models and provider keys](/providers). -`orca models` lists the same names anywhere, including in scripts and coding agents: one line per model with its name, who pays (`orca`, or the provider whose key you saved), and OpenRouter's price for Orca credit models. `--payer orca` or `--payer anthropic` keeps one group, and `--json` prints the server's list. +`orca models` lists the same names anywhere, including in scripts and coding agents: one line per model with its name, who pays (`orca`, or the provider whose key you saved), and OpenRouter's price for Orca credit models. A `plan` column marks the free model as **free model**, on every plan. `--payer orca` or `--payer anthropic` keeps one group, and `--json` prints the server's list. ```bash orca models --payer orca | grep luna @@ -161,7 +161,7 @@ orca billing buy pro|max|pack: [--no-open] orca billing manage [--no-open] # the billing portal ``` -`orca usage` charts one meter (`--meter`, `model_tokens` by default) from the server's series: by the hour for `--days 1` or `2`, by the day up to 366 days, captioned **Hourly (UTC)** or **Daily (UTC)** as on the dashboard. A longer window has no chart. `orca usage --group-by` shows each key's tokens and its cost across every meter. In `orca usage events`, a row whose money is on another row says where: a token row reads `on its call` (its call's row carries it), a web search's tool call reads `on its search`, and every row of a call charged later reads `Charged later`, its money on its `late_charges` row (see [calls charged later](/wallet#calls-charged-later)). `orca usage` lists `late_charges` like any meter. When the balance is below zero, `orca billing wallet` adds "Your balance is below zero. Paid work resumes when credit brings it to ``." Web searches are counted in `searches`, the searches the provider ran, not tool calls; see [what is counted](/providers#what-is-counted). +`orca usage` charts one meter (`--meter`, `model_tokens` by default) from the server's series: by the hour for `--days 1` or `2`, by the day up to 366 days, captioned **Hourly (UTC)** or **Daily (UTC)** as on the dashboard. A longer window has no chart. `orca usage --group-by` shows each key's tokens and its cost across every meter. In `orca usage events`, a row whose money is on another row says where: a token row reads `on its call` (its call's row carries it), a web search's tool call reads `on its search`, and every row of a call charged later reads `Charged later`, its money on its `late_charges` row (see [calls charged later](/wallet#calls-charged-later)). `orca usage` lists `late_charges` like any meter. `orca billing wallet` prints one line per grant of credit, such as `granted credit $12.40 left of $20.00, expires 4 Dec 2026`, and one for what you bought, such as `paid credit $18.20 (never expires)`; see [granted credit and paid credit](/wallet#granted-credit-and-paid-credit). When the balance is below zero, `orca billing wallet` adds "Your balance is below zero. Paid work resumes when credit brings it to ``." Web searches are counted in `searches`, the searches the provider ran, not tool calls; see [what is counted](/providers#what-is-counted). `billing buy` and `billing manage` need the admin role. They print the Polar link and open it in a browser. See [wallet and credit](/wallet) and [plans](/plans). diff --git a/dashboard/agents-and-sessions.mdx b/dashboard/agents-and-sessions.mdx index f1e5109..5296730 100644 --- a/dashboard/agents-and-sessions.mdx +++ b/dashboard/agents-and-sessions.mdx @@ -9,7 +9,7 @@ An **agent** is a saved model, instructions, and tools. A **session** is one con 1. Open **Agents** and choose **Create agent**. 2. Under **Model**, choose who pays in **Provider**: **Orca credit** comes first, then every provider Orca supports. A provider whose key you have not saved is greyed out; add the key under **Settings**, **BYOK**. -3. Pick a model from that provider's list in **Model**. Ids are shown without the provider prefix, such as `openai/gpt-5.6-luna` under Orca credit. Each model shows its name and context window, and for Orca credit OpenRouter's price per million tokens in and out; the note under the field says you pay OpenRouter's price plus [their fee](https://orcapods.ai/pricing), with no Orca markup. You can also type a model id. See [models and provider keys](/providers). +3. Pick a model from that provider's list in **Model**. On Free, the form starts on Orca credit with the [free model](/plans#the-free-model), `cohere/north-mini-code:free`, already picked. Ids are shown without the provider prefix, such as `openai/gpt-5.6-luna` under Orca credit. Each model shows its name and context window, and for Orca credit OpenRouter's price per million tokens in and out, with **Free model** on the free model, on every plan; the note under the field says you pay OpenRouter's price plus [their fee](https://orcapods.ai/pricing), with no Orca markup. You can also type a model id. See [models and provider keys](/providers). 4. Optionally give it a **Name** and **Instructions**, the system prompt every session starts with. 5. Choose **Create agent**. diff --git a/dashboard/overview.mdx b/dashboard/overview.mdx index 43945f5..8c4d91b 100644 --- a/dashboard/overview.mdx +++ b/dashboard/overview.mdx @@ -7,7 +7,7 @@ The dashboard at [app.orcapods.ai](https://app.orcapods.ai) is where you create ## Sign in -Open [app.orcapods.ai](https://app.orcapods.ai) and sign in, or create an account. The first time, you choose or create your [organization](/organizations). A new account starts with a [signup credit](/wallet#where-credit-comes-from) of Orca credit. +Open [app.orcapods.ai](https://app.orcapods.ai) and sign in, or create an account. The first time, you choose or create your [organization](/organizations). A new account starts on the [Free plan](/plans#the-free-plan), with no card and no credit. On Free, a new agent starts on the [free model](/plans#the-free-model), which costs nothing. To sign out, open your avatar menu at the top right. diff --git a/dashboard/wallet-and-usage.mdx b/dashboard/wallet-and-usage.mdx index f72f583..169410d 100644 --- a/dashboard/wallet-and-usage.mdx +++ b/dashboard/wallet-and-usage.mdx @@ -5,15 +5,21 @@ description: "Check your balance and machine time, buy credit, change your plan, ## Check your balance -Open **Wallet**. It shows your plan and the current period, and four figures: +Open **Wallet**. It shows your plan and the current period, and these figures: | Figure | Meaning | | --- | --- | | **Balance** | Everything credited minus everything charged. It says "Paid work paused" when the balance is under your plan's minimum. It can be below zero, for example `-$1.50`, after a call [charged later](/wallet#calls-charged-later). | -| **Credited** | Purchases, grants, and signup credit | +| **Credited** | Purchases and grants, and signup credit for accounts given it before it ended | +| **Granted credit** | Credit Orca granted that is left now, with when it expires: "Expires 4 Dec 2026", or "First $5.00 expires 4 Dec 2026" when grants have several dates. It is used before paid credit. | +| **Paid credit** | Credit you bought that is left now: "Never expires" | | **Charged** | Platform usage, all time | | **Machine time** | Time used this period, out of what your plan includes | +Under **Granted credit**, the page lists each grant with something left: the amount left of the amount granted, the day it was granted, and the day it expires. Whatever is left of a grant at expiry is removed, and your organization's admins get an email 15 days before. See [granted credit and paid credit](/wallet#granted-credit-and-paid-credit). + +On every plan with a [free-model](/plans#the-free-model) share, the page shows "Free model today:" with your organization's free-model calls today out of its share, except while Orca has the free model turned off. + When the balance is under your plan's minimum balance, the page says "Paid work is paused" and asks you to add credit. When it is below zero, the page adds "Your balance is below zero. Paid work resumes when credit brings it to ``.", with your plan's minimum balance as the amount. See [when credit runs low](/wallet#when-credit-runs-low). ## Buy credit diff --git a/glossary.mdx b/glossary.mdx index 899ba77..42e8936 100644 --- a/glossary.mdx +++ b/glossary.mdx @@ -25,8 +25,12 @@ Terms are listed alphabetically. Each links to the page that explains it in full **Executor**: The program that connects a self-hosted machine to Orca. Orca uses the stock Codex `exec-server`. See [self-hosted executor](/guides/environments#self-hosted-environment). +**Free model**: The model Orca runs at no charge on every plan, within a daily share, currently `orca/openrouter/cohere/north-mini-code:free`. See [the free model](/plans#the-free-model). + **Function tool**: A tool that your application implements. When the model calls it, Orca pauses the turn until your code sends back a result. See [function tools](/guides/function-tools). +**Granted credit**: Orca credit that Orca added at no charge. Each grant expires on a date set when it is granted, and granted credit is used before paid credit. See [granted credit and paid credit](/wallet#granted-credit-and-paid-credit). + **Idempotency key**: A unique value you send in the `Idempotency-Key` header so that retrying a request does not do the work twice. See [reliable session workflows](/guides/reliability). **Item**: One entry in a session's saved history: a message, a tool call, a tool result, a command, and so on. See [how Orca works](/concepts#items-the-saved-history). @@ -43,7 +47,9 @@ Terms are listed alphabetically. Each links to the page that explains it in full **Organization**: The account everything in Orca belongs to: agents, sessions, keys, the wallet, and the plan. Your API key acts in one organization, and you only see its resources. See [organizations and roles](/organizations). -**Plan**: Free, Pro, or Max. It sets the included machine time and how many sessions run at once. See [plans](/plans). +**Paid credit**: Orca credit you bought. It never expires. See [granted credit and paid credit](/wallet#granted-credit-and-paid-credit). + +**Plan**: Free, Pro, or Max. It sets the included machine time, which models Orca credit pays for, and the limits on requests, turns, sessions, keys and storage. See [plans](/plans). **Provider key**: Your own API key for a model provider such as Anthropic or OpenRouter, stored in Orca so your agents can use that provider. See [models and provider keys](/providers). diff --git a/guides/environments.mdx b/guides/environments.mdx index 5bb3288..dad5c91 100644 --- a/guides/environments.mdx +++ b/guides/environments.mdx @@ -78,6 +78,8 @@ The sandbox's internet access is set by `network.access`. If you do not set it, On hosted Orca, choose `disabled` or `enabled`. This setting only controls commands the agent runs **inside the sandbox**. Model calls and MCP tool calls are made by the Orca server and are not affected. +On Free, a sandbox has no network, whatever `network.access` asks, until your organization has credit, bought or granted: "Network is off on Free sandboxes until your organization has credit. Add credit, or write to us on Discord (https://discord.gg/btTYzdzvqq)." See [machine time on Free](/plans#machine-time-on-free). + ### Configure the sandbox Besides `files` and `network`, a managed environment accepts: diff --git a/introduction.mdx b/introduction.mdx index 2d6bc61..477f523 100644 --- a/introduction.mdx +++ b/introduction.mdx @@ -42,9 +42,9 @@ Orca stores all of this durably. If your application disconnects or restarts, th ## What you need -- **An Orca account.** Sign up at [app.orcapods.ai](https://app.orcapods.ai). A new account starts on the Free plan with a [signup credit](/wallet#where-credit-comes-from) of Orca credit. +- **An Orca account.** Sign up at [app.orcapods.ai](https://app.orcapods.ai). A new account starts on the [Free plan](/plans#the-free-plan), with no card and no credit. Free runs Orca's free model at no charge, any model on your own provider key, and, on credit you add, any Orca credit model. Pro and Max run the free model too. - **An Orca API key.** Create one in the dashboard under **Settings**, **API keys**. It acts for your [organization](/organizations). It is not an OpenAI key. -- **A model name**: an Orca credit model (`orca/openrouter/`), or one on your own provider key (see [models and provider keys](/providers)). +- **A model name**: an Orca credit model (`orca/openrouter/`), such as the free model `orca/openrouter/cohere/north-mini-code:free` on Free, or one on your own provider key (see [models and provider keys](/providers)). The base URL is `https://api.orcapods.ai/v1`. diff --git a/kits/cram-coach.mdx b/kits/cram-coach.mdx index 687219a..3e9219c 100644 --- a/kits/cram-coach.mdx +++ b/kits/cram-coach.mdx @@ -10,7 +10,7 @@ Orca is where it runs. Your chapter goes into a private sandbox that runs only f Each step below builds on the one before, and the first few are all you need to get your files. -**No account yet?** [Sign up](https://app.orcapods.ai/sign-up) first. New accounts start on the Free plan, with no card. +**No account yet?** [Sign up](https://app.orcapods.ai/sign-up) first. New accounts start on the [Free plan](/plans#the-free-plan), with no card. Cram Coach's sandbox uses Free's included [machine time](/plans#machine-time-on-free). @@ -83,7 +83,7 @@ Check your credit: orca billing wallet ``` -`balance` is your Orca credit. The amount new accounts start with is on the [pricing page](https://orcapods.ai/pricing). +`balance` is your Orca credit. A new account starts at 0 on the [Free plan](/plans#the-free-plan): [add credit](/wallet#buy-credit) before you give Cram Coach a chapter. ## 2. Copy Cram Coach @@ -703,7 +703,7 @@ orca billing wallet # your balance and plan `orca sessions get session_...` shows one session's cost, tokens, and machine time. Do it before you delete the session. - **Model tokens** are paid from your Orca credit, since Cram Coach's model starts with `orca/`. The run in the example above cost $0.01 in tokens. A longer chapter costs more. -- **Machine time** comes from your plan, since every run has a sandbox. It counts from the sandbox's start until it goes to sleep or you delete the session, not only while Cram Coach works. Runs on the sample chapter, with the session deleted as soon as the files were saved, used one minute each. Sandboxes also need a small balance of credit, your plan's [minimum balance](/plans#paid-work-needs-a-minimum-balance). Delete each session when you have your files. +- **Machine time** comes from your plan, since every run has a sandbox. It counts from the sandbox's start until it goes to sleep or you delete the session, not only while Cram Coach works. Runs on the sample chapter, with the session deleted as soon as the files were saved, used one minute each. On Pro and Max, sandboxes also need your plan's [minimum balance](/plans#paid-work-needs-a-minimum-balance); on Free, the included time runs at any balance. Delete each session when you have your files. The numbers for each plan are on the [pricing page](https://orcapods.ai/pricing). See [usage and wallet](/wallet#read-the-wallet-and-your-usage) for the rest. diff --git a/kits/margin-check.mdx b/kits/margin-check.mdx index 72cb4cf..2e6877b 100644 --- a/kits/margin-check.mdx +++ b/kits/margin-check.mdx @@ -10,7 +10,7 @@ Orca is where it runs. Tokens cost [OpenRouter's price plus their fee](https://o Each step below builds on the one before, and you can stop after any of them. -**No account yet?** [Sign up](https://app.orcapods.ai/sign-up) first. New accounts start on the Free plan, with no card. +**No account yet?** [Sign up](https://app.orcapods.ai/sign-up) first. New accounts start on the [Free plan](/plans#the-free-plan), with no card. To try it without credit, [switch the session](/providers#switch-who-pays-for-one-session) to the [free model](/plans#the-free-model) or to a model on your own provider key; answers on another model can differ from this page. @@ -78,7 +78,7 @@ Check your credit: orca billing wallet ``` -`balance` is your Orca credit. The amount new accounts start with is on the [pricing page](https://orcapods.ai/pricing). +`balance` is your Orca credit. A new account starts at 0 on the [Free plan](/plans#the-free-plan): [add credit](/wallet#buy-credit) before you chat with Margin Check, or switch the session to another model as above. ## 2. Copy Margin Check diff --git a/kits/scout.mdx b/kits/scout.mdx index b47da92..604b3b8 100644 --- a/kits/scout.mdx +++ b/kits/scout.mdx @@ -10,7 +10,7 @@ Orca is where it runs. An idea becomes a working agent in minutes, and that agen Each step below builds on the one before, and you can stop after any of them. -**No account yet?** [Sign up](https://app.orcapods.ai/sign-up) first. New accounts start on the Free plan, with no card. +**No account yet?** [Sign up](https://app.orcapods.ai/sign-up) first. New accounts start on the [Free plan](/plans#the-free-plan), with no card. @@ -71,7 +71,7 @@ Check your credit: orca billing wallet ``` -`balance` is your Orca credit. The amount new accounts start with is on the [pricing page](https://orcapods.ai/pricing). +`balance` is your Orca credit. A new account starts at 0 on the [Free plan](/plans#the-free-plan): [add credit](/wallet#buy-credit) before you chat with Scout, or use your own provider key. ## 2. Copy Scout @@ -399,7 +399,7 @@ orca billing wallet # your balance and plan `orca sessions get session_...` shows one session's cost, tokens, and machine time. - **Model tokens and web searches** are paid from your Orca credit, since Scout's model starts with `orca/`. -- **Scout uses no machine time**, unless you give it a sandbox with `--sandbox`. Sandboxes use [machine time](/plans#machine-time) from your plan and need a small balance of credit, your plan's [minimum balance](/plans#paid-work-needs-a-minimum-balance). +- **Scout uses no machine time**, unless you give it a sandbox with `--sandbox`. Sandboxes use [machine time](/plans#machine-time) from your plan. On Pro and Max they need your plan's [minimum balance](/plans#paid-work-needs-a-minimum-balance); on Free, the included time runs at any balance. The numbers for each plan are on the [pricing page](https://orcapods.ai/pricing). See [usage and wallet](/wallet#read-the-wallet-and-your-usage) for the rest. diff --git a/kits/seo-helper.mdx b/kits/seo-helper.mdx index cf5e2f0..66bf42e 100644 --- a/kits/seo-helper.mdx +++ b/kits/seo-helper.mdx @@ -11,7 +11,7 @@ Orca is where it runs. Tokens cost [OpenRouter's price plus their fee](https://o Each step below builds on the one before, and you can stop after any of them. -**No account yet?** [Sign up](https://app.orcapods.ai/sign-up) first. New accounts start on the Free plan, with no card. DataForSEO bills its own charges. +**No account yet?** [Sign up](https://app.orcapods.ai/sign-up) first. New accounts start on the [Free plan](/plans#the-free-plan), with no card. DataForSEO bills its own charges. @@ -88,7 +88,7 @@ Check your credit: orca billing wallet ``` -`balance` is your Orca credit. The amount new accounts start with is on the [pricing page](https://orcapods.ai/pricing). +`balance` is your Orca credit. A new account starts at 0 on the [Free plan](/plans#the-free-plan): [add credit](/wallet#buy-credit) before you chat with SEO Helper, or use your own provider key. ## 2. Copy SEO Helper diff --git a/plans.mdx b/plans.mdx index 9ed6887..d39aff2 100644 --- a/plans.mdx +++ b/plans.mdx @@ -1,20 +1,94 @@ --- title: "Plans and machine time" -description: "What Free, Pro, and Max include, how machine time is counted, and what happens at a limit." +description: "What Free, Pro, and Max include, the Free plan's free model, the limits on each plan, how machine time is counted, and what happens at a limit." --- -Every organization is on one plan. The plan sets how much sandbox time is included each period, how many sessions can run at once, and how much your organization can store. Model tokens are not part of the plan: they are paid from your [Orca credit or your own provider key](/providers). +Every organization is on one plan. The plan sets how much sandbox time is included each period, the free model's daily share, and the limits on requests, turns, sessions, keys and storage. Model tokens are not part of the plan: they are paid from your [Orca credit or your own provider key](/providers). Each plan sets: - **A price.** Free costs nothing; Pro and Max are billed monthly through Polar. - **Machine time included** in each period. -- **Extra machine time**, past the included time, at an hourly rate. Pro and Max have one; Free has none. +- **Extra machine time**, past the included time, at an hourly rate, charged to the second from your Orca credit. +- **The free model's daily share.** The [free model](#the-free-model) runs on every plan at no charge, within a daily share. - **Sessions at once**, which is also how many sandboxes can run at once. -- **Storage** for your files, skills, artifacts and sandboxes that are asleep. +- **Limits** on requests, turns, sessions, API keys and storage. See [limits per plan](#limits-per-plan). - **A minimum balance** for paid work. -The numbers for each plan are on the [pricing page](https://orcapods.ai/pricing), which is built from the numbers Orca charges with. Every new account starts with a [signup credit](/wallet#where-credit-comes-from). Credit is bought separately; see [wallet and credit](/wallet). +The numbers for each plan are on the [pricing page](https://orcapods.ai/pricing), which is built from the numbers Orca charges with. No account starts with credit: credit is bought separately; see [wallet and credit](/wallet). Credit you buy never expires; credit Orca grants does, see [granted credit and paid credit](/wallet#granted-credit-and-paid-credit). + +A plan's terms usually hold for a whole period; Orca can apply a change at once, as it did when the Free plan changed. + +## The Free plan + +Free needs no card. It runs agents three ways: + +| Way | What it runs | Who pays | +| --- | --- | --- | +| **The free model** | Orca's free model, `orca/openrouter/cohere/north-mini-code:free` | Nobody. It runs on Orca credit at no charge, at any balance, within a daily share. | +| **Your own provider key** | Any model your OpenAI, Anthropic, OpenRouter, Vercel AI Gateway or CheaperInference key can run, at any price | You, at that provider. Orca charges nothing for the tokens. | +| **Credit you add** | Any Orca credit model | Your Orca credit, as on any plan | + +With credit, a Free organization runs the same Orca credit models as Pro and Max. What Free limits is machine time, sessions and turns, the network and the free model's share: see [limits per plan](#limits-per-plan). + +On Free, the dashboard's new agent form picks the free model for you, and `orca agents create` with no model offers it first. + +### The free model + +The free model is Orca's choice: currently North Mini Code from Cohere, served through OpenRouter. Its name is in `GET /api/public/plans` under `free_model.models`, and `orca models` marks it **free model**. Orca may change it, and the pricing page always names the current one. + +- **It costs nothing.** Its calls are recorded in your usage at cost 0, whatever OpenRouter reports, and need no balance. +- **A daily share.** Each organization can make a set number of free-model calls a day, and so can each person, counted across every organization they create or work in. +- **A shared daily capacity.** All organizations, on every plan, together share one daily capacity, which can run out before the reset. +- **Availability is not guaranteed.** The free model runs on OpenRouter's free tier, and OpenRouter limits how much of it Orca can use, so it can stop answering before your share or the day's capacity runs out. When that happens, [add credit](/wallet) and switch to an Orca credit model, or [add your own OpenRouter key](/providers#connect-a-provider). +- **Both reset at 00:00 UTC.** The share and the capacity are on the [pricing page](https://orcapods.ai/pricing). The wallet shows your organization's calls today. +- **A set number of calls a turn.** A turn on the free model, its subagents included, makes at most the number of calls on the pricing page. A turn starts only when that many calls are left in your share and in the day's capacity, so the daily limits never cut a turn off halfway. A turn that reaches its last call ends `completed` with the event `orca.free_model.turn_limit`, its work kept; send a message to continue. +- **One turn at a time per organization, a few across Orca.** On every plan, an organization runs one free-model turn at a time. When your organization's turn is running, or the free model is already running as many turns as Orca allows for all organizations together, a new turn is refused for a minute. See [troubleshooting](/troubleshooting#free-plan-and-limits). +- **Web search is not free.** A web search on the free model is charged to your Orca credit like any search, so it needs your plan's minimum balance, and it counts as one of the free model's calls. See [what a search costs](/providers#what-a-search-costs). +- **On every plan.** Pro and Max run the free model too, at no charge and at any balance, each with its own daily share per organization and per person on the [pricing page](https://orcapods.ai/pricing), in the same daily capacity. New agents start on it on Free only; on Pro and Max, pick it in the model list, where it is marked **Free model**. +- **A plan can have no share.** On a plan whose daily share is none, a turn on the free model is refused with HTTP 403 `model_not_in_plan`: "Orca's free model is not part of this plan. Switch this session to another model, or run it on your own OpenRouter key." +- **Orca can turn it off.** When Orca turns the free model off, it is off on every plan at once: a turn on it, and saving an agent on it, are refused with HTTP 503 `free_model_unavailable`: "Orca's free model is off right now. Switch this session to another model, add your own OpenRouter key, or add credit." A turn already running finishes. While it is off, `GET /api/models` and `GET /api/public/plans` list no free model, and the wallet's `free_model_today.available` is `false`. Your own OpenRouter key still runs `:free` models. +- **Your content.** The free model's calls go through OpenRouter to its provider, currently Cohere, which does not train on them and keeps them for up to 30 days. + +Other free models on OpenRouter, with ids ending in `:free`, run on your own OpenRouter key, not on Orca credit, on every plan. + +### Machine time on Free + +- **Included time needs no balance.** While the included time lasts, a sandbox starts and runs at any balance, zero included. +- **Then paid time.** Past the included time, a sandbox keeps running while your balance is at or above the minimum, charged to the second from your credit at Free's hourly rate. Otherwise it stops: the running turn ends, the workspace is saved, and the session picks up with its files once you add credit or the next month starts. +- **A warning first.** When about 5 minutes of included time are left and your balance is under the minimum, the session gets the event `orca.compute.warning`, and the dashboard shows it. When the included time runs out, the organization's creator gets an email, once a month. +- **Network is off until your organization has credit.** "Network is off on Free sandboxes until your organization has credit. Add credit, or write to us on Discord (https://discord.gg/btTYzdzvqq)." Credit your organization buys, or credit Orca grants it, turns the network on for the sandboxes it starts from then on, and it stays on; a sandbox already running without it goes to sleep at its next idle moment and wakes with the network; signup credit that earlier accounts were given does not. Until then the agent can still write and run code with what the sandbox has, but cannot install packages or reach the internet. A network command that fails ends its output with that line, prefixed `[Orca] `; the session gets the event `orca.network.off` when such a sandbox starts; and `orca billing wallet` and the wallet's `network` field show it. See [troubleshooting](/troubleshooting#free-plan-and-limits). +- **Free sandboxes share capacity.** Only a few Free sandboxes run at once across all of Orca, so a start can be refused for a minute when they are busy. +- **Free saves workspaces up to a size limit**, in `GET /api/public/plans` as Free's `snapshot_max_bytes`. When a sandbox stops at the end of the included time or of your credit, or for a suspension, a larger workspace is not saved: the session gets the event `orca.sandbox.discarded`, and its next message starts a new, empty sandbox. A sleep that saves a workspace near that size warns with the event `orca.sandbox.workspace_near_limit`. See [a new, empty sandbox](/troubleshooting#free-plan-and-limits). + +### A Free turn's bounds + +On Free, every turn, on any model and on your own key too, runs for at most the turn time on the [pricing page](https://orcapods.ai/pricing), and starts at most the subagents a turn the pricing page shows, fewer of them at once. A turn that reaches its time ends `completed` with the event `orca.turn.time_limit`, its work kept; send a message to continue. + +### Storage on Free + +A Free organization that has no credit can upload files and skills up to a smaller storage quota. Once it adds credit, it has Free's full storage. Both are on the [pricing page](https://orcapods.ai/pricing). + +### Free use can be withheld + +Orca can withhold the free model and the included machine time from an organization, for example when it suspects abuse. Credit you add and your own provider keys still work, and the wallet shows `included_hours_withheld: true`. If you think this is a mistake, ask in **#help** on [Orca's Discord](https://discord.gg/btTYzdzvqq). + +## Limits per plan + +Every plan has these limits. The numbers for each plan are on the [pricing page](https://orcapods.ai/pricing) and in `GET /api/public/plans`. + +| Limit | What it counts | Past it | +| --- | --- | --- | +| Requests a minute, per organization | Every request made with the organization's keys or by its signed-in people | HTTP 429 `rate_limit_exceeded`, with a `Retry-After` header | +| Requests a minute, per key or person | Each API key and each signed-in person, on its own | The same | +| Turns a day | Turns your organization starts in a UTC day | HTTP 429 `rate_limit_exceeded` until 00:00 UTC | +| Sessions at once | Sessions with a running turn | HTTP 429 `rate_limit_exceeded`; see [sessions at once](#sessions-at-once) | +| API keys | Active API keys in the organization, device logins included | HTTP 403 `object_limit_exceeded`; revoke one to make another | +| Stored sessions | Sessions the organization keeps | HTTP 403 `object_limit_exceeded` on a new session; delete one to start another | +| Storage | Files, skills and saved sandbox workspaces | HTTP 403 `storage_quota_exceeded`; delete files, skills or sessions to free space | +| Free-model calls a day | Every plan, per organization and per person; see [the free model](#the-free-model) | HTTP 429 `insufficient_quota` until 00:00 UTC | + +An organization already over a count when its plan's limit changes keeps what it has, and cannot add more until it is under the limit. Routes that need no key have their own limits per IP address; see [rate limits](/reference/overview#rate-limits). Every refusal and its way forward is in [troubleshooting](/troubleshooting#free-plan-and-limits). ## Change your plan @@ -30,7 +104,7 @@ Members see the plans but cannot change them. Machine time is the time your sessions' managed sandboxes run. Sessions with `environment: {"type": "none"}` use none. - **Every sandbox is the same machine,** the size the [pricing page](https://orcapods.ai/pricing) shows. -- **It is counted in whole minutes** while a sandbox is connected, whether the agent is working or waiting. Each minute a sandbox is running counts as one minute. +- **It is counted to the second** while a sandbox is connected, whether the agent is working or waiting. - **An idle sandbox goes to sleep** after the idle time the [pricing page](https://orcapods.ai/pricing) shows, and you can [put it to sleep](/guides/environments#put-a-sandbox-to-sleep-now) sooner. Time asleep is not counted. The sandbox wakes, with its files, the next time the session needs it. See [when a sandbox sleeps](/guides/environments#when-a-sandbox-sleeps). - **The period** is your subscription's billing period on Pro and Max, and the calendar month (UTC) on Free. Included time is counted per period and does not carry over. @@ -38,14 +112,16 @@ When the included time is used up: | Plan | What happens | | --- | --- | -| Pro, Max | Sandboxes keep running. Each extra minute is charged from your Orca credit at the plan's hourly rate. | -| Free | Sandboxes stop. A running turn ends `failed` with `usage_limit_exceeded`: "This plan's included machine hours for this period are used up". A new sandbox does not start: creating a session with one is refused with HTTP 429 `insufficient_quota` and the same message. Upgrade to keep going. | +| Pro, Max | Sandboxes keep running. Each extra second is charged from your Orca credit at the plan's hourly rate. | +| Free | Sandboxes keep running on credit while your balance is at or above the minimum, at Free's hourly rate. Otherwise they stop with the workspace saved, and a running turn ends `failed` with `usage_limit_exceeded` and `param: "included_hours"`. Add credit to continue now, or wait for the next month. See [machine time on Free](#machine-time-on-free). | + +Orca checks once a minute, so a sandbox can run up to a minute past the line before it stops; those seconds are charged at the plan's rate. The dashboard's **Wallet** page shows the time used in this period next to what the plan includes. ## Sessions at once -**Sessions at once** is how many of your organization's sessions can have a turn running at the same time. Idle sessions do not count, so you can keep as many conversations open as you like. +**Sessions at once** is how many of your organization's sessions can have a turn running at the same time. Idle sessions do not count, so you can keep as many conversations open as your plan's stored sessions allow. Orca checks it when a turn starts. If the limit is already reached, the message is refused with HTTP 429 `rate_limit_exceeded`: "Your plan runs N sessions at once", with your plan's number. Nothing is lost: send the message again when another session's turn ends, or upgrade. @@ -60,8 +136,8 @@ Before a sandbox starts or wakes, Orca also checks what it checks each minute a Each plan has a storage limit, on the [pricing page](https://orcapods.ai/pricing) and in `GET /api/public/plans` as `stored_bytes`. It counts your uploaded files, skill versions, artifacts, and the saved workspaces of sandboxes that are asleep. - **At the limit,** an upload, a new skill or skill version, a kit copy with skills, and a new sandbox are refused with HTTP 403 `storage_quota_exceeded`: "Your organization stores X of its Y. Delete files, skills or sessions to free space." -- **Your sessions keep working.** A sandbox's workspace is always saved when it goes to sleep, and a sandbox that is asleep still wakes, even past the limit. Delete files, skills or sessions you no longer need to make room. -- **Uploads need credit.** While paid work is paused, a file or skill upload is refused with HTTP 429 `insufficient_quota`: "Out of Orca credit: add credit to upload files". Copying a kit needs no credit. +- **Your sessions keep working.** A sandbox's workspace is saved when it goes to sleep, and a sandbox that is asleep still wakes, even past the limit. On Free, a workspace larger than Free keeps is the exception: it is not saved; see [machine time on Free](#machine-time-on-free). Delete files, skills or sessions you no longer need to make room. +- **Uploads need credit.** While paid work is paused, a file or skill upload is refused with HTTP 429 `insufficient_quota`: "Out of Orca credit: add credit to upload files". On Free, uploads within a [smaller quota](#storage-on-free) need no credit. Copying a kit needs no credit. When Orca's own storage is nearly full, uploads, skill uploads, kit copies and new sandboxes are refused for a while with HTTP 503 `storage_unavailable` and `Retry-After: 300`: "Orca's storage is nearly full. Try again later." Sandboxes that are asleep still wake. @@ -78,15 +154,14 @@ These are the same on every plan: | Skills | 50 | | Skill versions | 20 for each skill | | Files | 1,000 | -| Active API keys | 100 | -One more is refused with HTTP 403 `object_limit_exceeded`, such as "Your organization has 100 agents, the most it can keep. Delete one to make another." For keys, revoke one. A [kit](/kits) copy that would pass a limit copies nothing. +One more is refused with HTTP 403 `object_limit_exceeded`, such as "Your organization has 100 agents, the most it can keep. Delete one to make another." Active API keys and stored sessions differ by plan; see [limits per plan](#limits-per-plan). A [kit](/kits) copy that would pass a limit copies nothing. An agent's `instructions` can be at most 256 KiB, and its `tools` at most 256 KiB as JSON. More is refused with HTTP 400 `invalid_request`, with `param` naming the field: "Instructions can be at most 256 KiB". This applies when you create or update an agent, and to an inline agent in a new session. ## Paid work needs a minimum balance -Even included machine time needs Orca credit in the wallet. When your balance is below your plan's **minimum balance** (on the [pricing page](https://orcapods.ai/pricing), and in the wallet as `min_balance_micro_usd`), Orca pauses paid work: model calls and web searches on Orca credit, and managed sandboxes. A turn on an Orca credit model, or in a session with a managed sandbox, is then refused. A managed sandbox does not start or wake, and file and skill uploads are refused. Turns on your own provider key in a session without a sandbox keep working, their web searches included. See [wallet and credit](/wallet#when-credit-runs-low). +When your balance is below your plan's **minimum balance** (on the [pricing page](https://orcapods.ai/pricing), and in the wallet as `min_balance_micro_usd`), Orca pauses paid work: model calls and web searches on Orca credit, and managed sandboxes. On Pro and Max that includes the plan's included machine time. On Free it does not: the free model and Free's included machine time run at any balance, and only the time past it is paid work. A turn that needs paid work is then refused, and a managed sandbox that needs it does not start or wake. File and skill uploads are refused too, except on Free within its [smaller storage quota](#storage-on-free). Turns on your own provider key in a session without a sandbox keep working, their web searches included. See [wallet and credit](/wallet#when-credit-runs-low). ## Schedules diff --git a/providers.mdx b/providers.mdx index 2abc107..3deb77b 100644 --- a/providers.mdx +++ b/providers.mdx @@ -9,7 +9,7 @@ Every agent needs a model, and its `model` field says where the model runs and w | --- | --- | --- | | **`model` looks like** | `orca/openrouter/`, such as `orca/openrouter/anthropic/claude-sonnet-4.5` | `/`, such as `anthropic/claude-sonnet-4-5` or `openrouter/anthropic/claude-sonnet-4.5` | | **Runs on** | OpenRouter, with Orca's key | That provider, with your key | -| **Who pays** | Your Orca credit: OpenRouter's price plus [their fee](https://orcapods.ai/pricing), with no Orca markup | You, at that provider | +| **Who pays** | Your Orca credit: OpenRouter's price plus [their fee](https://orcapods.ai/pricing), with no Orca markup. On Free, the [free model](#which-models-free-can-use) costs nothing. | You, at that provider | | **Setup** | None | Store your provider key in Orca once | | **Find model names** | `client.models.list()` | That provider's catalog | @@ -38,13 +38,16 @@ for model in client.models.list().data: {"payer": "orca_credit", "provider": "openrouter", "label": "Orca credit", "available": true, "models": [{"id": "orca/openrouter/openai/gpt-5.6-luna", "name": "OpenAI: GPT-5.6 Luna", "context_length": 400000, - "input_micro_usd_per_million": 200000, "output_micro_usd_per_million": 1200000}]}, + "input_micro_usd_per_million": 200000, "output_micro_usd_per_million": 1200000, + "plan": "within_ceiling"}]}, {"payer": "own_key", "provider": "openai", "label": "OpenAI", "available": true, "models": [{"id": "openai/gpt-5.6-luna"}]} ] } ``` +Each Orca credit model's `plan` says whether your organization's plan can run it; see [which models Free can use](#which-models-free-can-use). + Prices are in micro-USD (millionths of a dollar) per million tokens, as OpenRouter publishes them, and `null` where OpenRouter has no fixed price. They are shown for choosing a model; the charge is always what OpenRouter reports for the call. When a call ends without OpenRouter reporting its cost, such as a call you cancel, a stream cut short or a restart on Orca's side, Orca charges it later from OpenRouter's own record of that call, usually within minutes, never from an estimate. Web search on Orca credit is charged the same way. Orca reads each list at most every 10 minutes and keeps the last good copy; a group whose list cannot be read has `available: false` and no models. ## What Orca credit costs @@ -53,6 +56,30 @@ Each call on Orca credit is charged what OpenRouter charges for it, including it A web search on an Orca credit model is charged too; see [what a search costs](#what-a-search-costs). +## Which models Free can use + +On the [Free plan](/plans#the-free-plan), an organization runs: + +| Model | On Free | On Pro and Max | +| --- | --- | --- | +| Orca's free model, `orca/openrouter/cohere/north-mini-code:free` | At no charge, at any balance, within a [daily share](/plans#the-free-model) | The same | +| Any model on your own provider key, `/` | Yes, at any price | Yes | +| Any paid Orca credit model | On credit you add | Yes | +| Any other free model on Orca credit (an `orca/openrouter/` id ending in `:free`, or `orca/openrouter/openrouter/free`) | No | No | + +Bring your own provider key to run a model without Orca credit: every `:free` model on OpenRouter runs on your own OpenRouter key under its OpenRouter id, such as `openrouter/cohere/north-mini-code:free`. + +`GET /api/models` gives each Orca credit model a `plan`, for your organization's plan: + +| `plan` | Meaning | +| --- | --- | +| `free` | The free model, at no charge, on every plan with a daily share. While Orca has it turned off, no model is marked `free`. | +| `within_ceiling` | Every other Orca credit model: runs on Orca credit on every plan. | + +Free models other than Orca's are left out of the Orca credit group. `orca models` shows **free model** beside Orca's free model, and so does the dashboard's model picker. On Free, the dashboard's new agent form picks the free model for you, and `orca agents create` with no model offers it first. + +An agent or a kit can name a model your plan does not run, such as a kit made with `orca/openrouter/openai/gpt-5.6-luna`, which runs on credit. On Free with no credit, its first message is refused with the ways on: [switch that session](#switch-who-pays-for-one-session) to the free model or to a model on your own key, add a key, or add credit or upgrade. See [troubleshooting](/troubleshooting#free-plan-and-limits). + ## Connect a provider Provider management is an **Orca extension** under `/api/providers`, outside the OpenAI `/v1` surface. Use ordinary authenticated HTTP requests, not `client.beta.agents` methods, at `https://api.orcapods.ai` without `/v1`. Setting and removing a key needs the [admin role](/organizations#roles); in the dashboard it is **BYOK** under **Settings**, a page titled Providers. @@ -104,11 +131,12 @@ Every save checks the model: creating or updating an agent (HTTP 400 on `model`) - the name has no provider part, or uses `orca/` with any provider but OpenRouter; - it names your own key for a provider where you have none: "Add your Anthropic key in Settings, Providers, or choose an Orca credit model". When OpenRouter offers the same name, the message gives its Orca credit name instead: "Add your Anthropic key in Settings, Providers, or use orca/openrouter/anthropic/claude-sonnet-4.5 for Orca credit"; - the provider does not list the model: "Anthropic does not offer the model …"; +- it is a free model on Orca credit other than Orca's free model: "Orca credit runs only Orca's free model at no charge. Run other free models on your own OpenRouter key."; - with your key saved, it is OpenRouter's name for a model the provider lists under another id, such as `anthropic/claude-sonnet-4.5`: the message names `orca/openrouter/anthropic/claude-sonnet-4.5` for Orca credit, `openrouter/anthropic/claude-sonnet-4.5` with your OpenRouter key, or the provider's own id with its key. When a provider's list cannot be read, the agent is saved unchecked and the response carries an `Orca-Warning` header saying so. Nothing else changes in the response. -A turn checks your key again when it starts. Nothing ever falls back from your key to Orca credit, or from Orca credit to your key. +A turn checks your key again when it starts, and on Free it checks the model against the [Free plan](/plans#the-free-plan) too. Nothing ever falls back from your key to Orca credit, or from Orca credit to your key. ## Check capability limits @@ -125,7 +153,7 @@ A turn checks your key again when it starts. Nothing ever falls back from your k | Model | How it searches | Who pays | | --- | --- | --- | -| `orca/openrouter/` | OpenRouter's web plugin | Your Orca credit | +| `orca/openrouter/` | OpenRouter's web plugin | Your Orca credit, on the free model too | | `openrouter/` | OpenRouter's web plugin | You, on your OpenRouter key | | `openai/` | OpenAI's Responses web search | You, on your OpenAI key | | `anthropic/` | Anthropic's web search tool | You, on your Anthropic key | diff --git a/reference/errors.mdx b/reference/errors.mdx index 66cd5ac..cf4fc14 100644 --- a/reference/errors.mdx +++ b/reference/errors.mdx @@ -13,15 +13,15 @@ When a request fails, Orca returns an HTTP error status and a JSON body in the s | --- | --- | --- | | `400 Bad Request` | Invalid field, unsupported configuration, malformed event input or cursor; agent `instructions` or `tools` over [256 KiB](/plans#how-many-you-can-keep) | `invalid_request` | | `401 Unauthorized` | Missing, invalid, or revoked bearer key | `invalid_api_key` | -| `403 Forbidden` | Your role does not allow this ("This action requires the admin role"), or a dashboard request has no organization; your organization is at its plan's [storage limit](/plans#storage), or keeps [the most it can](/plans#how-many-you-can-keep) of a kind | `permission_denied`, `organization_required`, `storage_quota_exceeded`, `object_limit_exceeded` | +| `403 Forbidden` | Your role does not allow this ("This action requires the admin role"), or a dashboard request has no organization; on any plan with no free-model share, the [free model](/plans#the-free-model) ("Orca's free model is not part of this plan."); your organization is at its plan's [storage limit](/plans#storage), or keeps [the most it can](/plans#how-many-you-can-keep) of a kind, or its plan's count of [stored sessions or API keys](/plans#limits-per-plan); your organization is suspended, on a sandbox start or an upload too ("Work for this organization is suspended. Ask on Discord: https://discord.gg/btTYzdzvqq") | `permission_denied`, `organization_required`, `model_not_in_plan`, `storage_quota_exceeded`, `object_limit_exceeded`, `organization_suspended` | | `404 Not Found` | Missing resource (including resources outside the caller's scope) | `not_found` | | `409 Conflict` | Conflicting state or incompatible environment use; a kit copy whose name is taken, or whose kit changed since its review | `conflict`, `name_taken`, `kit_changed` | | `410 Gone` | A withdrawn kit, or a route from Orca 1.x ("This CLI is too old for Orca. Run orca update.") | `kit_withdrawn`, `cli_outdated` | | `413 Payload Too Large` | Request exceeds a supported size limit, such as an upload over 512 MiB ("File exceeds 512 MiB") | `invalid_request` | -| `429 Too Many Requests` | Too many requests a minute, too many [event streams or uploads open at once](/reference/overview#rate-limits), or your plan's [sessions](/plans#sessions-at-once) or [sandboxes at once](/plans#sandboxes-at-once) are all running; out of Orca credit, which also stops new sandboxes and uploads | `rate_limit_exceeded`, `insufficient_quota` | +| `429 Too Many Requests` | Too many requests a minute or turns a day for your [plan](/plans#limits-per-plan), too many [event streams or uploads open at once](/reference/overview#rate-limits), your plan's [sessions](/plans#sessions-at-once) or [sandboxes at once](/plans#sandboxes-at-once) are all running, or the free model or Free sandboxes are busy across Orca (retry after `Retry-After`); out of Orca credit, which also stops new sandboxes and uploads, or a [Free plan](/plans#the-free-plan) refusal with a `param`: `free_plan`, `free_model_daily`, `free_model_capacity` or `included_hours` | `rate_limit_exceeded`, `insufficient_quota` | | `500 Internal Server Error` | Operation could not be completed | `server_error` | | `502 Bad Gateway` | Downstream failure | `server_error` | -| `503 Service Unavailable` | Sandbox capacity is full, your balance could not be read ("Orca could not read your credit balance. Try again in a moment."), Orca is receiving too many uploads, Orca's storage is nearly full ("Orca's storage is nearly full. Try again later."), or too many CLI sign-ins are waiting. Retry after `Retry-After`. | `sandbox_capacity`, `balance_unavailable`, `server_busy`, `storage_unavailable`, `device_login_unavailable` | +| `503 Service Unavailable` | Orca's free model is not available right now, or Orca has turned it off on every plan ("Orca's free model is off right now.") (`free_model_unavailable`), sandbox capacity is full, your balance could not be read ("Orca could not read your credit balance. Try again in a moment."), Orca is receiving too many uploads, Orca's storage is nearly full ("Orca's storage is nearly full. Try again later."), or too many CLI sign-ins are waiting. Retry after `Retry-After`. | `free_model_unavailable`, `sandbox_capacity`, `balance_unavailable`, `server_busy`, `storage_unavailable`, `device_login_unavailable` | The envelope uses `type: "server_error"` for 5xx and `type: "invalid_request_error"` for client errors. `param` can identify an invalid request field; do not parse English messages as stable machine codes. Framework-level errors are normalized to the same envelope but may use generic codes. Other HTTP failures can occur; inspect the actual status and body. Do not automatically retry a validation error. For uncertain mutation outcomes, use an `Idempotency-Key` (one nonempty value, at most 512 bytes) and retry with the same request; the server supports idempotency on mutations, including session event submission. A mismatched replay can conflict. @@ -29,17 +29,21 @@ An established [SSE stream](/reference/events) can carry an `error` event instea ## Turn errors -A turn that fails carries `error.code` and `error.message`, and, when credit ran out, `error.param` naming whose: +A turn that fails carries `error.code` and `error.message`, and, when a credit or a plan limit ran out, `error.param` naming which: | `code` | `param` | Meaning | | --- | --- | --- | | `usage_limit_exceeded` | `orca_credit` | Your Orca credit ran out. Add credit, then continue the session. | | `usage_limit_exceeded` | `provider_quota` | Your own provider account is out of credits or over its billing limit. | -| `usage_limit_exceeded` | none | "This plan's included machine hours for this period are used up" (Free plan). See [plans](/plans#machine-time). | +| `usage_limit_exceeded` | `included_hours` | Free's included machine time for this month is used up and the organization has no credit. The workspace is saved. Add credit, or wait for the next month. See [machine time on Free](/plans#machine-time-on-free). | +| `usage_limit_exceeded` | `free_model_capacity` | The free model's daily capacity across Orca ran out during the turn. It resets at 00:00 UTC. | +| `usage_limit_exceeded` | `orca_suspended` | Work for this organization is suspended. Ask on [Orca's Discord](https://discord.gg/btTYzdzvqq). | | `server_error` | none | "Orca credit is temporarily unavailable": Orca's own OpenRouter account refused the call. Retry later. | | `internal_error` | none | "Orca could not read your credit balance. Try again in a moment." Orca could not check your balance before a call on Orca credit. Send the message again in a moment; your credit is not the problem. | | `request_timeout` | none | "Model request failed: no response from the provider for 10 minutes". Send the message again. | +Two Free plan turn ends are not failures: a turn ends `completed` with the event `orca.free_model.turn_limit` at the free model's calls for a turn, or `orca.turn.time_limit` at Free's turn time. See [Free plan and limits](/troubleshooting#free-plan-and-limits). + Nothing switches who pays on its own. A message refused at admission for lack of credit is HTTP 429 `insufficient_quota`: "Out of Orca credit: add credit, then continue the session". See [when credit runs low](/wallet#when-credit-runs-low). ## Uncertain mutation outcomes diff --git a/reference/overview.mdx b/reference/overview.mdx index acfe9d8..fc85f5e 100644 --- a/reference/overview.mdx +++ b/reference/overview.mdx @@ -71,7 +71,7 @@ Orca implements the OpenAI Agents API. The [OpenAI Agent API quickstart](https:/ ## Rate limits -Each key can make 300 requests a minute, and each organization 600. Past that, requests return HTTP 429 `rate_limit_exceeded`, "Rate limit reached. Retry after N seconds.", with a `Retry-After` header. Your plan also limits how many [sessions run at once](/plans#sessions-at-once). +Each plan sets how many requests a minute an organization can make, and each key or signed-in person in it; the numbers are on the [pricing page](https://orcapods.ai/pricing). Past that, requests return HTTP 429 `rate_limit_exceeded`, "Rate limit reached. Retry after N seconds.", with a `Retry-After` header. Your plan also limits [turns a day, sessions at once, API keys and stored sessions](/plans#limits-per-plan). Routes that need no key, such as the public plans and kits pages and `orca login`, allow 120 requests a minute from one IP address. An IPv6 address counts with the rest of its `/64`. @@ -132,9 +132,9 @@ These routes are Orca's own, outside the OpenAI Agents API. They live at `https: | `state` | `awake`, `going_to_sleep`, `asleep`, `waking`, or `none` when the session has no managed sandbox (no environment, a self-hosted one, or one that failed to start). | | `environment_id` | The session's environment, `null` when `state` is `none`. On `/v1` its `status` reads `disconnected` while asleep and `pending` while waking. | | `last_sleep` | The last time the sandbox went to sleep, or tried to, since it last woke; `null` if it has not. | -| `last_sleep.reason` | Why it went to sleep: `requested` (someone put it to sleep), `idle` (the idle time passed), or `out_of_credit`, `hours_used_up` or `unpriced` (Orca stopped its machine time; see [when credit runs low](/wallet#when-credit-runs-low)). More reasons may be added; show one you do not know as asleep. | -| `last_sleep.outcome` | `null` while going to sleep, then `asleep`, or why it stayed awake: `too_large` (its files are too large to save), `failed` or `interrupted` (a message or a file request reached it first, or the server restarted). | -| `last_sleep.message` | For an outcome other than `asleep`, a message to show the user. | +| `last_sleep.reason` | Why it went to sleep: `requested` (someone put it to sleep), `idle` (the idle time passed), `out_of_credit`, `hours_used_up` or `unpriced` (Orca stopped its machine time; see [when credit runs low](/wallet#when-credit-runs-low)), `suspended` (Orca suspended work for the organization: "Work for this organization is suspended. Ask on Discord: https://discord.gg/btTYzdzvqq"), or `network_on` (a Free sandbox that started without the network, now that its organization has credit, so that its next start has it; see [machine time on Free](/plans#machine-time-on-free)). More reasons may be added; show one you do not know as asleep. | +| `last_sleep.outcome` | `null` while going to sleep, then `asleep`, or why it stayed awake: `too_large` (its files are too large to save), `failed` or `interrupted` (a message or a file request reached it first, or the server restarted); or, on Free, `discarded`: a workspace Orca could not save when it stopped the sandbox was not kept, `state` reads `none`, and the next message starts a new, empty sandbox. | +| `last_sleep.message` | A message to show the user: for an outcome other than `asleep`, for a `suspended` or `network_on` sleep, and for a Free workspace saved near the size Free keeps. | The POST takes an empty body or `{}`. It returns as soon as the sandbox starts going to sleep; poll the GET to see it finish. diff --git a/start-here.mdx b/start-here.mdx index 8cf834a..c94df14 100644 --- a/start-here.mdx +++ b/start-here.mdx @@ -8,7 +8,7 @@ Orca runs AI agents for you in the cloud. You describe an agent once: a model, i In about ten minutes you'll have a research agent of your own that looks things up and cites its sources, give it a sandbox to work in, and then hand the controls to your coding agent and your own code. -**No account yet?** [Sign up](https://app.orcapods.ai/sign-up) first. New accounts start on the Free plan, with no card. +**No account yet?** [Sign up](https://app.orcapods.ai/sign-up) first. New accounts start on the [Free plan](/plans#the-free-plan), with no card. On Free, the dashboard starts new agents on the [free model](/plans#the-free-model), which costs nothing. @@ -93,7 +93,7 @@ Check your credit: orca billing wallet ``` -`balance` is your Orca credit. The amount new accounts start with is on the [pricing page](https://orcapods.ai/pricing). +`balance` is your Orca credit. A new account starts at 0 on the [Free plan](/plans#the-free-plan): [add credit](/wallet#buy-credit) before step 3, or use your own provider key. ## 2. Get your first agent @@ -417,9 +417,9 @@ orca billing wallet # your balance and plan - **Model tokens and web searches** on an Orca credit model are paid from your credit. On your own provider key, that provider bills you. - **Sessions without a sandbox use no machine time.** On this page, only step 4 used any. -- **Sandboxes use [machine time](/plans#machine-time)** from your plan. They also need a small balance of Orca credit, your plan's [minimum balance](/plans#paid-work-needs-a-minimum-balance), since the agent's model calls in the sandbox run on credit too. Delete a sandbox session when you are done with it. +- **Sandboxes use [machine time](/plans#machine-time)** from your plan. On Pro and Max they need your plan's [minimum balance](/plans#paid-work-needs-a-minimum-balance); on Free, the included time runs at any balance, and time past it needs the minimum. Delete a sandbox session when you are done with it. -The numbers for each plan and the minimum balance are on the [pricing page](https://orcapods.ai/pricing). See [usage and wallet](/wallet#read-the-wallet-and-your-usage) for the rest. +The numbers for each plan, the Free plan's free model, and the minimum balance are on the [pricing page](https://orcapods.ai/pricing). See [usage and wallet](/wallet#read-the-wallet-and-your-usage) for the rest. Keep Scout if you like it. To remove everything this page made instead, delete Scout's sessions, then Scout, then the key. Deleting an agent does not delete its sessions. diff --git a/troubleshooting.mdx b/troubleshooting.mdx index 9c85e6f..e899403 100644 --- a/troubleshooting.mdx +++ b/troubleshooting.mdx @@ -26,12 +26,12 @@ Check that the URL is `https://api.orcapods.ai/v1`, spelled exactly, with `https "This action requires the admin role". Setting provider keys, writing vaults and credentials, buying credit, and changing the plan need an admin. Ask an admin of your organization, or have them change your role. See [organizations and roles](/organizations). -"Your plan runs N sessions at once": your organization already has as many sessions with a running turn as your plan allows. Send the message again when one ends, or [upgrade](/plans#sessions-at-once). "Rate limit reached. Retry after N seconds." means too many requests in a minute; wait that long, as the `Retry-After` header says. +"Your plan runs N sessions at once": your organization already has as many sessions with a running turn as your plan allows. Send the message again when one ends, or [upgrade](/plans#sessions-at-once). "Rate limit reached. Retry after N seconds." means too many requests in a minute for your plan, from your organization or from one key or person; wait that long, as the `Retry-After` header says. See [limits per plan](/plans#limits-per-plan). The free model, turns a day and Free sandboxes have their own 429s, under [Free plan and limits](#free-plan-and-limits). "Too many event streams open: 32 at once per key or person. Close one and retry." (or "64 at once per organization"): close streams you no longer read. See [how many streams](/guides/streaming#how-many-streams). "Too many uploads at once: 2 per organization. Retry when one finishes.": wait for an upload to finish, then send the next. -"Out of Orca credit: add credit, then continue the session". Your balance is under your plan's minimum balance, so paid work is paused: turns on Orca credit models or with a managed sandbox are refused, and a running sandbox goes to sleep with its files kept. [Add credit](/wallet#buy-credit), or use a model on your own key in a session without a sandbox. +"Out of Orca credit: add credit, then continue the session". Your balance is under your plan's minimum balance, so paid work is paused: turns on Orca credit models or with a managed sandbox are refused, and a running sandbox goes to sleep with its files kept. [Add credit](/wallet#buy-credit), or use a model on your own key in a session without a sandbox. On Free, the free model keeps working; a 429 `insufficient_quota` with a `param` such as `free_plan` is under [Free plan and limits](#free-plan-and-limits). "The server is receiving too many uploads right now. Retry in a few seconds." Orca is receiving many uploads at once, from all organizations. Nothing is wrong with your file: retry after the `Retry-After` seconds. @@ -67,6 +67,99 @@ Some settings are not available with every provider. `GET /api/providers` lists +## Free plan and limits + +Each entry is a refusal or a turn end from the [Free plan](/plans#the-free-plan) or the [limits per plan](/plans#limits-per-plan), with its way forward. The free model's entries apply on every plan, since Pro and Max run it too. The numbers in the messages are your plan's, on the [pricing page](https://orcapods.ai/pricing). + + + +"Orca's free model is not part of this plan. Switch this session to another model, or run it on your own OpenRouter key." On any plan, the session's model is the free model and your plan has no free-model share. The turn did not start and nothing was charged. [Switch the session](/providers#switch-who-pays-for-one-session) to another model, or run the model on your own OpenRouter key as `openrouter/`. + + +"On Free, this agent's model runs on credit." The agent's model is an Orca credit model other than the free model, and your balance is under the minimum. This is common after copying a kit, since kits name models that run on credit. + +Switch this session to the free model: **Switch to the free model** in the dashboard, or `POST /api/sessions/{session_id}/model` with `{"model": "orca/openrouter/cohere/north-mini-code:free"}` (see [switch who pays](/providers#switch-who-pays-for-one-session)). Or add your own provider key in **Settings**, **Providers**, or [add credit](/wallet#buy-credit) or [upgrade](/plans#change-your-plan). + + +The message names the limit that refused. Nothing was charged. + +- "Your organization has used today's N free-model calls. They reset at 00:00 UTC. Add your own OpenRouter key, or add credit to use another model." Your organization used its daily share of the free model. +- "You have used today's N free-model calls. They reset at 00:00 UTC. Add your own OpenRouter key, or add credit to use another model." You used your own daily share, counted across the organizations you work in. +- "A free-model turn sets aside N calls, and M of today's are left. They reset at 00:00 UTC. Add your own OpenRouter key, or add credit to use another model." Neither share is used up, but fewer calls are left than a turn sets aside when it starts, counting the calls that turns already running hold. + +Wait for 00:00 UTC, add your own OpenRouter key and run the model on it, or [add credit](/wallet#buy-credit) to use another model. + + +"Free model capacity is used up for today. It resets at 00:00 UTC. Add your own OpenRouter key, or add credit to use another model." All organizations together, on every plan, used the free model's daily capacity, before your own share ran out. A turn already running finishes on the calls it set aside when it started. Rarely, if OpenRouter refuses anyway, a running turn ends `failed` with `usage_limit_exceeded` and the same `param`, its work kept. + +Wait for 00:00 UTC, add your own OpenRouter key, or [add credit](/wallet#buy-credit) to use another model. Every plan shares this capacity, so upgrading does not add to it. + + +"Orca's free model is not available right now." OpenRouter withdrew the free model or started charging for it, so Orca does not run it. You are never charged for it. Orca is told, and the pricing page names the free model once it is replaced. + +"Orca's free model is off right now. Switch this session to another model, add your own OpenRouter key, or add credit." Orca has turned the free model off, on every plan. Saving an agent on it is refused the same way. A turn already running finishes. + +On any plan: [switch the session](/providers#switch-who-pays-for-one-session) to another model, add your own OpenRouter key, or [add credit](/wallet#buy-credit) to use another model. + + +"The free model is busy. Try again in a minute, or add your own OpenRouter key." On every plan, it means one of two things: your organization already has a free-model turn running, since an organization runs one at a time, or the free model is running as many turns at once as Orca allows for all organizations together. Send the message again after the `Retry-After` seconds, or run the model on your own OpenRouter key. + +On Free, a turn in a second session while one runs is refused first by the plan's sessions at once, with "Your plan runs N sessions at once"; see [sessions at once](/plans#sessions-at-once). + + +The turn ends `completed` with the event `orca.free_model.turn_limit`: "This turn reached the free model's N calls. Send a message to continue." A turn on the free model, its subagents included, makes at most that many model calls. Its work is kept. + +Send a message, such as "Continue", to start the next turn. For longer turns, use a model on your own key or on credit. + + +The turn ends `completed` with the event `orca.turn.time_limit`: "This turn reached Free's N minutes. Send a message to continue." On Free, every turn has a time limit, on your own key too. Its work is kept. + +Send a message to continue, or [upgrade](/plans#change-your-plan): Pro and Max have no turn time limit. + + +"Your plan runs N turns a day. More at 00:00 UTC, or upgrade." Your organization started its plan's turns for this UTC day. `Retry-After` gives the seconds until 00:00 UTC. + +Wait for 00:00 UTC, or [upgrade](/plans#change-your-plan). + + +A running turn ends `failed` with `usage_limit_exceeded` and `param: "included_hours"`, and a new sandbox start is refused with HTTP 429 `insufficient_quota` and the same `param`: Free's included machine time for this month is used up and the organization has no credit. The sandbox stopped and its workspace is saved, unless it was larger than Free keeps; the message says which. + +[Add credit](/wallet#buy-credit) to continue now: the sandbox runs on at Free's hourly rate, charged to the second. Or wait for the 1st of the month (UTC), or [upgrade](/plans#change-your-plan). See [machine time on Free](/plans#machine-time-on-free). + + +"This session has a new sandbox. The last workspace was larger than the L MiB Free keeps, so it was not saved." (or "This session has a new sandbox. The last workspace could not be saved."). When a Free sandbox stops because the included time or your credit ran out, or because the organization is suspended, a workspace larger than Free keeps, or one whose save failed, is not kept. The session gets the event `orca.sandbox.discarded` at once, and again before the turn of its next message, which starts a new, empty sandbox: the environment's setup runs again, and the conversation stays. Until then, `GET /api/sessions/{session_id}/sandbox` reads `state` `none` and `last_sleep.outcome` `discarded`. + +A sleep that saves a Free workspace at or above 80% of that size warns first, with the event `orca.sandbox.workspace_near_limit` (with `size_bytes` and `limit_bytes`) and the same message in `last_sleep.message`: "This workspace is N MiB of the L MiB Free keeps. Over L MiB it is not saved when the sandbox sleeps, and the next message starts an empty sandbox. Delete files in /workspace to stay under it." L is Free's `snapshot_max_bytes` in `GET /api/public/plans`, in MiB. Delete files in `/workspace`, or keep what matters as [files](/guides/files-and-artifacts). + + +"Free machine time is busy right now. Try again in a few minutes, or upgrade." Only a few Free sandboxes run at once across all of Orca, and they are all running. Start or wake the sandbox again after the `Retry-After` seconds, use a session without a sandbox, or [upgrade](/plans#change-your-plan). + + +"Your organization keeps N sessions, the most it can on Free. Delete one to start another." Your organization keeps as many sessions as its plan allows. Delete sessions you no longer need (`orca sessions delete `, or `client.beta.agents.sessions.delete(session_id)`), or [upgrade](/plans#change-your-plan). Deleting a session deletes its artifacts. + +The same code on a new API key means the organization has as many active keys as its plan allows: revoke one under **Settings**, **API keys**. + + +"Network is off on Free sandboxes until your organization has credit. Add credit, or write to us on Discord (https://discord.gg/btTYzdzvqq)." + +On Free, a sandbox has no network until your organization has credit, bought or granted. A command that fails for lack of network, such as `pip install` or `curl`, keeps the system's own error, and its output ends with one more line: + +```text +[Orca] Network is off on Free sandboxes until your organization has credit. Add credit, or write to us on Discord (https://discord.gg/btTYzdzvqq). +``` + +The session also gets the event `orca.network.off` when the sandbox starts, and `orca billing wallet` shows the same line. [Add credit](/wallet#buy-credit), or write to us on [Discord](https://discord.gg/btTYzdzvqq); sandboxes started after that follow the session's environment. Until then, give the agent what it needs as [files](/guides/files-and-artifacts). + +A sandbox already running without the network gets it after its next sleep: once your organization has credit, it goes to sleep at once if no turn is running, or when the running turn ends, and `GET /api/sessions/{session_id}/sandbox` reads `last_sleep.reason` `network_on`, with "The sandbox slept so that its next start has the network, now that your organization has credit." Its next message wakes it with the network. Until then, the wallet's `network` field counts such sandboxes and says "Your organization has credit, so the network is on. A running sandbox that started without it gets it after its next sleep." + + +"Orca credit runs only Orca's free model at no charge. Run other free models on your own OpenRouter key." Use the free model, `orca/openrouter/cohere/north-mini-code:free`, or run the other model on your own OpenRouter key as `openrouter/`. See [which models Free can use](/providers#which-models-free-can-use). + + +"Work for this organization is suspended. Ask on Discord: https://discord.gg/btTYzdzvqq" Orca suspended paid work, the free model and the included machine time for this organization. Starting or waking a sandbox and uploading a file are refused with this 403. A running turn ends with `usage_limit_exceeded` and `param: "orca_suspended"`, and its sandbox goes to sleep: `GET /api/sessions/{session_id}/sandbox` reads `last_sleep.reason` `suspended`, with the same message. Ask in **#help** on [Orca's Discord](https://discord.gg/btTYzdzvqq). + + + ## Turns @@ -109,10 +202,7 @@ On hosted Orca, `self_hosted` environments are coming soon, and `network.access: Only with an Orca server you run yourself. `workspace_directory` must be an absolute path with no symbolic links in it. On macOS `/tmp` is a symlink; use the real path. -HTTP 429 `insufficient_quota` means the sandbox could not run a minute: your balance is below the [minimum](/plans#paid-work-needs-a-minimum-balance), or on Free the included machine time is used up. HTTP 429 `rate_limit_exceeded` means your plan's [sandboxes at once](/plans#sandboxes-at-once) are running: wait for an idle one to go to sleep, put one to sleep now with `orca sessions sleep `, or delete a session you no longer need. HTTP 403 `storage_quota_exceeded` means your organization is at its [storage limit](/plans#storage): delete files, skills or sessions. - - -"This plan's included machine hours for this period are used up": a Free plan has used its included machine time (on the [pricing page](https://orcapods.ai/pricing)). Upgrade to Pro or Max, or wait for the next month. See [plans](/plans#machine-time). +HTTP 429 `insufficient_quota` means the sandbox could not run a minute: your balance is below the [minimum](/plans#paid-work-needs-a-minimum-balance), or on Free the included machine time is used up and the organization has no credit (`param` `included_hours`, under [Free plan and limits](#free-plan-and-limits)). HTTP 429 `rate_limit_exceeded` means your plan's [sandboxes at once](/plans#sandboxes-at-once) are running: wait for an idle one to go to sleep, put one to sleep now with `orca sessions sleep `, or delete a session you no longer need. HTTP 403 `storage_quota_exceeded` means your organization is at its [storage limit](/plans#storage): delete files, skills or sessions. diff --git a/wallet.mdx b/wallet.mdx index 3e13b72..11ae5f9 100644 --- a/wallet.mdx +++ b/wallet.mdx @@ -3,7 +3,7 @@ title: "Wallet and credit" description: "What Orca credit pays for, how to buy it, what happens when it runs low, and how to read your usage." --- -Each organization has one **wallet** of Orca credit. Your balance is everything credited minus everything charged. Credit never expires. +Each organization has one **wallet** of Orca credit. Your balance is everything credited minus everything charged. Credit you buy never expires; credit Orca grants does, on a date set when it is granted. See [granted credit and paid credit](#granted-credit-and-paid-credit). ## What credit pays for @@ -15,12 +15,48 @@ Each organization has one **wallet** of Orca credit. Your balance is everything Tokens on your own provider key (`/`) are billed by that provider. Orca charges nothing for them. +The [free model](/plans#the-free-model) costs nothing and needs no credit, on every plan. On Free, credit pays for Orca credit models, as on Pro and Max, their web searches and the free model's, and machine time past the included time. + ## Where credit comes from -- **Signup credit.** A new account starts with the signup credit on the [pricing page](https://orcapods.ai/pricing). It is given once per person: a second organization you create starts with none. -- **Credit packs.** An admin buys a pack. Each pack's processing fee is taken from the pack; the [pricing page](https://orcapods.ai/pricing) gives the fee and what a pack adds after it. The packs on sale, with the credit each adds and its fee, are listed on the dashboard's **Wallet** page and by `orca billing wallet`. +- **Credit packs.** Paid credit: it never expires. An admin buys a pack. Each pack's processing fee is taken from the pack; the [pricing page](https://orcapods.ai/pricing) gives the fee and what a pack adds after it. The packs on sale, with the credit each adds and its fee, are listed on the dashboard's **Wallet** page and by `orca billing wallet`. + +On Free: "Need more to try Orca? Write to us on Discord (https://discord.gg/btTYzdzvqq)." Whether Orca grants credit, how much and for how long is at its discretion, under section 6 of the [Terms of Service](https://orcapods.ai/terms). + +No account starts with credit, and plans do not add credit. A plan's included machine time is not a second balance. Signup credit that earlier accounts were given pays under the same rules and expires as [granted credit](#granted-credit-and-paid-credit). + +## Granted credit and paid credit + +Your balance has two parts: + +- **Paid credit** is credit you bought. It never expires. +- **Granted credit** is credit Orca added at no charge, at its discretion under section 6 of the [Terms of Service](https://orcapods.ai/terms). Each grant has an expiry date, set when it is granted and never moved. The date comes from the grant's reason, by default (`grant_expiry_months` in `GET /api/public/plans`), or is set for that grant. You can use a grant until the end of the day before its `expires_at` (UTC). + +How they are spent: + +- **Granted credit is used first**, the grant that expires soonest first, so your paid credit is kept. A [late charge](#calls-charged-later) follows the same order at the moment it is written. +- **At expiry, whatever is left of a grant is removed.** It shows in the wallet as `expired_micro_usd`. Paid credit is never touched. +- **An email goes to your organization's admins 15 days before** a grant expires, once per grant, with the amount left. None is sent when nothing is left. + +Granted credit pays for the same things as paid credit, on every plan. + +Signup credit that earlier accounts received is treated as granted credit: it expires 2 months after this change went live, with the same email 15 days before, and appears in the wallet's granted credit list. -Plans do not add credit. A plan's included machine time is not a second balance. +The wallet shows each grant with the amount left and its date. In the dashboard, **Wallet** shows the **Granted credit** and **Paid credit** figures and lists each grant. `orca billing wallet` prints one line per grant and one for paid credit: + +```text +granted credit $12.40 left of $20.00, expires 4 Dec 2026 +paid credit $18.20 (never expires) +``` + +`GET /api/billing/wallet` returns: + +| Field | Meaning | +| --- | --- | +| `granted_credit_micro_usd` | Granted credit left now | +| `paid_credit_micro_usd` | Paid credit: the balance minus granted credit. It never expires. | +| `granted_credit` | Each grant with something left, soonest expiry first: `[{kind, grant_reason, granted_micro_usd, left_micro_usd, granted_at, expires_at}]`, times in Unix seconds. `kind` is `grant`, or `signup` for signup credit an earlier account received. | +| `expired_micro_usd` | Granted credit removed at expiry, in total | ## Buy credit @@ -51,12 +87,13 @@ curl --fail-with-body -X POST "$ORCA_ORIGIN/api/billing/checkout" \ ## When credit runs low -Orca pauses **paid work** when your balance is below your plan's **minimum balance**, on the [pricing page](https://orcapods.ai/pricing) and in the wallet as `min_balance_micro_usd`. Paid work is model calls and web searches on Orca credit, and managed sandboxes, including their included machine time. +Orca pauses **paid work** when your balance is below your plan's **minimum balance**, on the [pricing page](https://orcapods.ai/pricing) and in the wallet as `min_balance_micro_usd`. Paid work is model calls and web searches on Orca credit, and managed sandboxes, including their included machine time on Pro and Max. On Free, the free model and the included machine time are not paid work: they run at any balance. - **A new message** that needs paid work is refused with HTTP 429 `insufficient_quota`: "Out of Orca credit: add credit, then continue the session". - **A new sandbox**, or waking one that is asleep, is refused the same way, and so is a file or skill upload: "Out of Orca credit: add credit to upload files". - **A running turn** that reaches the minimum ends `failed` with `usage_limit_exceeded` and `param: "orca_credit"`. The conversation is saved. A managed sandbox goes to sleep with its files kept. - **Turns on your own provider key** in a session without a sandbox keep working. +- **On Free**, a message to an agent whose model runs on credit is refused with HTTP 429 `insufficient_quota` and `param: "free_plan"`: "On Free, this agent's model runs on credit." The message offers three ways on: switch the session to the free model, add your own provider key in **Settings**, **Providers**, or add credit or upgrade. A call on Orca credit whose cost OpenRouter did not report when it ended, such as a call you cancel, a session deleted mid-reply, a stream cut short or a restart on Orca's side, is charged later from OpenRouter's own record of that call, usually within minutes and at most an hour after it, never from an estimate. Its charge is dated by the call and shows in your usage as **Charged later**. Until it arrives, the call still counts among the paid calls your organization can have running at once, so with several calls cancelled in a row a new call may wait a moment for its turn. Because the charge arrives after the call, it can take your balance below the minimum or below zero; paid work is then paused until credit brings the balance back to the minimum, and a top-up pays what is below zero first. @@ -68,11 +105,22 @@ The dashboard shows this as **Out of Orca credit** on the turn, with **Add credi | Route | Returns | | --- | --- | -| `GET /api/billing/wallet` | Balance, total credited and charged, the minimum balance, `paid_work_paused`, your plan and period, included and used machine time, and every field of `GET /api/public/plans` | -| `GET /api/public/plans` | Every plan fact, with no key needed: each plan's price, included machine time, extra machine time rate, sessions at once, minimum balance and storage limit (`stored_bytes`); the signup credit; OpenRouter's fee (`openrouter_fee_bps`); the processing fee and the packs on sale; the machine; and `idle_seconds`, how long a sandbox idles before it goes to sleep. The pricing page is built from it. | +| `GET /api/billing/wallet` | Balance, total credited and charged, the minimum balance, `paid_work_paused`, your plan and period, included and used machine time, the fields below, and every field of `GET /api/public/plans` | +| `GET /api/public/plans` | Every plan fact, with no key needed: each plan's price, included machine time, extra machine time rate, sessions at once, minimum balance and storage limit (`stored_bytes`); the [limits per plan](/plans#limits-per-plan); the free model with its share and daily capacity (`free_model`); OpenRouter's fee (`openrouter_fee_bps`); the processing fee and the packs on sale; the machine; and `idle_seconds`, how long a sandbox idles before it goes to sleep. The pricing page is built from it. | | `GET /api/usage` | Totals per meter for a period (30 days by default, or `start` and `end` in Unix seconds), a `series` over time (below), and totals grouped by `model`, `provider`, `credential`, `session`, or `agent` with `group_by`. With `group_by`, `group_costs` gives each key's cost across every meter; they add up to the period's `cost_micro_usd`. `session=` narrows it to one session. | | `GET /api/usage/events` | The newest usage rows, each with its cost. Filter with `meter`, or `charged=true` for only the rows that cost something; page with `limit` and `after`. A row at cost 0 whose money is on another row of the same operation has `charged_on`: `call` when its call's row carries the money (a token row), `search` when the search's row does (the search's tool call, or its call when the whole cost is on the search), `late` when the operation was [charged later](#calls-charged-later) and its `late_charges` row does (every row of that call or search, its call or search row included). Any other row has none, and its own cost is what it was charged. Each row also has `charge_for`: on a `late_charges` row, the id of the row it charges; `null` on every other row. | +The wallet's free model and Free plan fields: + +| Field | Meaning | +| --- | --- | +| `free_model_today` | On every plan with a free-model share, `{calls_today, calls_per_day, available}`: your organization's free-model calls today, its share, and whether the free model can start a turn now. `available` is `false` while Orca has the free model turned off. `null` on a plan with no share. (`free_model`, from the plan facts, names the free models.) | +| `included_hours_withheld` | `true` when Orca has withheld Free's included machine time and the free model from this organization. Credit you add and your own keys still work. See [free use can be withheld](/plans#free-use-can-be-withheld). | +| `network` | `{"off": true, "message": "Network is off on Free sandboxes until your organization has credit. Add credit, or write to us on Discord (https://discord.gg/btTYzdzvqq)."}` while a Free organization's sandboxes have no network, and `{"off": false}` once it has credit, bought or granted. While a sandbox that started without the network is still running, `{"off": false, "sandboxes_without_network": 1, "message": "Your organization has credit, so the network is on. A running sandbox that started without it gets it after its next sleep."}`, with the count of such sandboxes. `orca billing wallet` prints the message. See [machine time on Free](/plans#machine-time-on-free). | +| `credit_request` | On Free, `{message, url}`: "Need more to try Orca? Write to us on Discord (https://discord.gg/btTYzdzvqq)." and the Discord link. | + +`signup_credit_micro_usd` in `GET /api/public/plans` is always 0 and will be removed. Do not read it. + Money is in micro-USD (millionths of a dollar). Every member can read the wallet and usage. `balance_micro_usd` can be negative after a [late charge](#calls-charged-later); paid work stays paused until credit brings it back to `min_balance_micro_usd`. `series` is the period's usage over time: `{"interval": "hour" | "day", "points": [{"start", "meter", "quantity", "cost_micro_usd"}]}`. The server picks the interval from the period: `hour` for up to 2 days, `day` for up to 366 days, and `series` is `null` for a longer period. Each point's `start` is its bucket's start in Unix seconds, a UTC hour or a UTC day; a row is in the bucket that holds its `window_start`. Every bucket of the period is there for every meter, at zero when nothing was used, so each meter's points add up to its totals. The first and last buckets are cut by the period.