0
Fork 0
mirror of https://github.com/mastra-ai/mastra.git synced 2026-11-17 08:44:46 +00:00
mastra/workspaces/e2b-desktop
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): add desktop computer use provider (#21707) 2026-08-25 22:35:23 -05:00
.env.example feat(e2b): add desktop computer use provider (#21707) 2026-08-25 22:35:23 -05:00
.gitignore feat(e2b): add desktop computer use provider (#21707) 2026-08-25 22:35:23 -05: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): add desktop computer use provider (#21707) 2026-08-25 22:35:23 -05:00
tsconfig.json feat(e2b): add desktop computer use provider (#21707) 2026-08-25 22:35:23 -05:00
tsdown.config.ts feat(e2b): add desktop computer use provider (#21707) 2026-08-25 22:35:23 -05:00
vitest.config.ts feat(e2b): add desktop computer use provider (#21707) 2026-08-25 22:35:23 -05:00

@mastra/e2b-desktop

E2B Desktop (computer-use) sandbox provider for Mastra workspaces.

Runs a full Linux desktop environment in an E2B cloud sandbox with screenshot, mouse, and keyboard control. Extends @mastra/e2b's E2BSandbox the same way @e2b/desktop's SDK extends e2b's — everything the base provider supports (command execution, processes, file upload, pause/resume reconnection) works against the same desktop VM.

Installation

npm install @mastra/e2b-desktop

Usage

import { Agent } from '@mastra/core/agent';
import { Workspace } from '@mastra/core/workspace';
import { E2BDesktopSandbox } from '@mastra/e2b-desktop';

const sandbox = new E2BDesktopSandbox({ resolution: [1280, 720] });

const agent = new Agent({
  name: 'desktop-agent',
  instructions: 'You can control a Linux desktop and run shell commands.',
  model: 'anthropic/claude-sonnet-4-6',
  // file + shell + computer tools are all emitted automatically
  workspace: new Workspace({ sandbox }),
});

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.