Skip to content

An open-source, faster Devin alternative

TypeScript

docs: inline session-start sugar surfaces `runtime` (mirror agent creation)

Igor Zalutski4b25d6f436b5
diff --git a/docs/agent-sessions/agents.mdx b/docs/agent-sessions/agents.mdx
index e8ee0c93..75e31d63 100644
--- a/docs/agent-sessions/agents.mdx
+++ b/docs/agent-sessions/agents.mdx
@@ -12,7 +12,7 @@ curl https://api.opencomputer.dev/v3/agents \
"prompt": "You review code.", "runtime": "claude" }'
```
-For a one-off, skip the agent and inline `prompt` + `model` when you [start a session](/agent-sessions/sessions) — same result, no named record.
+For a one-off, skip the agent and inline `prompt`, `model`, and `runtime` when you [start a session](/agent-sessions/sessions) — same result, no named record.
## Pinned snapshot
diff --git a/docs/agent-sessions/api-reference.mdx b/docs/agent-sessions/api-reference.mdx
index 19a0eb63..63f514c9 100644
--- a/docs/agent-sessions/api-reference.mdx
+++ b/docs/agent-sessions/api-reference.mdx
@@ -15,7 +15,7 @@ Base URL `https://api.opencomputer.dev/v3`. Management calls authenticate with y
| `POST /sessions/:id/archive` | Archive (close) a session. |
| `POST /sessions/:id/client-tokens` | Mint a client token. Body: `scopes?`, `ttl?`. |
-Provide `agent` (a saved agent id) **or** inline `prompt` + `model`. `key` gives get-or-create (one session per key). `input` is the task — a string or a full [envelope](/agent-sessions/messaging#the-envelope).
+Provide `agent` (a saved agent id) **or** inline `prompt` + `model` + `runtime`. `key` gives get-or-create (one session per key). `input` is the task — a string or a full [envelope](/agent-sessions/messaging#the-envelope).
```
Session = { id, status, head, cursor,
diff --git a/docs/agent-sessions/overview.mdx b/docs/agent-sessions/overview.mdx
index 6177575d..dc4af94f 100644
--- a/docs/agent-sessions/overview.mdx
+++ b/docs/agent-sessions/overview.mdx
@@ -7,10 +7,10 @@ Give an agent a prompt and a task; OpenComputer runs it on a managed runtime in
<Steps>
<Step title="Define an agent">
- A reusable `{ name, model, prompt }` — `POST /v3/agents`. ([Agents](/agent-sessions/agents))
+ A reusable `{ name, model, prompt, runtime }` — `POST /v3/agents`. ([Agents](/agent-sessions/agents))
</Step>
<Step title="Start a session">
- `POST /v3/sessions { agent, input }` and the agent starts working immediately; you get back the session and a browser-safe `client_token`. *(Or inline `{ prompt, model, input }` for a one-off, without a reusable agent.)*
+ `POST /v3/sessions { agent, input }` and the agent starts working immediately; you get back the session and a browser-safe `client_token`. *(Or inline `{ prompt, model, runtime, input }` for a one-off, without a reusable agent.)*
</Step>
<Step title="Watch, steer, get notified">
Stream `GET …/events?stream=sse` — reconnect from any cursor to [resume](/agent-sessions/events). `POST …/messages` to [steer](/agent-sessions/messaging), and register a [webhook](/agent-sessions/webhooks) to have output pushed to you.
diff --git a/docs/agent-sessions/quickstart.mdx b/docs/agent-sessions/quickstart.mdx
index f8702cec..4eb5612d 100644
--- a/docs/agent-sessions/quickstart.mdx
+++ b/docs/agent-sessions/quickstart.mdx
@@ -18,7 +18,7 @@ You don't need to create an agent first — one call starts a session. Pass a `m
```bash
curl https://api.opencomputer.dev/v3/sessions \
-H "Authorization: Bearer $OPENCOMPUTER_API_KEY" \
- -d '{ "model": "anthropic/claude-opus-4-8",
+ -d '{ "model": "anthropic/claude-opus-4-8", "runtime": "claude",
"prompt": "You are a coding assistant.",
"input": "Clone github.com/acme/widget, run its tests, and summarize what fails." }'
```