diff --git a/README.md b/README.md index f02b9a9..54e2585 100644 --- a/README.md +++ b/README.md @@ -188,10 +188,10 @@ orca agents create -f agent.yaml # YAML or JSON; - for stdin orca agents update -f fields.yaml # only the fields in the file change orca agents delete [agent] [--yes] -orca models [--payer orca|] # every model you can use, grouped by who pays +orca models [--payer orca|] # every model you can use, grouped by who pays, with the free model marked orca sessions list [--agent agent] -orca sessions get +orca sessions get # its model, sandbox, why the sandbox last slept, usage orca sessions create --agent [--sandbox] [--template t] [--vault v]... [--file path[:dest]]... orca sessions items [--limit n] orca sessions artifacts # files its turns saved under /workspace/outputs @@ -272,7 +272,11 @@ you can use, grouped by who pays: Orca credit, at OpenRouter's price per million tokens plus their fee, then each provider you saved a key for. With `--json` or outside a terminal the file must name the model; `orca models` lists the same names anywhere (`--payer orca` or `--payer anthropic` for one group, `--json` -for the server's list). +for the server's list). The server marks each Orca credit model for your +plan: `orca models` shows "free model" for Orca's free models, on every plan +(each plan with its own daily share, on the pricing page). Credit pays for +every other Orca credit model on every plan, Free included. On Free the picker +offers the free model first. `orca chat [prompt]` runs a turn on a `/v1` session with your API key. Without `--session` it creates a session of the agent first (no environment by @@ -332,6 +336,28 @@ exists there), applies from the next turn for this session only, and continues with `Continue`. Outside a terminal or with `--json` it prints the reason and the session id and exits 1. +On the Free plan, a refusal (a paid model with no credit, the free model's +calls used up for today, the included machine time used up, the free model or +Free sandboxes busy, the day's turns used) prints the server's message and its +ways forward as words: switch this session to the free model, add a provider +key, add credit, upgrade, or try again later, each with its command. Where the +free model is one of them, the switch in a terminal lists it first. +The free model's refusals reach every +plan: its calls used up for today, the free model busy, the free model +withdrawn (the switch then offers the next free model the server lists), the +free model off right now (Orca turned it off for every plan), and the free +model not part of your plan (no share on it), each with the server's message +and its ways forward. The server's notices during a turn (machine time nearly used up, +a turn ended at the free model's calls or at Free's time limit for a turn, +a sandbox with no network, a new sandbox after a workspace +too large to keep, a workspace near the size Free keeps) are printed on +stderr, and with `--json` arrive as their own events. `orca sessions get` +shows why the sandbox last slept, with the server's message (a workspace +discarded or near the size Free keeps, a suspension, the network turned on), +and `last_sleep` with `--json`. A suspended organization's refusal, and a +refusal at the most sessions (or other objects) the organization can keep, +is the server's message as it is, exit 1. + ## Usage and billing Every money figure is the server's: usage rows are priced when they are written, @@ -347,14 +373,22 @@ paused, as the server treats it. A call whose cost was not reported when it ended is charged later, on a `late_charges` row that `orca usage events` shows as "Charged later" for the row it charges, so a balance can go below zero; `orca billing wallet` then prints it as it is (`-$0.60`) and says paid work -resumes when credit brings it to the minimum. +resumes when credit brings it to the minimum. Credit Orca grants is spent +first and expires; credit you buy never does: the wallet prints one `granted +credit` line per grant with what is left and its last day, then `paid credit`. +On every plan with a free-model share it adds the free model's calls today +(none while the free model is off). On Free it adds the included machine time +and when it resets, the network line while Free sandboxes have none (and, once +the organization has credit, while running sandboxes still lack it), and where +to ask for more credit; when Free's included machine time and free model are +withheld from the organization, it says so instead of the hours. ```sh orca usage # last 30 days: cost, meters, daily chart orca usage --days 7 --group-by agent # also each agent's tokens and cost orca usage --session sess_123 # one session orca usage events --charged # the rows with a cost: what the wallet's charges sum -orca billing wallet # balance, plan, period, packs on sale +orca billing wallet # balance, granted and paid credit, plan, period, packs on sale orca billing buy pro # checkout for the Pro plan orca billing buy pack:2000 # checkout for the $20 credit pack orca billing manage # change or cancel the plan diff --git a/plugins/orca/skills/use-orca/SKILL.md b/plugins/orca/skills/use-orca/SKILL.md index e2c3863..1920a57 100644 --- a/plugins/orca/skills/use-orca/SKILL.md +++ b/plugins/orca/skills/use-orca/SKILL.md @@ -60,7 +60,7 @@ orca agents list --json # only when the user does not know `` is an agent id or the name of exactly one agent (the server says which; a shared name is refused with the ids). Add `--sandbox` (or `--template