packages/e2b
September 4, 2026 · View on GitHub
English | 中文
Summary
The e2b group moves the agent's file and command work into a remote Linux sandbox: file reads and writes, shell commands, and terminals all run in one remote world instead of on your machine. Three packages work together — one provides the shared sandbox, one runs file operations in it, and one runs commands and terminals in it. Existing shell, terminal, and language-server features keep working unchanged once the family is enabled, so no E2B-specific tooling is needed. The harness process, model calls, and session state never move — only the execution world is remote, and the sandbox is ephemeral. It is an experimental POC, and no shipped composition enables it by default.
Table of Contents
Packages
| Package | Role | ctx key |
|---|---|---|
e2b | One shared remote Linux sandbox that file and command work runs in | ctx.e2b |
fs-e2b | File reads, writes, edits, and listings inside the remote sandbox | ctx.fs |
subprocess-e2b | Shell commands and interactive terminals inside the remote sandbox | ctx.subprocess |
Related documentation
- Portable execution-world decision — why the execution world can move without moving the harness, and what stays local.
- Subprocess subsystem — the subprocess seam contract and the generated Cordis surface, including
ctx.e2b. - Filesystem subsystem — the filesystem seam contract and the generated Cordis surface.
Dev Note
Working context for maintainers — click to expand
None.