Agent-readable docs index: /llms.txt. Full docs in one file: /llms-full.txt. Download /docs.zip to grep all markdown files locally.

oc exec <id> [flags] -- <command...>

By default, creates an exec session and prints the session ID with attach instructions. Use --wait to run synchronously.
query --waitbooleandefault: false
Wait for completion, stream output, mirror exit code
query --cwdstring
Working directory
query --timeoutintdefault: 0
Timeout in seconds (0 = none)
query --envstring
Environment variable KEY=VALUE (repeatable)
bash
# Synchronous — streams output, exits with process exit code oc exec sb-abc --wait -- npm run build # Asynchronous — creates session, prints session ID oc exec sb-abc -- node server.js # → Session es-xyz created. Attach with: oc exec attach sb-abc es-xyz

oc exec list <id>

List active exec sessions for a sandbox. HTTP API →
Output: session ID, status (running or exited (code)), command, client count.

oc exec attach <id> <session-id>

Not yet implemented. The command exists but prints guidance to use the SDK or a WebSocket client (websocat).

oc exec kill <id> <session-id>

Kill an exec session. HTTP API →
query --signalintdefault: 9
Signal number (default: SIGKILL)