mirror of
https://github.com/mastra-ai/mastra.git
synced 2026-11-17 08:44:46 +00:00
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> |
History
|
|
|---|---|---|
| .. | ||
| src | ||
| .env.example | ||
| .gitignore | ||
| CHANGELOG.md | ||
| lint-staged.config.js | ||
| package.json | ||
| README.md | ||
| tsconfig.build.json | ||
| tsconfig.json | ||
| tsdown.config.ts | ||
| vitest.config.ts | ||
@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.