worktree

Create worktree

Load the project's canonical configuration, create a local worktree using its selected strategy, then run the project's setup script.

post/api/worktree

Request

  • Base URL: https://opencode.ai (the document declares no server; this is the origin it was published from)
  • URL: https://opencode.ai/api/worktree
  • Auth: none required

Request body

projectIDstring required
fromstring
branchstring
directorystring
namestring

Response

Worktree.Info

directorystring required

Changes

No recorded changes to this operation across all 1 revision of this API.