Agents

Create interactive chat session

Creates a persistent OpenCode chat session backed by a Daytona runtime. Session state is retained and can be resumed or recovered across requests.

post/agent/v2/chat

Request body

titlestring

Optional human-readable session title

modelstring nullable

Optional model override for the OpenCode session

idleTimeoutMsinteger nullable

Idle timeout before the runtime is eligible to stop. Defaults to 15 minutes.

instructionsstring nullable

Optional hidden app instructions merged into the chat runtime bootstrap and never exposed as a user message. Only accepted for privileged C3 system keys.

vaultIdsstring[] nullable

Restrict the chat session to specific vault IDs

Response

Chat session created

idstring
statusstring
provider'daytona'
runtimeStatestring
idleTimeoutMsinteger
createdAtstring date-time

Changes