OpenCode icon

OpenCode

Interact with OpenCode Server API for AI coding assistant sessions

Session → Create

AI-generated

Summary

Create a new OpenCode session

Inputs

  • title — Title for the new session

Output shape

The API response representing the created session object, returned as-is from the OpenCode server.

The operation defaults the title to 'New Session' if omitted, and posts to the /session endpoint via the OpenCode API.

Examples

Example 1: Create a session with a custom title

Set the Title parameter to 'My Project Session'. The operation will create a new session titled 'My Project Session'.

Links

Discussion