Skip to main content

Basic Sandbox

The simplest possible sandbox - grant access to a single directory:

Data Processing Pipeline

Sandbox a data processing script with separate input/output directories:

AI Agent Sandbox

Sandbox an AI agent that generates and executes code:

Plugin System

Isolate third-party plugins:

Configuration-Driven Sandbox

Load sandbox configuration from a file:

Validation Before Apply

Use QueryContext to validate a configuration:

Graceful Degradation

Handle platforms without sandbox support:

State Persistence

Save and restore sandbox state:

AI Agent Supervisor with Proxy and Rollback

The complete orchestration pattern: proxy + sandbox + snapshots + audit + rollback.

Filesystem Snapshot and Rollback

Content-addressable snapshots with change detection:

Network Proxy with Domain Filtering

Control which hosts a child process can reach through the proxy:

Policy-Driven Network Configuration

Load network policy from JSON using the same field names as nono profiles:
The same resolver also accepts the canonical allow_domain key used by the main nono crate’s profile format. Domains not listed in the allowlist are blocked by omission. resolve_groups() blocks direct network access for proxy-filtered policy groups. Call caps.proxy_only(proxy) after start_proxy() to permit only the local proxy connection.

Testing Sandbox Configurations

Unit test your sandbox configurations: