Sandbar
Give an AI agent its own computer. Watch it work. Take over anytime.
On hardware you already own β a $5 VPS, a homelab box, or a Raspberry Pi.
---
## What is this?
Sandbar is a **self-hosted AI agent computer**: an isolated Linux desktop in a Docker container with an AI agent pre-installed, and a browser view so you can *watch the agent use the computer* β mouse, keyboard, browser, apps β and grab the controls whenever you want.
- π₯οΈ **A real desktop** β Debian + XFCE, streamed to your browser at 60fps ([Selkies](https://github.com/selkies-project/selkies), the same stack behind linuxserver.io's Webtop)
- π€ **An agent that lives there** β [Hermes](https://github.com/NousResearch/hermes-agent) by default, version-pinned. OpenClaw and bring-your-own-agent supported
- π **A window you can trust** β live desktop view + agent chat side by side, human takeover at any moment
- π **Yours** β your hardware, your API keys, your data. No cloud account. No telemetry.
```
βββββββββββββββββββββββββββββββββββββββββββββββ¬βββββββββββββββββββ
β β β
β β agent chat β
β live desktop (watch/takeover) β (TUI) β
β β β
β β β
βββββββββββββββββββββββββββββββββββββββββββββββ΄βββββββββββββββββββ
```
## Quick start
> π¨ **Status: v2 is being built in public.** The single-container image below **works today** (see [`desktop/`](desktop/)); the platform tier is next β see the [roadmap](docs/ROADMAP.md). Star/watch to follow along.
**One computer, one command:**
```bash
docker run -d --name sandbar \
-p 3000:3000 -p 3001:3001 -p 7681:7681 \
-v sandbar-config:/config \
--shm-size=1g \
ghcr.io/jdrolls/sandbar-desktop:latest
```
Add `-p 8080:8080` and open **`http://localhost:8080`** β the Sandbar Window: desktop and agent chat on one page. First run walks you through connecting a provider (Nous Portal OAuth, Anthropic, OpenAI, OpenRouter, local modelsβ¦). **No key baked in, ever.** Passing `-e ANTHROPIC_API_KEY=...` (or any provider key) skips onboarding. See [`desktop/`](desktop/) for auth, adapters, and all the knobs.
**Remote host over an SSH tunnel:** the Window embeds the desktop and chat from `localhost:3000` and `localhost:7681`, so forward all three ports, not just the Window's:
```bash
ssh -L 8091:localhost:8080 -L 3000:localhost:3000 -L 7681:localhost:7681 user@host
```
Then open `http://localhost:8091`. `localhost` is a secure context, so the desktop stream works over plain HTTP and the HTTPS hint stays hidden. Tunneling only `8091` leaves both panes showing "localhost refused to connect".
**The full platform (provision many computers from a dashboard, REST API, MCP):**
```bash
curl -fsSL https://raw.githubusercontent.com/jdrolls/sandbar/main/install.sh | bash
```
The installer checks Docker, brings up the control plane, and prints your dashboard URL + access token. Create and destroy computers from the dashboard or the API; plug the [MCP server](platform/mcp/) into Claude Code (or any MCP client) to use your computers as native tools. Private-by-default: Platform and every seat bind to loopback. For verified remote use on a [Tailscale](https://tailscale.com) tailnet, set `SANDBAR_BIND_IP` to the host's Tailscale IPv4 address (or let the installer detect one for that run); the dashboard's direct per-seat links then work on their dynamic ports. Tailscale Serve is optional for a single dashboard only, not the dynamic seat pool. The platform's explicit shared-browser seat opt-in requires both `io.sandbar.shared-browser=shared-seat-v1` and `io.sandbar.shared-viewer=viewer-lock-v1` image capabilities (alongside `io.sandbar.chromium-sandbox=namespace-v1`) and locks its websocket-only viewer with `--mode=websockets --enable-dual-mode='false|locked'`; ordinary desktop seats retain the vendor-default viewer behavior.
## How it works
```mermaid
flowchart LR
subgraph you["π§ You"]
B[Browser tab]
end
subgraph host["π₯οΈ Your hardware β VPS / homelab / Pi"]
CP["Control plane (Bun/TS)\nprovisioning Β· auth Β· proxy Β· MCP"]
subgraph C1["π¦ Computer (container)"]
D["Debian 13 + XFCE\nSelkies desktop stream"]
A["Hermes agent\n(pinned version)"]
API["Control API\nscreenshot Β· click Β· type Β· bash"]
end
end
B -- "watch + takeover" --> CP --> D
B -- "chat (TUI)" --> A
A -- "uses" --> D
A -. "or drive it from outside\n(MCP / REST)" .-> API
```
One container is a complete, watchable agent computer. The control plane is **optional** β add it when you want to provision multiple computers, hand out API keys, or plug Sandbar computers into Claude Code / any MCP client as native tools.
## Who is this for?
You, probably, if you:
- like to **tinker and self-host** β you'd rather run it on your own box than sign up for a cloud
- want to **experiment with AI agents** without giving one your actual computer
- believe **watching an agent work** beats trusting a log file
- care about **isolation**: the agent gets root on *its* computer, never on yours
## The agent is a guest, not the house
Sandbar's agent layer is a thin adapter contract β the computer doesn't care who lives in it:
| Adapter | Status | Notes |
|---|---|---|
| **Hermes** | default | Multi-provider models (Anthropic, OpenAI, OpenRouter, local Ollama), desktop computer-use, 20+ chat channels via its gateway |
| **OpenClaw** | supported | Containment mode β run the internet's favorite agent inside a jail with a window |
| **None / BYO** | supported | Point your own agent (or Claude Code via MCP) at the control API |
## Security posture
- Non-root agent user inside the container; hardened runtime (`no-new-privileges`, resource caps, per-computer networks)
- No Docker socket in anything internet-facing
- Every surface authenticated β desktop, terminal, and API routes all require tokens
- Private-by-default access (Tailscale first); public exposure is an explicit choice
- Agent versions pinned β no `@latest` surprises
- Optional stronger isolation tiers on the roadmap: [sysbox](https://github.com/nestybox/sysbox), [gVisor](https://gvisor.dev)
See [SECURITY.md](SECURITY.md) for reporting.
## Learn more
- π [Design](docs/DESIGN.md) β the full architecture and every decision with its reasoning
- πΊοΈ [Roadmap](docs/ROADMAP.md) β what's built, what's next
- π₯οΈ [Jarvis agent fleet](docs/JARVIS_AGENT_FLEET.md) β staged private-pool operating reference
- π§ͺ [Spike](spike/) β the current proving ground (watch this space)
## License
[MIT](LICENSE) β use it, fork it, ship it.