Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion providers/common/ai/docs/sandbox/backends.rst
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ Constructor parameters:
Modal's own default is 300, which is below a plausible agent run.
- ``idle_timeout``: Seconds of inactivity after which Modal reclaims the sandbox,
or ``None`` to rely on ``sandbox_timeout`` alone. Default ``None``; see
:ref:`Configuring a sandbox <sandbox-configuring>`.
:ref:`sandbox-timeouts`.
- ``workdir``: Working directory for commands, created if the image lacks it.
Default ``"/workspace"``. It is a starting directory, not a jail: absolute paths
and ``..`` are passed through, and commands run as root, so the model can read
Expand Down Expand Up @@ -703,6 +703,13 @@ Constructor parameters:
``sbx policy init deny-all``, or ``"allow-all"`` to state that egress is open
and pass ``SandboxSpec(block_network=False)`` to match.

The ``sbx`` CLI has no way to pass environment variables at creation, so the backend
writes ``SandboxSpec.env`` as ``export`` lines to ``/etc/profile`` inside the
sandbox. Anything in the sandbox can read that file for as long as the sandbox
exists.

.. _sandbox-backend-differences:

What differs between the backends
---------------------------------

Expand Down
Loading