Skip to main content
Create a sandbox, run Python, pass a secret, and allow one outbound host.

Install the SDK

API key

Create a key at API keys in the console. Copy it when it appears. You cannot view it again.
The SDK and CLI read GRAVIXLAYER_API_KEY. gravixlayer auth login stores the same key in your OS keychain. Requests use Authorization: Bearer against https://api.gravixlayer.ai. GravixLayer() defaults to cloud=aws, region=us-east-1. create() defaults to template=base-small.

Create a sandbox

Run a command

Write a file

Pass a secret

Create secrets under an Identity provider, attach them to the sandbox, and read them as environment variables in run_code / run_cmd.
Attach, detach, and rotation are on Store a credential.

Allow an outbound host

By default a new sandbox cannot reach the public internet. Attach a network policy (for example an allowlist) to open only the destinations you need.
Modes and rule changes are on Limit outbound traffic.

Next

Store a credential

Create a secret, then attach and detach it

Expose a web service

HTTPS URLs for HTTP apps in the sandbox

Limit outbound traffic

Allow or deny outbound hosts

Open a browser

Click, type, and fill on a real page

Use the desktop

See the screen and control it. Create the runtime with desktop-small.

How a runtime works

What is inside a sandbox, and how long it stays up

Create Runtime

All create parameters

Access Runtime

SSH or web terminal