Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
S

sandbox

> AI 编程
Open source

All-in-One Sandbox for AI Agents that combines Browser, Shell, File, MCP and VSCode Server in a single Docker container.

5.5K stars0 likes2 views
WebsiteGitHub

About

All-in-One Sandbox for AI Agents that combines Browser, Shell, File, MCP and VSCode Server in a single Docker container.

AIO Sandbox - All-in-One Agent Sandbox Environment

Browser | Terminal | File | VSCode | Jupyter | MCP

Quick Start

Get up and running in 30 seconds:

bash
# Recommended: Enable API Key authentication (protects all services: API, JupyterLab, VNC)
# - Supports three methods: X-AIO-API-Key header, Authorization: Bearer header, ?api_key= query parameter
# - Without SANDBOX_API_KEY, services remain open (backward compatible)
docker run --security-opt seccomp=unconfined --rm -it \
  -e SANDBOX_API_KEY=your-secret-key \
  -p 127.0.0.1:8080:8080 ghcr.io/agent-infra/sandbox:latest

For users in mainland China:

bash
docker run --security-opt seccomp=unconfined --rm -it \
  -e SANDBOX_API_KEY=your-secret-key \
  -p 127.0.0.1:8080:8080 enterprise-public-cn-beijing.cr.volces.com/vefaas-public/all-in-one-sandbox:1.11.0

For reproducible deployments, pin a release tag. Replace 1.11.0 with the release you want:

bash
docker run --security-opt seccomp=unconfined --rm -it \
  -p 127.0.0.1:8080:8080 ghcr.io/agent-infra/sandbox:1.11.0
# or use the pinned mainland China mirror
docker run --security-opt seccomp=unconfined --rm -it \
  -p 127.0.0.1:8080:8080 enterprise-public-cn-beijing.cr.volces.com/vefaas-public/all-in-one-sandbox:1.11.0

These examples intentionally bind the host side to 127.0.0.1 because the sandbox listens on 0.0.0.0 inside the container. For cloud deployment, keep port 8080 private and publish it through a reverse proxy or Ingress: Cloud Deployment Guide.

Once running, access the environment at:

  • Documentation: http://localhost:8080/v1/docs
  • VNC Browser: http://localhost:8080/vnc/index.html?autoconnect=true
  • VSCode Server: http://localhost:8080/code-server/
  • MCP Services: http://localhost:8080/mcp

What is AIO Sandbox?

AIO Sandbox is an all-in-one agent sandbox environment that combines Browser, Shell, File, MCP operations, and VSCode Server in a single Docker container. Built on cloud-native lightweight sandbox technology, it provides a unified, secure execution environment for AI agents and developers.

Why Choose AIO Sandbox?

Traditional sandboxes are single-purpose (browser, code, or shell), making file sharing and functional coordination extremely challenging. AIO Sandbox solves this by providing:

  • ✅ Unified File System - Files downloaded in browser are instantly available in Shell/File operations
  • ✅ Multiple Interfaces - VNC, VSCode, Jupyter, and Terminal in one unified environment
  • ✅ Secure Execution - Sandboxed Python and Node.js execution with safety guarantees
  • ✅ Zero Configuration - Pre-configured MCP servers and development tools ready to use
  • ✅ Agent-Ready - MCP-compatible APIs for seamless AI agent integration

Installation

SDK Installation

Python

bash
pip install agent-sandbox

TypeScript/JavaScript

bash
npm install @agent-infra/sandbox

Golang

bash
go get github.com/agent-infra/sandbox-sdk-go

Basic Usage

Python Example

python
from agent_sandbox import Sandbox

# Initialize client
client = Sandbox(base_url="http://localhost:8080")
home_dir = client.sandbox.get_context().home_dir

# Execute shell commands
result = client.shell.exec_command(command="ls -la")
print(result.data.output)

# File operations
content = client.file.read_file(file=f"{home_dir}/.bashrc")
print(content.data.content)

# Browser automation
screenshot = client.browser.screenshot()

TypeScript Example

typescript
import { Sandbox } from '@agent-infra/sandbox';

// Initialize client
const sandbox = new Sandbox({ baseURL: 'http://localhost:8080' });

// Execute shell commands
const result = await sandbox.shell.exec({ command: 'ls -la' });
console.log(result.output);

// File operations
const content = await sandbox.file.read({ path: '/home/gem/.bashrc' });
console.log(content);

// Browser automation
const screenshot = await sandbox.browser.screenshot();

Key Features

Unified Environment

All components run in the same container with a shared filesystem, enabling seamless workflows:

Browser Automation

Full browser control through multiple interfaces:

  • VNC - Visual browser interaction through remote desktop
  • CDP - Chrome DevTools Protocol for programmatic control
  • MCP - High-level browser automation tools

Development Tools

Integrated development environment with:

  • VSCode Server - Full IDE experience in browser
  • Jupyter Notebook - Interactive Python environment
  • Terminal - WebSocket-based terminal access
  • Port Forwarding - Smart preview for web applications

MCP Integration

Pre-configured Model Context Protocol servers:

  • Browser - Web automation and scraping
  • File - File system operations
  • Shell - Command execution
  • Markitdown - Document processing

Complete Example

Convert a webpage to Markdown with embedded screenshot:

…

️ Architecture

┌─────────────────────────────────────────────────────────────┐
│                     Browser + VNC                        │
├─────────────────────────────────────────────────────────────┤
│   VSCode Server  │   Shell Terminal  │   File Ops   │
├─────────────────────────────────────────────────────────────┤
│               MCP Hub +  Sandbox Fusion               │
├─────────────────────────────────────────────────────────────┤
│          Preview Proxy +  Service Monitoring          │
└─────────────────────────────────────────────────────────────┘

️ API Reference

Core APIs

Endpoint Description
/v1/sandbox Get sandbox environment information
/v1/shell/exec Execute shell commands
/v1/file/read Read file contents
/v1/file/write Write file contents
/v1/browser/screenshot Take browser screenshot
/v1/jupyter/execute Execute Jupyter code

MCP Servers

Server Tools Available
browser navigate, screenshot, click, type, scroll
file read, write, list, search, replace
shell exec, create_session, kill
markitdown convert, extract_text, extract_images

Deployment

Docker Compose

yaml
services:
  sandbox:
    container_name: aio-sandbox
    image: ghcr.io/agent-infra/sandbox:latest
    security_opt:
      - seccomp:unconfined
    ports:
      - "127.0.0.1:${HOST_PORT:-8080}:8080"
    volumes:
      - sandbox_data:/home/gem/workspace
    extra_hosts:
      - "host.docker.internal:host-gateway"
    restart: "unless-stopped"
    shm_size: "2gb"
    environment:
      SANDBOX_API_KEY: ${SANDBOX_API_KEY:-}
      PROXY_SERVER: ${PROXY_SERVER:-}
      WORKSPACE: ${WORKSPACE:-/home/gem/workspace}
      TZ: ${TZ:-Asia/Singapore}

volumes:
  sandbox_data:

Kubernetes

yaml
apiVersion: apps/v1
kind: Deployment
metadata:
  name: aio-sandbox
spec:
  replicas: 2
  selector:
    matchLabels:
      app: aio-sandbox
  template:
    metadata:
      labels:
        app: aio-sandbox
    spec:
      containers:
      - name: aio-sandbox
        image: ghcr.io/agent-infra/sandbox:latest
        ports:
        - containerPort: 8080
        resources:
          limits:
            memory: "2Gi"
            cpu: "1000m"

Integration Examples

Browser Use Integration

…

LangChain Integration

python
from langchain.tools import BaseTool
from agent_sandbox import Sandbox

class SandboxTool(BaseTool):
    name = "sandbox_execute"
    description = "Execute commands in AIO Sandbox"

    def _run(self, command: str) -> str:
        client = Sandbox(base_url="http://localhost:8080")
        result = client.shell.exec_command(command=command)
        return result.data.output

OpenAI Assistant Integration

…

MiniMax Integration

MiniMax provides an OpenAI-compatible API, so you can use the same openai SDK with a different base_url:

…

See the full minimax-integration example for more details.

Contributing

We welcome contributions! Please see our Contributing Guide for details.

License

AIO Sandbox is released under the Apache License 2.0.

Acknowledgments

Built with ❤️ by the Agent Infra team. Special thanks to all contributors and the open-source community.

Support

  • Documentation
  • GitHub Discussions
  • Issue Tracker

Ready to revolutionize your AI development workflow?
⭐ Star us on GitHub • Read the Docs • Report Issues

Issues· 0 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

Pythonagentall-in-onebrowserfilesystem

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 17, 2026
CategoryAI 编程
PricingOpen source

> Related tools

G
GitHub Copilot
GitHub 官方 AI 编程助手,覆盖补全、Chat 与 Agent 模式。
C
Cursor
AI 原生代码编辑器,对话改代码、多文件 Agent 与规则体系是其核心。
S
skills
Skills for Real Engineers. Straight from my .agents directory.