diff --git a/cli/commands.mdx b/cli/commands.mdx index 5cb2179..cb77c7d 100644 --- a/cli/commands.mdx +++ b/cli/commands.mdx @@ -70,7 +70,7 @@ 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). -`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. An Orca credit model that [free credit](/wallet#what-free-credit-pays-for) does not pay for is marked `paid credit only`. `--payer orca` or `--payer anthropic` keeps one group, and `--json` prints the server's list. ```bash orca models --payer orca | grep luna @@ -151,6 +151,8 @@ orca billing manage [--no-open] # the billing portal `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). +`orca billing wallet` also shows whether free credit is locked until a card is added, today's free credit spend against the [daily limit](/wallet#daily-limit), and whether paid work is suspended; `--json` prints the server's fields. The CLI cannot add a card: the person who created the organization adds it in the dashboard's **Wallet**. See [the signup credit needs a card](/wallet#the-signup-credit-needs-a-card). + ## MCP server ```text diff --git a/dashboard/agents-and-sessions.mdx b/dashboard/agents-and-sessions.mdx index 624e6e5..3195624 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**. 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. An Orca credit model that [free credit](/wallet#what-free-credit-pays-for) does not pay for is marked **Paid credit only**. If you pick one while your organization has free credit only, the form says so; you can still save the agent. 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**. @@ -53,6 +53,18 @@ If your Orca credit, or your own provider account's quota, runs out during a tur - **Continue** sends "Continue" to pick up where the turn stopped, once you have topped up. - **Switch who pays** moves this session to the other side. +When free credit cannot pay for the next call, the notice says why instead, with what to do: + +| Notice | Actions | +| --- | --- | +| **Add a card to get your free credit** | **Add card**, **Switch to your own key**. The card is never charged. | +| **Paid credit needed for this model** | **Add credit**, **Switch model** | +| **Today's free credit is used** | **Add credit**, **Continue** (more free credit is available at 00:00 UTC) | +| **Free credit is paused** | **Add credit**, **Ask on Discord** | +| **Paid work is suspended** | **Ask on Discord** | + +See [free credit errors](/reference/errors#free-credit-errors). + Nothing switches on its own. ### Switch who pays for one session diff --git a/dashboard/overview.mdx b/dashboard/overview.mdx index 43945f5..2812dfb 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 gets a [signup credit](/wallet#the-signup-credit-needs-a-card) of free Orca credit once the person who created the organization adds a card in **Wallet**. The card is never charged. To sign out, open your avatar menu at the top right. @@ -22,7 +22,7 @@ The left rail has: | **Environments**: All environments, Templates | The sandboxes sessions run in, and saved sandbox setups | | **Resources**: Skills, Files, Vaults, Kits | [Skills](/guides/skills), uploaded [files](/guides/files-and-artifacts), [vaults](/guides/credentials), and [kits](/kits) | | **Usage** | What your organization used and what it cost. See [wallet and usage](/dashboard/wallet-and-usage). | -| **Wallet** | Your balance, machine time, and credit packs | +| **Wallet** | Your balance, machine time, credit packs, and the card that unlocks free credit | | **Settings** | General, BYOK (your own provider keys), API keys, and Plans | The organization switcher sits at the top of the rail. Search pages with ⌘K (Ctrl K on Windows and Linux). diff --git a/dashboard/wallet-and-usage.mdx b/dashboard/wallet-and-usage.mdx index 27719d5..16e6698 100644 --- a/dashboard/wallet-and-usage.mdx +++ b/dashboard/wallet-and-usage.mdx @@ -16,6 +16,22 @@ Open **Wallet**. It shows your plan and the current period, and four figures: When the balance is under your plan's minimum balance, the page says "Paid work is paused" and asks you to add credit. See [when credit runs low](/wallet#when-credit-runs-low). +The Wallet also shows today's free credit spend against the [daily limit](/wallet#daily-limit), and how much signup credit is locked while a card is still needed. A banner says when free credit is paused, or when paid work for the organization is suspended ("Paid work for this organization is suspended. Ask on Discord."). + +## Add a card for free credit + +Only the person who created the organization can do this, signed in to the dashboard. The card is never charged: it only confirms a real person and prevents abuse. Your bank may show a temporary authorization, which is released and never collected. Adding a card starts no plan and no purchase. + +1. Open **Wallet**. The **Free credit** section says "Add a card to get your free credit. We won't charge it. It's only to confirm you're a real person and to prevent abuse." The same notice appears once after you sign up, with **Add card** and **Not now**; **Not now** leaves the step in the Wallet. +2. Choose **Add card** and type in a credit or debit card in your name. Your bank may ask you to confirm it. +3. Once the card is checked, the section says "Unlocked with your card. We haven't charged it." and the signup credit is in your balance. An email confirms it. Orca keeps nothing it could show you about the card. + +- **A refused card**: if your bank declines it, the card form says so and saves nothing. A card added through a wallet (Apple Pay, Google Pay, Link, Cash App Pay) is refused: add the card itself. Nothing was charged. +- **An organization that already had the signup credit** sees what is left of it as locked until you add a card. Adding one unlocks it. +- **"Free credit isn't available for this organization"** means Orca did not give it. Buy credit to start, or ask on [Discord](https://discord.gg/btTYzdzvqq). + +Free credit pays only for models at or under a price ceiling, up to a daily limit; see [what free credit pays for](/wallet#what-free-credit-pays-for). + ## Buy credit You need the admin role. diff --git a/glossary.mdx b/glossary.mdx index 899ba77..00975ca 100644 --- a/glossary.mdx +++ b/glossary.mdx @@ -25,6 +25,8 @@ 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 credit**: The signup credit and credit Orca grants. It pays only for Orca credit models at or under a price ceiling, up to a daily limit; credit you buy pays for any model. The signup credit needs a card, which is never charged. See [what free credit pays for](/wallet#what-free-credit-pays-for). + **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). **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). diff --git a/introduction.mdx b/introduction.mdx index 2d6bc61..5528fb9 100644 --- a/introduction.mdx +++ b/introduction.mdx @@ -42,7 +42,7 @@ 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, and gets a [signup credit](/wallet#the-signup-credit-needs-a-card) of free Orca credit once you add a card, which is never charged. - **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)). diff --git a/kits/cram-coach.mdx b/kits/cram-coach.mdx index 24254b7..20bb666 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 with free credit and no card, and every step on this page runs on it. +**No account yet?** [Sign up](https://app.orcapods.ai/sign-up) first. New accounts get [free credit](/wallet#the-signup-credit-needs-a-card) once they add a card, which is never charged, and every step on this page runs on it. ## What it can read diff --git a/kits/margin-check.mdx b/kits/margin-check.mdx index 48c8e9c..1ec671d 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 with free credit and no card, and every step on this page runs on it. +**No account yet?** [Sign up](https://app.orcapods.ai/sign-up) first. New accounts get [free credit](/wallet#the-signup-credit-needs-a-card) once they add a card, which is never charged, and every step on this page runs on it. ## What it knows diff --git a/kits/scout.mdx b/kits/scout.mdx index 1d1fc7d..968e54d 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 with free credit and no card, and every step on this page runs on it. +**No account yet?** [Sign up](https://app.orcapods.ai/sign-up) first. New accounts get [free credit](/wallet#the-signup-credit-needs-a-card) once they add a card, which is never charged, and every step on this page runs on it. ## What you'll do diff --git a/kits/seo-helper.mdx b/kits/seo-helper.mdx index 133ecab..8867960 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 with free credit and no card, and every step on this page runs on it, apart from DataForSEO's own charges. +**No account yet?** [Sign up](https://app.orcapods.ai/sign-up) first. New accounts get [free credit](/wallet#the-signup-credit-needs-a-card) once they add a card, which is never charged, and every step on this page runs on it, apart from DataForSEO's own charges. ## What you need diff --git a/plans.mdx b/plans.mdx index 2909052..77ba67d 100644 --- a/plans.mdx +++ b/plans.mdx @@ -13,7 +13,7 @@ Each plan sets: - **Sessions at once.** - **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. Every new account gets a [signup credit](/wallet#the-signup-credit-needs-a-card) once it adds a card, which is never charged. Free credit pays only for models at or under a price ceiling, up to a daily limit, both on the [pricing page](https://orcapods.ai/pricing); see [what free credit pays for](/wallet#what-free-credit-pays-for). Credit is bought separately; see [wallet and credit](/wallet). ## Change your plan diff --git a/providers.mdx b/providers.mdx index 6a81b7a..7af09fa 100644 --- a/providers.mdx +++ b/providers.mdx @@ -38,7 +38,8 @@ 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, + "free_credit": true}]}, {"payer": "own_key", "provider": "openai", "label": "OpenAI", "available": true, "models": [{"id": "openai/gpt-5.6-luna"}]} ] @@ -53,6 +54,14 @@ 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 credit pays for + +[Free credit](/wallet#what-free-credit-pays-for) (the signup credit and credit Orca grants) pays only for Orca credit models at or under a price ceiling on input and output tokens, given on the [pricing page](https://orcapods.ai/pricing). A model is judged on its highest listed price, including long-prompt tiers. Models above the ceiling, and models with no fixed price (OpenRouter's auto router and other routers), need credit you buy. Credit you buy pays for any model. + +In `GET /api/models`, each Orca credit model has `free_credit`: `true` when free credit pays for it, `false` when it needs credit you buy. The dashboard's model picker marks `false` models **Paid credit only**, and `orca models` marks them `paid credit only`. `/v1/models` does not carry it. The model names elsewhere on this page are examples of names, not of what free credit covers: check `free_credit` for any model you pick. + +Whether free credit pays is decided when a turn starts, so a price change applies from the next turn, and subagents follow their lead. A turn on a model free credit does not cover, with no paid credit to pay for it, is refused with `paid_credit_required`; see [free credit errors](/reference/errors#free-credit-errors). + ## 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. @@ -121,7 +130,7 @@ A turn checks your key again when it starts. Nothing ever falls back from your k ## Web search -`web_search` runs on your agent's own model, through the same route and key as its calls, and whoever pays for that model pays for the search. Subagents search on their lead's model. A search never falls back to Orca credit or to another model. +`web_search` runs on your agent's own model, through the same route and key as its calls, and whoever pays for that model pays for the search. On Orca credit, free credit pays for a search only when it pays for the session's model, and the search counts toward free credit's [daily limit](/wallet#daily-limit). Subagents search on their lead's model. A search never falls back to Orca credit or to another model. | Model | How it searches | Who pays | | --- | --- | --- | @@ -150,6 +159,11 @@ The turn goes on. The search's `web_search_call` item has `status` `incomplete`, | --- | --- | --- | | `out_of_credit` | Out of Orca credit: add credit, then continue the session | [Add credit](/wallet#buy-credit), then continue the session. | | `balance_unavailable` | Orca could not read your credit balance. Try again in a moment. | Try again in a moment. Your credit is not the problem. | +| `free_credit_locked` | Add a card to get your free credit. We won't charge it: it's only to confirm you're a real person. Add it in the Wallet: https://app.orcapods.ai/wallet | The organization's creator adds a card in the dashboard's **Wallet**; it is never charged. Or buy credit. | +| `paid_credit_required` | This model needs paid credit. Free credit covers models up to the price ceiling. Add credit, or choose a model free credit covers. | [Buy credit](/wallet#buy-credit), or switch the session to a model with `free_credit: true`. | +| `free_credit_daily_limit` | Today's free credit is used: free credit pays for up to the daily limit, and more is available at 00:00 UTC. Add credit to keep going now. | Wait for 00:00 UTC, or buy credit. | +| `free_credit_paused` | Free credit is paused for this organization. Add credit to keep going, or ask on Discord. | Buy credit, or ask on [Discord](https://discord.gg/btTYzdzvqq). | +| `suspended` | Paid work for this organization is suspended. Ask on Discord. | Ask on [Discord](https://discord.gg/btTYzdzvqq). | | `missing_key` | Add your `` key in Settings, Providers, or switch this session to Orca credit | Add the key, or [switch the session](#switch-who-pays-for-one-session) to Orca credit. | | `unavailable` | Web search is not available with your `` key. Use an Orca credit model or an OpenRouter, OpenAI or Anthropic key, or turn web search off. | Switch the session to a model that searches, or set `mode: disabled`. | | `no_search` | `` answered without searching the web. Use a model with built-in web search: docs.orcapods.ai/providers#web-search | Use a model with built-in web search, as above. | @@ -163,7 +177,7 @@ The turn goes on. The search's `web_search_call` item has `status` `incomplete`, On Orca credit, a search costs the provider's search fee ($0.01 a search) plus your model's tokens for reading the results, each at OpenRouter's price plus [their fee](https://orcapods.ai/pricing). So it depends on the model: for example about $0.011 on `orca/openrouter/openai/gpt-5.6-luna` and about $0.13 on `orca/openrouter/anthropic/claude-sonnet-4.6`. - The tokens are charged on the search's **Model calls** row, and the search fee on its **Web searches** row. -- A search is charged what the provider reported, whatever the outcome, including a search whose answer Orca could not use. A search refused at the credit check (`out_of_credit` or `balance_unavailable`) never runs and costs nothing. +- A search is charged what the provider reported, whatever the outcome, including a search whose answer Orca could not use. A search refused at the credit check (`out_of_credit`, `balance_unavailable`, or one of the free credit codes above) never runs and costs nothing. - On your own key, the provider bills the search and Orca charges nothing. ### What is counted @@ -176,7 +190,7 @@ Who pays is fixed when a turn starts: Orca reads your keys then, and every call Removing a key makes the next turn of sessions using it fail with HTTP 400 on `agent.model`; it never moves them to Orca credit. Restore a valid key before continuing affected sessions. -When credit runs out on either side, the turn ends with `usage_limit_exceeded` and a `param` that says whose: `orca_credit` for your Orca credit, `provider_quota` for your own key's provider account. See [errors](/reference/errors#turn-errors). +When credit runs out on either side, the turn ends with `usage_limit_exceeded` and a `param` that says whose: `orca_credit` for your Orca credit, `provider_quota` for your own key's provider account. When free credit cannot pay the next call and credit you bought cannot either, the `param` says why, such as `paid_credit_required` or `free_credit_daily_limit`. See [errors](/reference/errors#turn-errors). ## Switch who pays for one session diff --git a/reference/errors.mdx b/reference/errors.mdx index 48be802..29903e6 100644 --- a/reference/errors.mdx +++ b/reference/errors.mdx @@ -13,12 +13,12 @@ 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 | `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 | `permission_denied`, `organization_required` | +| `403 Forbidden` | Your role does not allow this ("This action requires the admin role"), or a dashboard request has no organization; paid work for your organization is suspended | `permission_denied`, `organization_required`, `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 | `invalid_request` | -| `429 Too Many Requests` | Too many requests a minute, or your plan's [sessions at once](/plans#sessions-at-once) are all running; out of Orca credit | `rate_limit_exceeded`, `insufficient_quota` | +| `429 Too Many Requests` | Too many requests a minute, or your plan's [sessions at once](/plans#sessions-at-once) are all running; out of Orca credit, or free credit cannot pay (`param` says why, see [free credit errors](#free-credit-errors)) | `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, or your balance could not be read ("Orca could not read your credit balance. Try again in a moment."). Retry after `Retry-After`. | `sandbox_capacity`, `balance_unavailable` | @@ -35,12 +35,28 @@ A turn that fails carries `error.code` and `error.message`, and, when credit ran | --- | --- | --- | | `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` | `free_credit_locked`, `paid_credit_required`, `free_credit_daily_limit`, `free_credit_paused`, `orca_suspended` | Free credit could not pay for the next call, and credit you bought could not either, or paid work is suspended. See [free credit errors](#free-credit-errors). | | `usage_limit_exceeded` | none | "This plan's included machine hours for this period are used up" (Free plan). See [plans](/plans#machine-time). | | `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. | -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). +Nothing switches who pays on its own. A message refused at admission for lack of credit is HTTP 429 `insufficient_quota` with no `param`: "Out of Orca credit: add credit, then continue the session". See [when credit runs low](/wallet#when-credit-runs-low). + +## Free credit errors + +[Free credit](/wallet#what-free-credit-pays-for) (the signup credit and credit Orca grants) pays only for models at or under a price ceiling, up to a daily limit, and the signup credit needs a card. When free credit cannot pay and credit you bought cannot either, Orca refuses in three places: a new message at admission (HTTP 429 `insufficient_quota` with a `param`), a running turn's next call (`usage_limit_exceeded` with a `param`; the conversation is saved), and a web search (the `web_search_call` item's `error.code`, see [when a search fails](/providers#when-a-search-fails)). Credit you buy is never limited, so buying credit clears every one of these except a suspension. + +| Admission and turn `param` | Search `code` | Message | What to do | +| --- | --- | --- | --- | +| `free_credit_locked` | `free_credit_locked` | "Add a card to get your free credit. We won't charge it: it's only to confirm you're a real person. Add it in the Wallet: https://app.orcapods.ai/wallet" | The person who created the organization adds a card in the dashboard's **Wallet**; it is never charged. See [the signup credit needs a card](/wallet#the-signup-credit-needs-a-card). Until then, buy credit or use a model on your own provider key. | +| `paid_credit_required` | `paid_credit_required` | "This model needs paid credit. Free credit covers models up to the price ceiling on input and output tokens. Add credit, or choose a model free credit covers." | [Buy credit](/wallet#buy-credit), or [switch the session](/providers#switch-who-pays-for-one-session) to a model with `free_credit: true` in `GET /api/models` (no **Paid credit only** mark in the dashboard). | +| `free_credit_daily_limit` | `free_credit_daily_limit` | "Today's free credit is used: free credit pays for up to the daily limit, and more is available at 00:00 UTC. Add credit to keep going now." | Continue after 00:00 UTC, or buy credit to keep going now. See [daily limit](/wallet#daily-limit). | +| `free_credit_paused` | `free_credit_paused` | "Free credit is paused for this organization. Add credit to keep going, or ask on Discord: https://discord.gg/btTYzdzvqq" | Buy credit to keep going, or ask on [Discord](https://discord.gg/btTYzdzvqq). | + +The messages give the amounts in dollars; on this page they read "your free credit", "the price ceiling" and "the daily limit", which the [pricing page](https://orcapods.ai/pricing) gives. + +**A suspended organization.** When paid work for an organization is suspended, a new message that can cost money is refused with HTTP 403 `organization_suspended`, a running turn's next paid call ends it with `usage_limit_exceeded` and `param` `orca_suspended`, and a web search fails with `suspended`. The message is "Paid work for this organization is suspended. Ask on Discord: https://discord.gg/btTYzdzvqq". Ask on [Discord](https://discord.gg/btTYzdzvqq). Turns on your own provider key in a session without a sandbox keep working. ## Uncertain mutation outcomes diff --git a/scripts/check_docs.py b/scripts/check_docs.py index fb2cbae..3c0bb1e 100644 --- a/scripts/check_docs.py +++ b/scripts/check_docs.py @@ -21,6 +21,8 @@ # hours or session count typed as a number. PLAN_NUMBER = ( r"\d+ vCPU|\d+ GiB of (?:memory|disk)" + # Free credit's price ceiling and daily limit (orca-design #122). + r"|\$\d[\d,.]* ?/ ?M\b|\$\d[\d,.]* (?:a|per|each) (?:UTC )?day|\$\d[\d,.]* (?:a|per) million" r"|\$\d[\d,.]* (?:a|an|per) (?:month|hour)|\| \$\d" r"|\$\d[\d,.]* (?:of (?:Orca )?credit|minimum|pack)|(?:below|under|at least) \**\$\d" r"|\d+(?:\.\d+)?% of the price|(?:paused after|used for) \d+ minutes" diff --git a/start-here.mdx b/start-here.mdx index 0188ecc..759e3d3 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 with free credit and no card, and every step on this page runs on it. +**No account yet?** [Sign up](https://app.orcapods.ai/sign-up) first. New accounts get [free credit](/wallet#the-signup-credit-needs-a-card) once they add a card, which is never charged, and every step on this page runs on it. ## Why Orca @@ -85,7 +85,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's signup credit is free credit, unlocked once the person who created the organization adds a card in the dashboard's **Wallet**; the card is never charged, and the CLI cannot add one. Until then `orca billing wallet` shows free credit as locked. The amount is on the [pricing page](https://orcapods.ai/pricing); see [the signup credit needs a card](/wallet#the-signup-credit-needs-a-card). ## 2. Get your first agent @@ -411,7 +411,7 @@ orca billing wallet # your balance and plan - **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. -The numbers for each plan, the signup credit, 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 signup credit, the minimum balance, and free credit's price ceiling and daily limit are on the [pricing page](https://orcapods.ai/pricing). Free credit pays only for models at or under the price ceiling, up to the daily limit; see [what free credit pays for](/wallet#what-free-credit-pays-for). 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 ce94845..f4f7ec1 100644 --- a/troubleshooting.mdx +++ b/troubleshooting.mdx @@ -30,6 +30,11 @@ Check that the URL is `https://api.orcapods.ai/v1`, spelled exactly, with `https "Out of Orca credit: add credit, then continue the session". Your balance is under your plan's minimum balance, so Orca credit models and managed sandboxes are paused. [Add credit](/wallet#buy-credit), or use a model on your own key in a session without a sandbox. + +With a `param`, free credit could not pay: see [free credit](#free-credit) below. + + +"Paid work for this organization is suspended." Turns that can cost money are refused, and a running turn ends with `usage_limit_exceeded` and `param` `orca_suspended`. Ask on [Discord](https://discord.gg/btTYzdzvqq). Turns on your own provider key in a session without a sandbox keep working. "Orca could not read your credit balance. Try again in a moment." Orca could not read your balance for a moment, so it did not start paid work. Your credit is not the problem: retry after the `Retry-After` seconds. A turn already running ends with `internal_error` and the same message, and a web search fails with `balance_unavailable`; send the message again. @@ -56,6 +61,34 @@ Some settings are not available with every provider. `GET /api/providers` lists +## Free credit + +Each of these comes as HTTP 429 `insufficient_quota` with this `param` when you send a message, as `usage_limit_exceeded` with this `param` when a running turn's next call is refused, or as a web search's `error.code`. Credit you buy clears all of them. See [free credit errors](/reference/errors#free-credit-errors). + + + +"Add a card to get your free credit." The signup credit is held until the person who created the organization adds a card in the dashboard's **Wallet**. The card is never charged, and adding it starts no plan or purchase. The CLI cannot add a card. Until then, buy credit or use a model on your own provider key. See [the signup credit needs a card](/wallet#the-signup-credit-needs-a-card). + + +The card form shows your bank's decline, or the Wallet says "Add the card itself, typed in, rather than Apple Pay, Google Pay, Link or Cash App Pay", or "We couldn't find a verified card from this step". Nothing was charged. Add a card in your name, typed in, and try again; Apple Pay, Google Pay and Link cannot unlock free credit. "Orca could not check your card right now" means try again in a minute. After "Too many card attempts for this organization", ask on [Discord](https://discord.gg/btTYzdzvqq). + + +The Wallet says this when Orca did not give the signup credit to this organization. The organization works on credit you buy and on your own provider keys. If you think it is a mistake, ask on [Discord](https://discord.gg/btTYzdzvqq). + + +"This model needs paid credit." Free credit pays only for models at or under a price ceiling, judged on the model's highest listed price, including long-prompt tiers; routers such as OpenRouter's auto router always need paid credit. [Buy credit](/wallet#buy-credit), or [switch the session](/providers#switch-who-pays-for-one-session) to a model without the **Paid credit only** mark (`free_credit: true` in `GET /api/models`). A card on file does not change which models free credit pays for. + + +"Today's free credit is used." Free credit pays for up to a daily limit per organization, and more is available at 00:00 UTC. Continue then, or buy credit to keep going now. See [daily limit](/wallet#daily-limit). + + +"Free credit is paused for this organization." Credit you buy still works. Buy credit to keep going, or ask on [Discord](https://discord.gg/btTYzdzvqq). + + +On free credit, one model call runs at a time per organization, so subagents take turns. Calls on credit you buy run side by side as before. + + + ## Turns diff --git a/wallet.mdx b/wallet.mdx index f6a6309..e5bedbf 100644 --- a/wallet.mdx +++ b/wallet.mdx @@ -17,7 +17,7 @@ Tokens on your own provider key (`/`) are billed by that provider. ## 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. +- **Signup credit.** A new account gets the signup credit on the [pricing page](https://orcapods.ai/pricing) once the person who created the organization adds a card, which is never charged; see [the signup credit needs a card](#the-signup-credit-needs-a-card). It is given once per person: a second organization you create gets none. It is free credit; see [what free credit pays for](#what-free-credit-pays-for). - **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`. Plans do not add credit. A plan's included machine time is not a second balance. @@ -49,6 +49,47 @@ curl --fail-with-body -X POST "$ORCA_ORIGIN/api/billing/checkout" \ `ORCA_ORIGIN` is `https://api.orcapods.ai`, without `/v1`. The `offer` is `pack:` for a pack, or `plan:pro` or `plan:max` for a plan. +## The signup credit needs a card + +The signup credit is held until the person who created the organization adds a valid payment card in their own name, in the dashboard's **Wallet**. Orca never charges the card for it: the card only confirms a real person and prevents abuse. Your bank may show a temporary authorization, which is released and never collected. Adding a card starts no plan and no purchase. See [add a card for free credit](/dashboard/wallet-and-usage#add-a-card-for-free-credit) for the steps. + +- **One signup credit per card, ever.** A card that already unlocked a signup credit, for any organization, unlocks none again. A card that belongs to a banned or suspended user never unlocks one. +- **A card, typed in.** Wallet payments (Apple Pay, Google Pay, Link, Cash App Pay) cannot unlock it. If your bank declines the card, nothing is saved or charged and you can add another card. After too many attempts in one organization, ask on [Discord](https://discord.gg/btTYzdzvqq). +- **Only in the dashboard,** by the organization's creator, signed in. Other members, API keys and the CLI cannot add the card. +- **Skipping it is fine.** Without a card your organization works as before on your own provider keys and on credit you buy. It just has no free credit. +- **Organizations that already had the signup credit:** what is left of it is locked until the creator adds a card. It stays in your balance and keeps its expiry date, but pays for nothing until then. Adding a card runs the same checks and unlocks it. +- **When Orca does not give it,** the Wallet says "Free credit isn't available for this organization". Buy credit to start, or ask on [Discord](https://discord.gg/btTYzdzvqq). + +Credit Orca grants your organization, such as porting help, needs no card. + +## What free credit pays for + +Free credit is the signup credit and credit Orca grants. Credit you buy is paid credit. + +Free credit pays only for Orca credit models priced at or under a **price ceiling** on input and output tokens. The [pricing page](https://orcapods.ai/pricing) gives the ceiling. A model is judged on its highest listed price, including its long-prompt tiers: a model whose base price is under the ceiling but whose long-prompt price is over it needs paid credit. + +- **Models above the ceiling,** and models with no fixed price (OpenRouter's auto router and other routers), need credit you buy. A card on file does not change this. +- **Web search follows the session's model:** free credit pays for a search when it pays for the model, and the search counts toward the [daily limit](#daily-limit). +- **It is decided when a turn starts,** with the model the turn runs; a price change on OpenRouter applies from the next turn. Subagents follow their lead. +- **Free credit pays first** on a model it covers. On a model above the ceiling, only paid credit pays, and your free credit is left as it is. +- **Credit you buy** pays for any model and is never limited. +- **Machine time** is not affected by any of this. + +To see which models free credit covers: the dashboard's model picker marks the others **Paid credit only**, `orca models` marks them `paid credit only`, and `GET /api/models` returns `free_credit: true` or `false` for each Orca credit model. See [models and provider keys](/providers#which-models-free-credit-pays-for). + +## Daily limit + +Free credit pays for up to a **daily limit** per organization per UTC day. The [pricing page](https://orcapods.ai/pricing) gives the limit. + +- **It counts what calls really cost,** including costs charged later, which count on the day of their call. +- **A call admitted under the limit finishes** and is charged in full, so a day can end a little over the limit. +- **Once the limit is reached,** the next call is paid from credit you bought. With no paid credit to pay for it, it is refused with `free_credit_daily_limit`. +- **It resets at 00:00 UTC.** +- **One model call on free credit runs at a time** per organization. Subagents on free credit wait their turn. Calls on credit you buy never wait for it. +- **Credit you buy is never limited,** and machine time does not count toward the limit. + +The dashboard's **Wallet** shows today's free credit spend against the limit, and so does `orca billing wallet`. + ## 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. @@ -61,6 +102,8 @@ Nothing switches who pays on its own. To continue, add credit and send the messa The dashboard shows this as **Out of Orca credit** on the turn, with **Add credit**, **Switch who pays**, and **Continue**. `GET /api/billing/wallet` returns `paid_work_paused: true` while paid work is paused. +Free credit has refusals of its own. They come only when credit you bought cannot pay either, and each has a `param` that says why: the signup credit is locked until a card is added (`free_credit_locked`), the model needs paid credit (`paid_credit_required`), today's free credit is used (`free_credit_daily_limit`), or free credit is paused for the organization (`free_credit_paused`). On a model free credit does not pay for, only credit you bought counts toward the minimum balance, and locked signup credit never counts. When paid work for an organization is suspended, a new message is refused with HTTP 403 `organization_suspended`. See [free credit errors](/reference/errors#free-credit-errors) for what to do about each. + ## Read the wallet and your usage | Route | Returns | @@ -70,6 +113,18 @@ The dashboard shows this as **Out of Orca credit** on the turn, with **Add credi | `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). Any other row has none, and its own cost is what it was charged. | +For free credit, `GET /api/billing/wallet` also returns: + +| Field | Meaning | +| --- | --- | +| `signup_credit` | `status`: `needs_card` (add a card to unlock it), `card_added` (the card was added while signup credit was off; the credit is added once it is back on), `granted`, `withheld` (Orca did not give it to this organization), or `not_eligible` (the person already had one). `available`: whether signup credit is on now. `amount_micro_usd`; `locked_micro_usd`, the signup credit left that is locked until a card is added (0 otherwise). Nothing about the card is ever returned. | +| `free_credit_today_micro_usd` | Free credit spent today (UTC), with costs charged later counted on their call's day | +| `free_credit_daily_micro_usd` | The [daily limit](#daily-limit), or `null` when there is none | +| `free_credit_paused` | `true` while free credit is paused for the organization | +| `suspended` | `true` while paid work for the organization is suspended | + +`GET /api/public/plans`, and so the wallet, has a `free_credit` object: `max_input_micro_usd_per_million` and `max_output_micro_usd_per_million` (the price ceiling), `daily_micro_usd` (the daily limit), `in_flight` (how many free credit calls run at once), and `requires_card`, each `null` when off. + Money is in micro-USD (millionths of a dollar). Every member can read the wallet and usage. `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.