Installs and automatically runs the Aztec Sandbox development environment with test accounts pre-configured.
"features": {
"ghcr.io/aztecprotocol/devcontainer-feature/aztec-sandbox:1": {}
}| Options Id | Description | Type | Default Value |
|---|---|---|---|
| autoStart | Automatically start the sandbox on container creation | boolean | true |
| importTestAccounts | Import test accounts using aztec-wallet | boolean | true |
This feature:
- Installs the Aztec CLI and related tools
- Sets up the Aztec Sandbox to run automatically on container startup (if autoStart is true)
- Configures the environment with HOME set to /workspaces for Aztec compatibility
- Provides the aztec command in your PATH
After installation, the aztec command is available in your PATH:
# If autoStart is false, manually start the sandbox:
aztec start --sandbox
# Check the version
aztec --versionWhen autoStart is enabled (default), the sandbox runs in the background automatically. Logs are written to /workspaces/.aztec/aztec-sandbox.log.
To monitor the sandbox logs in real-time:
tail -f /workspaces/.aztec/aztec-sandbox.logWhen importTestAccounts is enabled (default), test accounts are automatically imported and ready to use. These accounts come pre-funded and are ideal for development and testing.
To disable auto-start and manage the sandbox manually:
"features": {
"ghcr.io/aztecprotocol/devcontainer-feature/aztec-sandbox:1": {
"autoStart": false
}
}This feature automatically includes:
- Docker-in-Docker (
ghcr.io/devcontainers/features/docker-in-docker:2): Provides Docker daemon access required by the Aztec Sandbox
- Node.js v20+ is required (v22 will be installed automatically if needed)
- Port 8080 is used by the sandbox for the JSON-RPC endpoint
- The Aztec tools are installed using the official installation script from install.aztec.network
- Binaries are installed to
/workspaces/.aztec/bin - HOME is set to
/workspacesto ensure compatibility with Aztec's containerized applications - The sandbox runs in a Docker container managed by the Docker-in-Docker feature
This feature includes special support for GitHub Codespaces:
- Automatically configures the PXE_URL environment variable for Codespaces port forwarding
- Ensures port 8080 is properly forwarded for sandbox access