Skip to main content

Start Execution

Auth: optionalAuth. Starts the execution lifecycle for a task. Returns { message: "Task execution started" } on success. Possible errors:
  • Task is already running
  • Parallel limit reached (N tasks max)
  • No active project selected
  • userId is required for execution

Check Running Status

Returns: { running: true } or { running: false }

Get Execution Logs

Returns live logs from an active execution, or persisted logs from the database for completed tasks.

Cancel Execution

Aborts the OpenCode session, persists logs, and updates the task status to cancelled. Returns { message: "Task cancelled" }.

Permissions

Get Pending Permissions

Returns permission requests from the AI agent that need user approval.

Respond to Permission

Broadcasts: permission:resolved