Skip to content

Commit c5f04f6

Browse files
authored
Reposition sandbox messaging from ephemeral to persistent-first (#137)
* Reposition sandbox messaging from ephemeral to persistent-first Replace ephemeral language (spin up, disposable, destroyed automatically, alive for 5 minutes) across 15 doc pages with persistent-first framing. Sandboxes are now described as long-running by default with auto-pause, while preserving isolation, security, and scalability messaging. * Remove persistence beta labels and update API methods to GA Persistence is no longer in beta. Remove all beta notes, rename betaPause/beta_pause to pause, betaCreate/beta_create to Sandbox.create, and rename "Limitations while in beta" to "Limitations". * Restore beta SDK method names (betaPause, betaCreate) The previous commit incorrectly renamed the SDK methods. The beta labels/notes in the docs are removed but the actual API methods (betaPause, beta_pause, betaCreate, beta_create) are still the current SDK surface. * Clarify auto-pause triggers on timeout expiry, not idle detection * Align lifecycle page with timeout-expiry framing * Use Note callout instead of Info on sandbox lifecycle page
1 parent 25ebcf4 commit c5f04f6

File tree

15 files changed

+35
-53
lines changed

15 files changed

+35
-53
lines changed

docs.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import { Quickstart } from '/snippets/Quickstart.jsx';
1010

1111
E2B provides isolated sandboxes that let agents safely execute code, process data, and run tools. Our SDKs make it easy to start and manage these environments.
1212

13-
Spin up a sandbox and run code in a few lines:
13+
Start a sandbox and run code in a few lines:
1414

1515
<CodeGroup>
1616
```bash JavaScript & TypeScript
@@ -50,7 +50,7 @@ A quick overview of the core building blocks you'll interact with when using E2B
5050

5151
The documentation is split into three main sections:
5252

53-
- [**Quickstart**](#quickstart) — Step-by-step tutorials that walk you through spinning up your first E2B sandboxes.
53+
- [**Quickstart**](#quickstart) — Step-by-step tutorials that walk you through creating your first E2B sandboxes.
5454

5555
- [**Examples**](#examples) — In-depth tutorials focused on specific use cases. Pick the topics that match what you're building.
5656

docs/agents/amp.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ icon: "/images/icons/amp.svg"
88

99
## CLI
1010

11-
Spin up a sandbox with the [E2B CLI](/docs/cli).
11+
Create a sandbox with the [E2B CLI](/docs/cli).
1212

1313
```bash
1414
e2b sbx create amp

docs/agents/claude-code.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ icon: "/images/icons/claude-code.svg"
88

99
## CLI
1010

11-
Spin up a sandbox with the [E2B CLI](/docs/cli).
11+
Create a sandbox with the [E2B CLI](/docs/cli).
1212

1313
```bash
1414
e2b sbx create claude

docs/agents/codex.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ icon: "/images/icons/codex.svg"
88

99
## CLI
1010

11-
Spin up a sandbox with the [E2B CLI](/docs/cli).
11+
Create a sandbox with the [E2B CLI](/docs/cli).
1212

1313
```bash
1414
e2b sbx create codex

docs/agents/openclaw.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ icon: "/images/icons/openclaw.svg"
88

99
## CLI
1010

11-
Spin up a sandbox with the [E2B CLI](/docs/cli).
11+
Create a sandbox with the [E2B CLI](/docs/cli).
1212

1313
```bash
1414
e2b sbx create openclaw

docs/agents/opencode.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ icon: "/images/icons/opencode.svg"
88

99
## CLI
1010

11-
Spin up a sandbox with the [E2B CLI](/docs/cli).
11+
Create a sandbox with the [E2B CLI](/docs/cli).
1212

1313
```bash
1414
e2b sbx create opencode

docs/billing.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -92,10 +92,10 @@ Check your usage and costs in the [dashboard usage tab](https://e2b.dev/dashboar
9292
</Accordion>
9393

9494
<Accordion title="How do I optimize costs?">
95-
- **Always kill sandboxes when done** - Use `sbx.kill()` to stop billing immediately
96-
- **Enable autopause** - Automatically pause sandboxes after a period of inactivity to stop billing while preserving state
95+
- **Enable auto-pause** - Automatically pause sandboxes after a period of inactivity to stop billing while preserving state
96+
- **Pause sandboxes when idle** - Use `sbx.pause()` to stop billing while keeping state available for later
97+
- **Kill sandboxes you no longer need** - Use `sbx.kill()` to stop billing and release resources permanently
9798
- **Allocate only what you need** - Start with default resources (2 vCPU, 1 GB RAM) and increase only if necessary
98-
- **Implement automatic timeouts** - Set max session lengths to prevent forgotten sandboxes from running
9999
- **Monitor actively running sandboxes** - Use the [CLI](/docs/cli/list-sandboxes) or [dashboard](https://e2b.dev/dashboard?tab=usage) to track active sandboxes
100100
- **Use lifecycle events** - Set up [webhooks](/docs/sandbox/lifecycle-events-webhooks) to get notified when sandboxes are created
101101
</Accordion>

docs/cli/connect-to-sandbox.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@ e2b sandbox connect <sandbox-id>
1212

1313
Unlike the `create` command, `connect` does not kill the sandbox when you disconnect. When you exit the terminal, only your terminal session is closed—the sandbox continues running.
1414

15-
Once connected, you can inspect the sandbox filesystem and processes to debug or experiment, or use it as a disposable environment for running agents instead of your local computer.
15+
Once connected, you can inspect the sandbox filesystem and processes to debug or experiment, or use it as a dedicated environment for running agents instead of your local computer.

docs/cli/create-sandbox.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,4 @@ This will:
2222
3. Keep the sandbox alive while you're connected
2323
4. Automatically kill the sandbox when you exit the terminal
2424

25-
Once connected, you can inspect the sandbox filesystem and processes to debug or experiment, or use it as a disposable environment for running agents instead of your local computer.
25+
Once connected, you can inspect the sandbox filesystem and processes to debug or experiment, or use it as a dedicated environment for running agents instead of your local computer.

docs/quickstart.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ We'll write the minimal code for starting Sandbox, executing Python inside it an
3535
import 'dotenv/config'
3636
import { Sandbox } from '@e2b/code-interpreter'
3737

38-
const sbx = await Sandbox.create() // By default the sandbox is alive for 5 minutes
38+
const sbx = await Sandbox.create() // Creates a persistent sandbox session
3939
const execution = await sbx.runCode('print("hello world")') // Execute Python inside the sandbox
4040
console.log(execution.logs)
4141

@@ -48,7 +48,7 @@ from dotenv import load_dotenv
4848
load_dotenv()
4949
from e2b_code_interpreter import Sandbox
5050

51-
sbx = Sandbox.create() # By default the sandbox is alive for 5 minutes
51+
sbx = Sandbox.create() # Creates a persistent sandbox session
5252
execution = sbx.run_code("print('hello world')") # Execute Python inside the sandbox
5353
print(execution.logs)
5454

0 commit comments

Comments
 (0)