Skip to main content
An agent is a saved configuration: model, instructions, and tools. It does not run on its own; a session uses it. Each session copies the agent’s settings when it is created, so updating an agent affects only sessions created afterwards. Paths are relative to /v1; see the overview for authentication.

Agents

POST /agents requires model. Optional fields: POST /agents/{agent_id} updates only the fields you send. model is orca/openrouter/<OpenRouter id> for Orca credit or <provider>/<id> with your own key; any other name is rejected with HTTP 400 on model. See models and provider keys.
List accepts after, limit, and order (asc or desc). Delete returns a deletion object. See Sessions to run an agent.