What you get
Why sandboxes
Agents generate code and commands you cannot fully predict. A runtime keeps that work inside an isolated boundary so it does not touch your host credentials or local files. Each runtime has its own CPU, memory, and disk. It stays up until you terminate it (unless you set a timeout).Client defaults
Installgravixlayer (Python) or gravixlayer (TypeScript). Set GRAVIXLAYER_API_KEY.
Cloud and region belong on the client. create() uses the base-small template unless you pass another template or a snapshot.
GRAVIXLAYER_CLOUD and GRAVIXLAYER_REGION. The SDKs fill cloud and region into the create body from the client, so the REST examples show them explicitly; omit them and the API falls back to the platform default.
Only AWS / us-east-1 is available today. Azure and GCP are coming soon — see Multi-Cloud Support.
Basic usage
With secrets
Templates
See Templates for toolchain details and custom builds.
Lifecycle
- Create from a template or a snapshot (optionally attach secrets and network policies).
- Execute code and commands; attached secrets inject per execution.
- Snapshot (optional) to save a named checkpoint, then start more runtimes from it.
- Terminate with
sandbox.kill()when finished.
Next
Create Runtime
Parameters and response fields
Web Services
HTTPS URLs for guest HTTP ports
Identity Providers
Inject credentials safely
Network Policies
Control outbound access