Skip to main content
Fork captures the parent once, then starts every child from that capture. The parent keeps running with its own ID. Each child is its own runtime, with its own ID, timeout, and files. Results are per child. One failure does not fail the request. Read every entry in children.

Parameters

Response

  • The parent must be running. A paused parent returns 409 runtime must be running to fork. Resume, then retry.
  • Children inherit the parent’s environment variables. Per-session credentials are regenerated on each child.
  • A child that shows status: "running" may take a moment before commands and file operations respond. Retry briefly on a fresh child.
  • Writes on one child stay on that child.
  • With persist_snapshot: false (the default) the capture is removed once every child has started. It does not appear in your snapshot list.

Endpoint

POST /v1/agents/runtime/{runtime_id}/fork POST /v1/agents/snapshots/{snapshot}/fork