- Default-deny outbound networking (
allowInternetAccess: false) that only permits requests to your allowlisted API domain. - Encrypted Vault injection (
vault) so a specific command receivesAPI_TOKENwithout persisting plaintext secrets to disk. - File upload and artifact download using
sandbox.files.
sandboxes.create, sandboxes.read, sandboxes.stop, secrets.use.
Prerequisites
HYPERBROWSER_API_KEYexported in your shell and a pre-created vault namedci-secretsexposingAPI_TOKEN.@hyperbrowser/sdk(TypeScript),hyperbrowser(Python), or thehxCLI installed.
Run Locked-Down Code in a Sandbox
Expected output
- Prints
Exit code: 0 Output: {"status":200}after the sandboxed Node process reacheshttps://api.example.com/healthusing the injectedAPI_TOKENwhile all other outbound destinations remain blocked. - Stops the sandbox cleanly in
finally(or viahx vm stop).
Next Steps
- Network Policies — live egress updates, CIDR rules, and domain allowlists.
- Vaults — group secrets and manage customer-managed key wrapping.