You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 12ce34d
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: examples/sandbox/extensions/README.md
+9-79Lines changed: 9 additions & 79 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,10 +6,18 @@ They intentionally keep the flow simple:
6
6
7
7
1. Build a tiny manifest in memory.
8
8
2. Create a `SandboxAgent` that inspects that workspace through one shell tool.
9
-
3. Run the agent against E2B, Modal, Daytona, Cloudflare, Runloop, Blaxel, or Vercel.
9
+
3. Run the agent against E2B, Modal, Daytona, Cloudflare, Blaxel, or Vercel.
10
10
11
11
All of these examples require `OPENAI_API_KEY`, because they call the model through the normal `Runner` path. Each cloud backend also needs its own provider credentials.
12
12
13
+
## Migrating from Runloop
14
+
15
+
Runloop support has been removed from `openai-agents`. Imports from `agents.extensions.sandbox.runloop` and Runloop exports from `agents.extensions.sandbox`, including `RunloopSandboxClient`, no longer work. Applications that still need Runloop can stay on a previously released compatible version while migrating.
16
+
17
+
The [Modal example](#modal) uses `ModalSandboxClient` and `ModalSandboxClientOptions` from `agents.extensions.sandbox`. Install `openai-agents[modal]`, configure Modal authentication, and set an app name. Replace the client and options in `SandboxRunConfig`, and adapt provider-specific mounts and platform operations. `ModalCloudBucketMountStrategy` provides native cloud bucket mounts; review and test its provider-specific behavior and credentials for your workload.
18
+
19
+
Before switching, preserve any data you need from existing Runloop sandboxes. Runloop sandbox IDs, snapshots, and session state are provider-specific; do not assume Modal can resume them. Create a new Modal sandbox and restore the data through a supported mechanism.
20
+
13
21
## E2B
14
22
15
23
### Setup
@@ -228,84 +236,6 @@ export DAYTONA_API_KEY=...
228
236
uv run python examples/sandbox/extensions/daytona/daytona_runner.py --stream
229
237
```
230
238
231
-
## Runloop
232
-
233
-
### Setup
234
-
235
-
Install the repo extra:
236
-
237
-
```bash
238
-
uv sync --extra runloop
239
-
```
240
-
241
-
Sign up for Runloop, no credit card required and $50 in credits @ [platform.runloop.ai](https://platform.runloop.ai/).
242
-
Export the required environment variables:
243
-
244
-
```bash
245
-
export OPENAI_API_KEY=...
246
-
export RUNLOOP_API_KEY=...
247
-
```
248
-
249
-
### Run
250
-
251
-
```bash
252
-
uv run python examples/sandbox/extensions/runloop/runner.py --stream
253
-
```
254
-
255
-
Useful flags:
256
-
257
-
-`--blueprint-name <name>`
258
-
-`--pause-on-exit`
259
-
-`--root`
260
-
261
-
Runloop-specific SDK features are also available directly on
262
-
`RunloopSandboxClientOptions` and `RunloopSandboxClient.platform`. Example:
`managed_secrets` are stored as Runloop account secrets and only secret references are persisted in session state. An entry's value may instead be `RunloopExistingSecret()`, which attaches a secret that is already stored on the account by name, uploading nothing and leaving the stored value untouched. The platform facade also exposes Runloop-native helpers for blueprints, benchmarks, secrets, network policies, and axons.
307
-
308
-
If you enable `--root`, Runloop launches the devbox with `launch_parameters.user_parameters={"username":"root","uid":0}`. In that mode, the default home and working directory become `/root`, so the example also uses `/root` as its manifest workspace root. If you configure root launch in your own code, either rely on that root-mode default or explicitly choose a `manifest.root` under `/root`.
0 commit comments