Skip to main content

Install

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 your first sandbox

Run a command

Write and read files

Use secrets

Create secrets under an Identity provider, attach them to the sandbox, and read them as environment variables in run_code / run_cmd.
Full attach/detach details: Identity Providers.

Limit outbound network

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.
Full modes and rule CRUD: Network Policies.

What’s next

Identity Providers

Create secrets under Identity providers; attach and detach

Web Services

HTTPS URLs for HTTP apps in the sandbox

Network Policies

Allowlist and control sandbox egress

How a runtime works

Lifecycle, defaults, and what is inside a sandbox

Create Runtime

All create parameters

Access Runtime

SSH or web terminal