Collection of sandboxes for Inspect AI
Project description
Inspect Sandboxes
The inspect-sandboxes Python package provides cloud sandbox environments for Inspect AI evaluations. Each sample runs in a managed sandbox on your provider of choice while the Inspect process runs locally on your machine.
This lets you run evaluations without a local Docker daemon or your own Kubernetes cluster, and scale to many concurrent samples beyond what fits on a single machine.
For sandbox concepts and the SandboxEnvironment API, see the Inspect AI sandboxing guide.
Providers
| Provider | Registry Name | Multi-service compose | Requirements |
|---|---|---|---|
| Daytona | daytona |
Yes (DinD) | Daytona account + API key |
| Modal | modal |
No (why?) | Modal account |
Installation
# Using pip
pip install inspect-sandboxes
# Using uv
uv pip install inspect-sandboxes
Quick start (Modal)
Authenticate with Modal (one-time):
python3 -m modal setup
Run a minimal evaluation:
from inspect_ai import Task, eval
from inspect_ai.solver import generate
task = Task(
dataset=[{"input": "What is 2+2?", "target": "4"}],
solver=[generate()],
sandbox="modal",
)
eval(task)
For each sample in the dataset, a fresh Modal sandbox is provisioned, used to run the solver, and terminated when the sample completes. Since no image is specified here, Modal's default sandbox image is used (Debian Linux with Python matching your local interpreter's minor version) — place a Dockerfile or compose.yaml alongside the task (auto-detected) or pass one explicitly via sandbox=("modal", "path/to/Dockerfile") to provide your own.
See the Modal provider page for full configuration options.
Development
# Install dependencies
make install
# Run tests (skips integration tests)
make test
# Run all tests including integration tests
make test-all
# Run type checking and linting
make check
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file inspect_sandboxes-0.3.0.tar.gz.
File metadata
- Download URL: inspect_sandboxes-0.3.0.tar.gz
- Upload date:
- Size: 29.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e2b5f006dec2e2a1e865b7592d2217ce62f67a176b9bb000db78cb338fb45ff6
|
|
| MD5 |
e1c9d0f093afcc57bbcb6246e277a6bb
|
|
| BLAKE2b-256 |
3a2fac0605fb78342011103311c73d83057a600dca95bc87cba2063f3f63c9ee
|
Provenance
The following attestation bundles were made for inspect_sandboxes-0.3.0.tar.gz:
Publisher:
release.yaml on meridianlabs-ai/inspect_sandboxes
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
inspect_sandboxes-0.3.0.tar.gz -
Subject digest:
e2b5f006dec2e2a1e865b7592d2217ce62f67a176b9bb000db78cb338fb45ff6 - Sigstore transparency entry: 1372155781
- Sigstore integration time:
-
Permalink:
meridianlabs-ai/inspect_sandboxes@1b69bf58d0f92ba896d46695635ce201b2eadd9d -
Branch / Tag:
refs/heads/main - Owner: https://github.com/meridianlabs-ai
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yaml@1b69bf58d0f92ba896d46695635ce201b2eadd9d -
Trigger Event:
push
-
Statement type:
File details
Details for the file inspect_sandboxes-0.3.0-py3-none-any.whl.
File metadata
- Download URL: inspect_sandboxes-0.3.0-py3-none-any.whl
- Upload date:
- Size: 36.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
74ac5c8d09f5769bd96675f8ea3ee024186030525b09f9d93f40a7373d0c0b89
|
|
| MD5 |
1e268bf0790f91ad4c54d1025510072a
|
|
| BLAKE2b-256 |
797ca71b38587b7a38d8bcf42cd82c640f06f67f06bcc8c69fbf9f317c8c1921
|
Provenance
The following attestation bundles were made for inspect_sandboxes-0.3.0-py3-none-any.whl:
Publisher:
release.yaml on meridianlabs-ai/inspect_sandboxes
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
inspect_sandboxes-0.3.0-py3-none-any.whl -
Subject digest:
74ac5c8d09f5769bd96675f8ea3ee024186030525b09f9d93f40a7373d0c0b89 - Sigstore transparency entry: 1372156096
- Sigstore integration time:
-
Permalink:
meridianlabs-ai/inspect_sandboxes@1b69bf58d0f92ba896d46695635ce201b2eadd9d -
Branch / Tag:
refs/heads/main - Owner: https://github.com/meridianlabs-ai
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yaml@1b69bf58d0f92ba896d46695635ce201b2eadd9d -
Trigger Event:
push
-
Statement type: