{
  "name": "ROG-K",
  "kind": "linux-terminal",
  "shell": "/bin/bash",
  "user": "root",
  "host": "rog-k",
  "home": "/home/sbx_user1051",
  "cwd": "/home/sbx_user1051",
  "auth": "none",
  "docs": "/docs",
  "client": "/client",
  "session": "persistent bash per session id — reuse the session field to keep cwd, env, and pip installs",
  "endpoints": {
    "exec": {
      "method": "POST",
      "path": "/api/exec",
      "headers": {
        "content-type": "application/json"
      },
      "body": {
        "cmd": "string",
        "session": "optional string"
      },
      "stream": "Accept: application/x-ndjson"
    },
    "complete": {
      "method": "GET",
      "path": "/api/complete?q=&session="
    },
    "open": {
      "method": "GET",
      "path": "/api/open?path=&session="
    },
    "pty": {
      "method": "GET",
      "path": "/api/pty?session=",
      "notes": "SSE stream of PTY bytes; POST /api/pty to write"
    },
    "session": {
      "method": "POST",
      "path": "/api/session",
      "body": {
        "session": "optional string",
        "cwd": "optional string"
      }
    },
    "close": {
      "method": "POST",
      "path": "/api/session/close",
      "body": {
        "session": "string"
      }
    },
    "interrupt": {
      "method": "POST",
      "path": "/api/interrupt",
      "body": {
        "session": "string"
      }
    },
    "about": {
      "method": "GET",
      "path": "/api"
    },
    "catalog": {
      "method": "GET",
      "path": "/api/exec"
    },
    "client": {
      "method": "GET",
      "path": "/client?cmd=&session=",
      "notes": "HTML form. No JavaScript. Also GET /api/exec?cmd= and GET /api/exec?cmd=&format=text"
    }
  },
  "example": {
    "method": "POST",
    "path": "/api/exec",
    "headers": {
      "content-type": "application/json"
    },
    "body": {
      "cmd": "uname -a"
    }
  },
  "pipExample": {
    "method": "POST",
    "path": "/api/exec",
    "headers": {
      "content-type": "application/json"
    },
    "body": {
      "cmd": "python3 -m pip install requests && python3 -c 'import requests; print(requests.__version__)'",
      "session": "reuse-this-id"
    }
  }
}