You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A lightweight, self-hosted sandbox environment for AI agents with browser automation, shell access, code execution, and file operations — all controlled via REST API.
Features
Shell — Execute commands with streaming output (SSE)
# Create a skill
curl -X POST http://localhost:8080/skills \
-H "Content-Type: application/json" \
-d '{ "name": "my-helper", "description": "A helpful skill", "body": "Instructions for the skill..." }'# Search skills
curl "http://localhost:8080/skills/search?q=helper"
Configuration
Environment variables:
Variable
Default
Description
PORT
8080
API server port
WORKSPACE
/home/sandbox/workspace
Default working directory
DISPLAY
:99
X11 display for browser
CDP_PORT
9222
Chrome DevTools Protocol port
SKILLS_DIR
./skills
Skills storage directory
BROWSER_HEADLESS
true
Run browser in headless mode
BROWSER_EXECUTABLE
(auto-detect)
Path to Chromium binary
BROWSER_VIEWPORT_WIDTH
1280
Default viewport width
BROWSER_VIEWPORT_HEIGHT
720
Default viewport height
BROWSER_TIMEOUT
30
Default operation timeout (seconds)
Testing
cd sandbox-rs
# Run unit tests
cargo test --bin sandbox-api
# Run integration tests (requires running server)
PORT=9090 cargo run &
TEST_BASE_URL=http://localhost:9090 cargo test# Run browser tests (requires Chromium)
TEST_BASE_URL=http://localhost:9090 cargo test --test browser_test -- --ignored