0
Fork 0
mirror of https://github.com/mastra-ai/mastra.git synced 2026-11-17 08:44:46 +00:00
mastra/workspaces/e2b
History 2026-11-12 21:12:29 +00:00
..
src feat(factory): Factory-wide sandbox environment variables (#29923) 2026-11-10 17:14:26 -07: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 - exit prerelease mode 2026-11-12 21:12:29 +00: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 - exit prerelease mode 2026-11-12 21:12:29 +00: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.