Skip to main content
Creates a new agent. Configures the agent’s repo(s), branch, model, session mode, idle behavior, and task checklist, then launches it on an ephemeral VM. If the agent is already running, returns an error — use queue_add to send a follow-up instead. Equivalent to murmur spawn in the CLI.

Parameters

Repo object

Response

Returns the slug of the spawned agent. When each is used, returns a list of spawned slugs instead:

Examples

Basic autonomous agent

Response:

With model and persona

Multi-repo spawn with branch overrides

Resume a dead agent

Fork from another agent

Flight execution

Forward environment variables

DATABASE_URL is set explicitly. API_KEY uses the bare form, which a local stdio server reads from its own environment, so the value never enters the conversation. The server encrypts both before they reach the agent’s VM, where the agent reads them as environment variables.
The bare form works only against a local stdio MCP server, which runs as you. The hosted server rejects it — the only environment it could read is the platform’s own — so pass every variable as NAME=value there.

Fanout

Response:

Errors

  • murmur spawn — equivalent CLI command
  • Agents — concept overview
  • status — check agent state
  • ls — list running agents
  • kill — cancel an agent
  • queue_add — send follow-up to a running agent
  • wait — block until an agent reaches a target phase