shell

Run shell command

Spawn one non-interactive shell command for a location. Combined stdout/stderr is captured to a file pageable via output.

post/api/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/shell
  • Auth: none required

Query parameters

directorystring nullable

Request body

commandstring required
cwdstring
timeoutinteger
metadataobject

Response

Success

Changes

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