pty

Create PTY session

Create a pseudo-terminal session for a location.

post/api/pty

Request

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

Query parameters

directorystring nullable

Request body

commandstring
argsstring[]
cwdstring
titlestring
envobject

Response

Success

Changes

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