Skip to main content

What are Rexec sandboxes?

Rexec is PipeOps’ AI-native sandbox platform. A sandbox is an isolated Linux environment (backed by a container) that you can create in seconds, use from the browser terminal or API, then tear down when you are done.

Sandboxes are ideal for:

  • Running untrusted or AI-generated code safely
  • Ephemeral dev/test shells (no local Docker setup)
  • Agent workflows that need a real Linux filesystem and shell
  • Demos, workshops, and CI-style throwaway environments
Productrexec.sh
Hosted APIhttps://rexec.sh
AuthAuthorization: Bearer <token>
Open sourcegithub.com/PipeOpsHQ/Rexec
SDK examplesgithub.com/PipeOpsHQ/sandbox-example
In-app SDK docsrexec.sh/docs/sdk

Sandbox vs container (terminology)

TermMeaning in Rexec
SandboxProduct concept and preferred SDK name (client.sandboxes, Sandbox)
ContainerHTTP wire path (/api/containers) and deprecated SDK aliases (client.containers)

Use sandboxes.* in new code (SDK v1.1.0+). REST paths still use /api/containers.

Lifecycle

create → creating → running ⇄ stopped → delete
↘ error
  • Create is often async: the API may return immediately with status: "creating".
  • Poll get until status === "running" before assuming a ready shell.
  • Guest sessions have limited concurrent sandboxes and shorter lifetime; use API tokens for production.

Image aliases

Hosted Rexec uses a fixed catalog of image aliases, not arbitrary Docker Hub tags.

PreferAvoid on hosted
ubuntu, ubuntu-24, ubuntu-22ubuntu:24.04, ubuntu:latest
debian, alpine, fedora, archlinux, …Random Hub tags

Full catalog: GET /api/images.

How you interact with sandboxes

SurfaceUse case
Web consoleBrowser UI, terminal, settings, API tokens
Official SDKsAutomate create/list/delete from app or agent code
Example repoRunnable happy paths for every language
REST + WebSocketCustom clients against the same API
Self-hostedRun the open-source stack on your infra

What you can do with a sandbox

  1. Manage lifecycle — list, create, get, start, stop, delete
  2. Files — list directories, read/write/delete paths inside the sandbox
  3. Terminal — interactive PTY over WebSocket (wss://…/ws/terminal/:id)

There is no primary HTTP exec() API on hosted Rexec. Run commands through the terminal WebSocket (or your own tooling).

Next steps