The surface
| Call | What it does |
|---|---|
| status() | Reports whether the compute runner can accept work. |
| exec(options) | Runs one command in a temporary container and returns when it finishes. |
| terminals | Creates, lists, reads and removes persistent terminal sessions. |
Workspace and isolation
Each command runs in a container with the selected Object Storage mounted at /workspace. That storage is the only mounted workspace. The runner reports its network policy through status(); network access defaults to none, while deployments may explicitly allow egress. If the runner is unavailable, calls fail instead of running commands on the API host.
Choose a one-off command or a terminal
- Use
exec()for a bounded command whose output and exit status you need once. - Use
terminals.create()for a process that should remain open while you send more lines, read incremental output, or open a preview port. - Use
terminals.interrupt()to stop the current command and keep the terminal, orterminals.remove()to close the terminal and its container.
Treat terminal creation, input and preview URLs as access to a live workspace. Keep the API key server-side, scope the selected storage deliberately, and do not expose a preview URL as a secret-free public endpoint.