Skip to main content
POST
Run a shell command

Authorizations

x-brimble-key
string
header
required

Your account-level Brimble API key. Find it in the dashboard under your profile drawer → API key (click the avatar in the sidebar). Available on paid plans only.

Path Parameters

id
string
required

24-char hex id of the sandbox.

Pattern: ^[a-f0-9]{24}$

Body

application/json
cmd
string
required

Shell command to run. Pipes / && / redirects all work.

timeout_seconds
integer

Defaults to 30. Process is killed at the limit.

Required range: 1 <= x <= 300
cwd
string

Absolute path inside the sandbox. Defaults to /.

env
object

Extra environment variables for this command only. Layered on top of the sandbox's existing environment; same-named keys here override the sandbox-level ones for this call. Values must be strings. Scoped to a single invocation, the next call starts with the sandbox defaults again.

Example:
stream
boolean

When true, the server keeps the connection open and streams stdout/stderr as Server-Sent Events (text/event-stream). Each event is a JSON object on a data: line; the last event is always { "type": "done", ... } or { "type": "error", ... }.

Response

Command completed.

When the request body has stream: true, the response is text/event-stream, one ExecStreamFrame per data: event, the last being a done event.

message
string
required
Example:

"Exec completed"

data
object
required
Last modified on May 20, 2026