v15

latestOpenAPI 3.1.1raw.githubusercontent.com2026-06-05137173413.9 KB

Get current project

Retrieve the currently active project that OpenCode is working with.

get/project/current

Query parameters

directorystring
workspacestring

Response

Current project information

idstring required
worktreestring required
vcs'git'
namestring
sandboxesstring[] required