Overview
Maru is an open-source example showing:- Running Claude Agent SDK in Moru sandboxes
- Session persistence across sandbox restarts
- Real-time streaming of agent output
- Tool execution in isolated environments
- Workspace file management
View on GitHub
Explore the complete source code.
Architecture
Components
| Component | Description |
|---|---|
| Web App | React-based chat interface |
| Backend | Node.js server managing sandboxes |
| Sandbox | Moru sandbox running the agent |
| Agent | Claude Agent SDK for AI reasoning |
| Storage | Session and workspace persistence |
Key Features
1. Sandbox Lifecycle Management
2. Session Persistence
Sessions are preserved across sandbox restarts:3. Real-time Streaming
Stream agent output to the user:4. Tool Execution
The agent executes tools in the sandbox:Quick Start
Prerequisites
- Node.js 18+
- Moru API key
- Anthropic API key