Skip to main content
Use praisonai-sandbox when you only need sandboxed execution — no gateway, no CLI wrapper — or when you want the sandbox backends on a slim install. It’s a standalone Tier‑2 package extracted from the praisonai wrapper, so agents keep the same sandbox=True behaviour with a much smaller dependency tree.
The user asks the agent to run code; the sandbox package executes it in an isolated backend and returns the result.

Quick Start

1

Run an agent with the default backend

The subprocess backend ships in the base install — nothing else to configure:
2

Install the slim package and optional backends

3

List available backends

Each backend reports available or unavailable based on whether its optional dependency is installed.
The standalone praisonai-sandbox console script currently exposes --help and backends. To run code or open an interactive shell, use the wrapper CLI — praisonai sandbox run / praisonai sandbox shell (see Sandbox CLI).

Backends included

Every backend is selectable by name through praisonaiagents.sandbox.SandboxManager — the same registry the wrapper uses.
Only subprocess ships in the base praisonai-sandbox install. Every other backend — including sandlock — requires its matching extra. This differs from the full praisonai wrapper, where subprocess and sandlock are both built in.

Use the backends directly

Import a backend class straight from the package when you want the isolated runtime without an Agent:

Best Practices

The base package is intentionally slim. Add [docker], [e2b], [modal], [ssh], [sandlock], or [daytona] extras individually instead of [all] to keep the dependency tree small.
daytona needs DAYTONA_API_KEY (and optional DAYTONA_API_URL); e2b and modal need their own provider credentials. Selecting a backend without its credentials fails fast.
Run praisonai-sandbox backends in CI to confirm the expected backend is installed before a pipeline depends on it.
The standalone script lists backends; the praisonai sandbox run / shell commands execute code and open REPLs with full flag support.

Sandbox Backends

All seven backends, the registry, and backend selection guide

Sandbox CLI

praisonai sandbox run, shell, and backends commands