0
Fork 0
mirror of https://github.com/mastra-ai/mastra.git synced 2026-11-17 08:44:46 +00:00
mastra/workspaces/e2b
dane-ai-mastra[bot] a5859ee2b9
chore: version packages (alpha) (#30430)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
History 2026-11-16 14:09:31 +01:00
..
src feat(e2b): run commands as another OS user, and choose the owner of S3/GCS mounts (#30433) 2026-11-15 08:51:28 -08:00
.env.example feat: E2B sandbox and S3 filesystem with mount support (COR-380, COR-385, COR-484) (#12605) 2026-02-10 14:07:57 -08:00
.gitignore feat: E2B sandbox and S3 filesystem with mount support (COR-380, COR-385, COR-484) (#12605) 2026-02-10 14:07:57 -08:00
CHANGELOG.md chore: version packages (alpha) (#30430) 2026-11-16 14:09:31 +01:00
lint-staged.config.js refactor(lint): replace ESLint with type-aware oxlint (#27476) 2026-10-18 10:38:35 -07:00
package.json chore: version packages (alpha) (#30430) 2026-11-16 14:09:31 +01:00
README.md chore(*): Update/unify/add READMEs (#22858) 2026-09-02 14:36:59 +02:00
tsconfig.build.json feat: E2B sandbox and S3 filesystem with mount support (COR-380, COR-385, COR-484) (#12605) 2026-02-10 14:07:57 -08:00
tsconfig.json chore: migrate package builds to tsdown (#19829) 2026-07-28 12:32:21 +02:00
tsdown.config.ts feat(workspace): native sandbox filesystem for E2B and Platform sandboxes (#27859) 2026-10-20 14:17:57 -07:00
vitest.config.ts feat: E2B sandbox and S3 filesystem with mount support (COR-380, COR-385, COR-484) (#12605) 2026-02-10 14:07:57 -08:00

@mastra/e2b

E2B cloud sandbox provider for Mastra workspaces. Provides secure, isolated code execution environments with support for mounting cloud storage.

Installation

npm install @mastra/e2b

Usage

import { Agent } from '@mastra/core/agent';
import { Workspace } from '@mastra/core/workspace';
import { E2BSandbox } from '@mastra/e2b';

const workspace = new Workspace({
  sandbox: new E2BSandbox({
    apiKey: 'my-api-key', // falls back to E2B_API_KEY env var
    timeout: 60_000, // 60 second timeout (default: 5 minutes)
  }),
});

const agent = new Agent({
  name: 'my-agent',
  model: 'anthropic/claude-opus-4-5',
  workspace,
});

Documentation

Changelog

See the package changelog for version history and release notes.

Support

We have an open community Discord. Come and say hello and let us know if you have any questions or need any help getting things running.