Setup
The client has no beta.agents attribute
The client has no beta.agents attribute
openai package is too old, or your code is running in a different environment from the one you installed into. Install the versions from Build with the API (pip show openai or npm ls openai shows what is installed) and restart long-running processes.404 on every request
404 on every request
https://api.orcapods.ai/v1. Do not add /agents; the client adds it. Orca’s own extensions are the exception: they live at https://api.orcapods.ai without /v1, such as /api/providers.A 404 on one specific resource means it does not exist, was deleted, or belongs to another account.Connection refused or TLS errors
Connection refused or TLS errors
https://api.orcapods.ai/v1, spelled exactly, with https://.403 permission_denied
403 permission_denied
429 rate_limit_exceeded
429 rate_limit_exceeded
Retry-After header says. See limits per plan. The free model, turns a day and Free sandboxes have their own 429s, under 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. “Too many uploads at once: 2 per organization. Retry when one finishes.”: wait for an upload to finish, then send the next.429 insufficient_quota
429 insufficient_quota
insufficient_quota with a param such as free_plan is under Free plan and limits.503 server_busy
503 server_busy
Retry-After seconds.413 File exceeds 512 MiB
413 File exceeds 512 MiB
Models
The turn fails with a model error
The turn fails with a model error
turn.error. Common causes: a model the provider no longer offers, or a credit running out: usage_limit_exceeded with param orca_credit (your Orca credit) or provider_quota (your own provider account is out of quota). A model on your own key never falls back to Orca credit. Top up that side, or switch the session to a model on the other side with POST /api/sessions/{session_id}/model. See models and provider keys.400 on agent.model or model
400 on agent.model or model
orca/openrouter/<OpenRouter id> for Orca credit, or <provider>/<id> with your own key. A bare name such as gpt-5 is refused, and so is a model on your own key when no key for that provider is stored, and a model its provider does not list. Without that provider’s key, the message names the key to add and, when OpenRouter offers the model, its orca/openrouter/ name for Orca credit. With the key saved, “This is OpenRouter’s name for the model” means the provider doesn’t list that id: use the orca/openrouter/ or openrouter/ form it suggests, or the provider’s own id. GET /api/models lists every name you can use. See models and provider keys.An Orca-Warning header on a save
An Orca-Warning header on a save
GET /api/models; a wrong name fails when a turn runs.409 when switching a session's model
409 when switching a session's model
400 on an agent setting
400 on an agent setting
GET /api/providers lists each provider’s unsupported_agent_fields. The param field of the error names the setting.Free plan and limits
Each entry is a refusal or a turn end from the Free plan or the 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.403 model_not_in_plan
403 model_not_in_plan
openrouter/<OpenRouter id>.429 insufficient_quota with param free_plan
429 insufficient_quota with param free_plan
POST /api/sessions/{session_id}/model with {"model": "orca/openrouter/cohere/north-mini-code:free"} (see switch who pays). Or add your own provider key in Settings, Providers, or add credit or upgrade.429 insufficient_quota with param free_model_daily
429 insufficient_quota with param free_model_daily
- “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.
429 insufficient_quota with param free_model_capacity
429 insufficient_quota with param free_model_capacity
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 to use another model. Every plan shares this capacity, so upgrading does not add to it.429 rate_limit_exceeded: the free model is busy
429 rate_limit_exceeded: the free model is busy
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.A free-model turn ended after its calls
A free-model turn ended after its calls
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.A Free turn ended after its time
A Free turn ended after its time
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: Pro and Max have no turn time limit.429 rate_limit_exceeded: turns a day
429 rate_limit_exceeded: turns a day
Retry-After gives the seconds until 00:00 UTC.Wait for 00:00 UTC, or upgrade.Free's included machine time is used up (param included_hours)
Free's included machine time is used up (param included_hours)
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 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. See machine time on Free.A Free session started a new, empty sandbox
A Free session started a new, empty sandbox
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.429 rate_limit_exceeded: Free machine time is busy
429 rate_limit_exceeded: Free machine time is busy
Retry-After seconds, use a session without a sandbox, or upgrade.403 object_limit_exceeded on a new session
403 object_limit_exceeded on a new session
orca sessions delete <id>, or client.beta.agents.sessions.delete(session_id)), or upgrade. 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.A command in my sandbox cannot reach the internet
A command in my sandbox cannot reach the internet
pip install or curl, keeps the system’s own error, and its output ends with one more line:orca.network.off when the sandbox starts, and orca billing wallet shows the same line. Add credit, or write to us on Discord; sandboxes started after that follow the session’s environment. Until then, give the agent what it needs as files.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. Sandboxes that started before then get it after their next sleep.”400 on agent.model: another free model
400 on agent.model: another free model
orca/openrouter/cohere/north-mini-code:free, or run the other model on your own OpenRouter key as openrouter/<OpenRouter id>. See which models Free can use.403 organization_suspended
403 organization_suspended
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.Turns
I read the history right after sending and the reply is missing
I read the history right after sending and the reply is missing
A turn seems stuck
A turn seems stuck
sessions.retrieve(session_id):requires_actionwith afunction_call: your application has to send the tool result. See function tools.requires_actionwithenvironment_connection: your self-hosted executor is not connected.in_progress: the agent is still working. Long tasks in a sandbox can take minutes. Look at the newest items to see what it is doing.
My follow-up seems to finish instantly with the old answer
My follow-up seems to finish instantly with the old answer
completed. If the previous turn had ended before you sent the follow-up, remember its ID and wait for a turn with a different ID. (If it was still running, your message joined it, and no new turn appears.) Also skip subagent turns, which have a subagent_id.The session is idle but nothing happened
The session is idle but nothing happened
idle only means no turn is running. Check the newest turn’s status and error.The stream disconnected
The stream disconnected
Tools and environments
Session creation fails with an MCP error
Session creation fails with an MCP error
The agent says it cannot run code
The agent says it cannot run code
environment: {"type": "none"}. Create a new session with a sandbox. See execution environments.An environment type or network setting is rejected
An environment type or network setting is rejected
self_hosted environments are coming soon, and network.access: "restricted" is not available. Use openai_hosted with disabled or enabled network access. Do not loosen the policy further than the task needs.A self-hosted turn fails immediately
A self-hosted turn fails immediately
workspace_directory must be an absolute path with no symbolic links in it. On macOS /tmp is a symlink; use the real path.Creating a session with a sandbox is refused
Creating a session with a sandbox is refused
insufficient_quota means the sandbox could not run a minute: your balance is below the minimum, or on Free the included machine time is used up and the organization has no credit (param included_hours, under Free plan and limits). HTTP 429 rate_limit_exceeded means your plan’s sandboxes at once are running: wait for an idle one to go to sleep, put one to sleep now with orca sessions sleep <id>, or delete a session you no longer need. HTTP 403 storage_quota_exceeded means your organization is at its storage limit: delete files, skills or sessions.Outputs
There is no artifact to download
There is no artifact to download
- The agent must write the file under
/workspace/outputs(oroutputsin your self-hosted workspace). - Artifacts are captured only when a turn completes.
- The agent saying it saved a file does not mean it did. Check the items for the command it ran.
- Artifacts are deleted with their session.
Reporting a problem
Include the client language and package version, the HTTP status and errorcode, a sanitized request body, the session and turn IDs, and whether it happens every time. Remove API keys, provider keys, vault contents, private prompts, and sensitive file content before sharing.