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 operation changes recorded.