03 Sandbox Backend#

Script: example/03_sandbox_backend.py.

This example treats session.to(backend, spec=...) as OpenRath’s device placement operation. The same agent code can run against local or opensandbox.

python example/03_sandbox_backend.py
python example/03_sandbox_backend.py opensandbox

Placement

Meaning

spec=None

Ephemeral workspace.

spec="."

Bind the repository directory as the sandbox workspace.

backend.get(name).is_available()

Checks local availability before running.

The OpenSandbox variant also needs a running OpenSandbox stack and host bind permissions.

← Runnable Examples