MarinaBox - Open-Source Sandbox for AI Agent Sandboxes
MarinaBox provides secure, isolated browser and desktop environments for AI agents. Docker-based, Python SDK included, works with Playwright and Selenium.
TL;DR
TL;DR: MarinaBox is an open-source toolkit that spins up isolated Docker-based sandbox environments for AI agents, supporting both browser and headless desktop sessions with a Python SDK and CLI.
Source and Accuracy Notes
⚠️ This section is MANDATORY. All links must be verified from actual source, not guessed.
- Project page: marinabox.mintlify.app
- Source repository: github.com/marinabox/marinabox (verified README, 143 stars, MIT license)
- License: MIT (verified via
LICENSEfile in repo root) - HN launch thread: news.ycombinator.com/item?id=42503627 (Show HN)
- Source last checked: 2026-07-24
What Is MarinaBox?
MarinaBox describes itself as a toolkit for creating and managing secure, isolated environments for AI agents. The core proposition is practical: when AI agents need to interact with a computer — browsing the web, filling forms, executing tasks — giving them direct access to your local machine is a security risk. MarinaBox provides an isolated sandbox instead.
The README lists three primary use cases:
- Secure AI agent task execution — Run agents (such as Claude Computer Use) inside an isolated environment rather than on the host machine.
- Web navigation and browser automation — A sandboxed Chromium browser for tasks like booking flights or filling web forms, with Playwright and Selenium integration.
- Human-in-the-loop interaction — Live session viewing so users can monitor and take control of a sandbox at any time.
The project is Docker-based. Pre-built images are provided for macOS ARM64 (Apple Silicon); other architectures can build from the marinabox-sandbox repo.
Setup Workflow
Prerequisites
- Docker installed on your system
- Python 3.12 or higher
- pip
Step 1: Pull the Docker Images
docker pull marinabox/marinabox-browser:latest
docker pull marinabox/marinabox-desktop:latest
These images contain the sandboxed browser and desktop environments.
Step 2: Install the Python Package
pip install marinabox
The package includes both the Python SDK and a command-line interface for session management.
Step 3: Launch a Sandbox Session
After installation, you can start a sandboxed browser session programmatically via the Python SDK:
import marinabox
client = marinabox.Client()
session = client.sessions.create(type="browser")
print(f"Session ID: {session.id}")
The session runs inside the Docker container, isolated from the host system.
Step 4: Integrate with Playwright or Selenium
The sandboxed Chromium browser works with existing automation tools:
from playwright.sync_api import sync_playwright
with sync_playwright() as p:
browser = p.chromium.connect_over_cdp("http://localhost:9222")
page = browser.new_page()
page.goto("https://example.com")
This lets you reuse existing Playwright or Selenium scripts inside the MarinaBox sandbox without modifying them.
Deeper Analysis
Architecture
MarinaBox uses Docker containers as the isolation layer. The marinabox-browser image ships with a Chromium instance configured for remote debugging, accessible via CDP (Chrome DevTools Protocol). The marinabox-desktop image provides a headless desktop environment for GUI-based agent tasks.
Sessions are managed through the Python SDK, which exposes a REST-like API for creating, monitoring, and terminating sandboxed environments. The interactive UI dashboard provides live session viewing and recording.
Cloud Support
The README notes that cloud deployment (AWS) is planned but not yet available. All current features run locally.
Platform Support
The pre-built Docker images target macOS ARM64. For Linux, Windows, or other architectures, you build from source:
git clone https://github.com/marinabox/marinabox-sandbox
docker build --platform linux/amd64 -f Dockerfile.chromium -t marinabox/marinabox-browser .
Practical Evaluation Checklist
- Isolation: Docker containerization provides process-level isolation from the host.
- Browser automation: CDP-accessible Chromium works with Playwright and Selenium without modification.
- Python SDK: First-party SDK covers session lifecycle management.
- CLI: Command-line interface available for scriptable session control.
- Human-in-the-loop: Live view and session takeover for human oversight.
- Self-hosted: All code is open source; no cloud dependency for current features.
- Architecture: Only macOS ARM64 pre-built images available at this time; other platforms require a build-from-source step.
Security Notes
Running AI agents in sandboxed environments is safer than direct host access, but the security posture depends on your Docker configuration. The project isolates at the container level, not the VM level. For high-risk agent tasks, consider running Docker with additional restrictions (read-only filesystem, no network, minimal capabilities).
FAQ
Q: Does MarinaBox require a cloud service or API key? A: No. All current features run locally using Docker. No cloud service or API key is needed.
Q: Can I use existing Playwright scripts inside the sandbox? A: Yes. The sandboxed Chromium exposes a CDP endpoint that Playwright and Selenium can connect to directly.
Q: What is the license?
A: MarinaBox is MIT licensed, as confirmed in the LICENSE file in the repository root.
Q: Does it work on Linux or Windows?
A: Pre-built Docker images are only provided for macOS ARM64. For other platforms, you build the images from the marinabox-sandbox repository.
Conclusion
MarinaBox addresses a real gap in the AI agent tooling landscape: safe, isolated execution environments for browser and desktop tasks. The Docker-based approach means you get isolation without needing a full VM, and the Playwright/Selenium compatibility means you can drop it into existing automation workflows.
If you’re running AI agents that interact with web pages or need a secure way to let agents execute on a computer without exposing your local system, MarinaBox is worth evaluating. The MIT license and self-hosted design make it suitable for both personal projects and team deployments.
Explore the project at github.com/marinabox/marinabox or read the full documentation at marinabox.mintlify.app.
Related Posts
ai-setup
Recall – Persistent Memory for Claude Code via MCP Hooks
Recall gives Claude Code a permanent memory store that survives session restarts and context compaction. Four hooks capture and restore context automatically — with cloud SaaS or self-hosted options.
2/28/2026
dev-tools
Automotive Skills Suite for AI Engineering
Evaluate Automotive Skills Suite for APQP, ASPICE, HARA, safety-plan, and DIA workflows with setup notes, governance risks, and SME review guidance.
5/28/2026
dev-tools
awesome-agentic-ai-zh Roadmap Guide
Explore awesome-agentic-ai-zh as a Chinese agentic AI learning roadmap, with setup notes, track selection, study workflow, and evaluation guidance.
5/28/2026