session

Run shell command

Execute one shell command in the session's working directory. Emits a shell.started event before execution and a shell.ended event with the merged output after.

post/api/session/{sessionID}/shell

Request

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

Path parameters

sessionIDstring required

Request body

idstring
commandstring required

Response

<No Content>

Changes

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