sandboxd

Open-source, self-hosted AI app builder.
Prompt it and a coding agent builds real apps in isolated sandboxes on your server β€” each live at a preview URL. You own the infra, code, and data. MIT.

πŸ”₯ Trend of the Day on Trendshift

sandboxd β€’ Trend of the Day on Trendshift

Live demo   Get started   Star sandboxd

Docs License: MIT Runs on Docker Release Sponsor

---

Prompt β†’ a real, running app on your server, at its own URL.
See it in action πŸ‘‡

Build an app from a prompt in the sandboxd console
1 Β· Build from a prompt β€” an agent builds it in an isolated sandbox, live at a preview URL.
Drive sandboxd from the API / CLI
2 Β· Or drive the API β€” every action is a /v1 call, headless & scriptable.

β–Ά Try the live demo
Click around a real console with sample data β€” no install.

---

πŸ“£ Stay in the loop

Self-hosting is MIT and free, forever β€” git clone and you're done.
Want the 1.0 release + occasional product updates, or a managed cloud so you don't run the box yourself? Two links:

Get 1.0 + release news   sandboxd Cloud waitlist

No spam, one-click unsubscribe, and the cloud is optional β€” the self-hosted engine is always the full product.

--- ## What is sandboxd? The apps where you type *"build me a todo app"* and a working site appears at its own link β€” Lovable, Bolt, v0, Replit. **sandboxd is the open-source engine that makes that work, on your own server.** One HTTP request and it: 1. spins up a **private, isolated container** (its own filesystem + limits), 2. runs an **AI coding agent inside it** against your prompt, and 3. hands the app a **live preview URL**. Idle sandboxes **sleep and wake on demand**, so one ordinary box holds many apps instead of a VM each. Under the hood it's deliberately small: **one Go program driving Docker**, Traefik for URLs, SQLite for state β€” no Kubernetes, no separate database, no queue. **Bring your own models.** Run **OpenCode or Pi** against local or remote **OpenAI-compatible** and **Anthropic-compatible** endpoints. Add connections, model aliases and token limits in the console; provider keys stay encrypted on the control plane. Use your local model server or a LiteLLM gateway, including gateways routing to AWS Bedrock. [Set up model connections β†’](docs/model-providers.md) ## Two ways to use it - **API-first** β€” everything is a `/v1` call, so you can build sandboxd into your own product. - **Optional web console** β€” the fastest, **no-code** way to use it hands-on: create an app, chat to a coding agent, watch the live preview, edit files, and review a git diff & push β€” all in a browser. It's a **pure `/v1` client**; the engine runs perfectly headless without it. > **New here? Start with the console. Building a product? Drive the API.** The console starts with your idea: describe an app, choose a stack and agent, then work in a persistent conversation beside preview, code, terminal and Git. Settings groups model connections, coding-agent accounts, Git credentials and security controls. Workspace menus expose secrets, versions, memory and runtime tools. See the [console guide](console/README.md) for the complete workflow. ## What can you build? Anything you can describe β€” no code needed. Open the console (or the desktop app) and: - **✨ Describe it** β€” "a habit tracker", "a landing page for my bakery", "a team dashboard". A coding agent builds it in its own sandbox. - **πŸ‘€ Watch it come alive** β€” the app runs at a live preview URL while the agent works, and refreshes when each change lands. - **πŸ’¬ Keep shaping it** β€” chat to change anything; every step is a checkpoint you can restore. - **πŸš€ Make it yours** β€” review the code, commit and push it to your own Git repository. OpenCode's free models are built in, so you can start without an account; bring your own subscription or models whenever you like.

Base image, stacks & presets  Β·  Architecture

> **Dev β†’ prod, never shorter:** prompt an app into a sandbox, iterate on a live > preview, then self-host it on your own server in [one command](#-deploy-to-a-vps-in-one-click). ## Quick start Needs **Docker + the Compose plugin** and **git** on Linux (macOS via Docker Desktop is best-effort). Runs natively on **amd64 and arm64** β€” including Apple Silicon Macs and arm64 Linux hosts (e.g. AWS Graviton) β€” every image builds from multi-arch bases with no cross-compilation. Install in one line: ```bash curl -fsSL https://raw.githubusercontent.com/tastyeffectco/sandboxd/main/install.sh | bash ``` On a clean stable release checkout with `cosign` installed, it pulls and verifies the matching prebuilt images. Otherwise it builds from source. It starts the stack **with the web console**, and prints your **console URL**. Create your password on first visit, then connect an agent under **Settings**, create an app, and build. No code needed. - **Build from source instead:** run **`./install.sh --build`** β€” a first-class, fully-supported path. Compiles every image locally so you audit exactly what runs. Prebuilt images are multi-arch, **cosign-signed with build provenance** by [the release workflow](.github/workflows/release-images.yml). The installer verifies each pulled digest against that workflow's identity at the exact release tag before starting services. `./install.sh --pull` requires those checks to succeed; `--build` and custom image names use local builds. No signing tools are downloaded by the installer. A failure falls back to source in automatic mode, or stops without starting the stack in `--pull` mode. - **Console:** `http://console.localhost` β€” create your password on first visit. Run **`./console-login.sh`** to show the URL or reset the password. - **API:** `http://127.0.0.1:9090` (`curl http://127.0.0.1:9090/healthz` β†’ `ok`) - **Desktop (Electron):** the same builder in a native macOS/Windows app, with local or remote engine connections. Desktop installation is on by default on macOS; on Windows, the app offers **Install & open workspace** to provision its own local WSL engine. `install.ps1` remains available for existing Docker Desktop/WSL setups. Opt out of CLI desktop installation with `--no-desktop` / `-NoDesktop` or `SANDBOXD_DESKTOP=0`. The initial signed desktop release must be published before automatic downloads are available; see [desktop setup, source builds and release status](docs/desktop.md). - **Headless:** `--no-console --no-desktop` (Windows: `-NoConsole -NoDesktop`). - **Upgrade later:** run **`./upgrade.sh`** β€” it backs up your database first, health-checks the new version, and rolls back automatically if it fails ([Upgrading](docs/upgrading.md)). `./upgrade.sh --check` shows your version. Prefer the API? Connect an agent once, create a sandbox, hand it a prompt: ```bash API=http://127.0.0.1:9090 curl -s -XPOST $API/v1/agents/claude-code/api-key -d '{"api_key":"sk-ant-..."}' ID=$(curl -s -XPOST $API/sandbox -d '{"ports":[3000]}' | sed -E 's/.*"id":"([^"]+)".*/\1/') curl -s -XPOST $API/v1/sandboxes/$ID/tasks -d '{"prompt":"build a todo app on port 3000","agent":"opencode"}' # open the result at http://s-$ID-3000.preview.localhost ``` **Full walkthrough β†’ [sandboxd.io/quickstart](https://sandboxd.io/quickstart).** ## πŸš€ Deploy to a VPS in one click sandboxd needs one Linux server with Docker β€” nothing else. Grab a server below (2 vCPU / 4 GB is plenty to start), paste our [cloud-init file](deploy/cloud-init.yaml) at creation, and it installs itself. > **Disclosure:** we earn a referral commission when you sign up through the > provider links below, at no additional cost to you. It helps fund sandboxd's > development. [![Deploy on Vultr](https://img.shields.io/badge/Deploy%20on-Vultr-007BFC?logo=vultr&logoColor=white&style=for-the-badge)](https://www.vultr.com/?ref=9912150) Then on the new server (or paste [`deploy/cloud-init.yaml`](deploy/cloud-init.yaml) as user-data and skip this): ```bash curl -fsSL https://raw.githubusercontent.com/tastyeffectco/sandboxd/main/deploy/bootstrap.sh | sudo bash ``` Full per-provider walkthrough: [deploy/DEPLOY.md](deploy/DEPLOY.md). ## What you get - **Isolated sandboxes** β€” a hardened container per app with a workspace + live preview URL; sleep/wake so idle apps cost nothing. - **Built-in agents** β€” OpenCode & Claude Code. **No credential ever enters a sandbox** (a proxy injects it on the wire), and every task is **checkpointed & revertible**. - **Runtime presets** β€” React/Vite, Next.js, Node/Express, FastAPI, Worker; boot to a preview and reload after agent edits. - **Files, Git & secrets** β€” in-browser editor + diffs, commit & push, per-app config/secrets (encrypted, write-only). - **Snapshots / fork / restore**, an activity timeline, per-process logs, and live lifecycle tuning. ## Who's it for? **βœ… Use it** if you run **many sandboxes for other people** β€” an AI app-builder, an agent platform, a coding playground, per-user or per-branch preview environments, or team multi-app hosting. **❌ Skip it** if you just need one or two containers for yourself β€” a shell script or `docker run` is simpler. ([Why not just a script?](https://sandboxd.io/what-is-sandboxd)) ## Get a public URL β€” sandboxd Cloud Out of the box, previews live on `.sslip.io` or `localhost`: fine on your network, useless for sharing. **[sandboxd Cloud](https://sandboxd.io/cloud)** gives the server you already run `https://you.sandboxd.io` (console, API and `*.preview.you.sandboxd.io`) in one command β€” no domain, DNS, open ports or certificates, and it works behind NAT, on a laptop, or on a $5 VPS. Your compute and data stay on your machine. $9.99/server/month, 50% off at launch. Prefer your own domain? [Production / TLS](https://sandboxd.io/guides/production-tls). ## Managed β€” we run it for you Don't want to run the server yourself? We'll **install, configure, and manage sandboxd on your own box** β€” BYOC (your compute, your data, no lock-in). One-time setup + optional monthly management. **[See Managed β†’](https://sandboxd.io/managed)** ## Documentation Full docs live at **[sandboxd.io](https://sandboxd.io)**: | Getting started | Guides | Reference | |---|---|---| | [What is sandboxd?](https://sandboxd.io/what-is-sandboxd) | [The web console](https://sandboxd.io/guides/console) Β· [Get an app running](https://sandboxd.io/guides/apps-in-the-console) | [API (OpenAPI)](https://sandboxd.io/reference/api) | | [Quickstart](https://sandboxd.io/quickstart) | [Coding agents](https://sandboxd.io/guides/agents) | [Configuration](https://sandboxd.io/reference/configuration) | | [Core concepts](https://sandboxd.io/concepts) | [Base image, stacks & presets](https://sandboxd.io/guides/images-stacks-presets) | [Architecture](https://sandboxd.io/reference/architecture) | | [Roadmap](https://sandboxd.io/roadmap) | [Presets & `sandbox.yaml`](https://sandboxd.io/guides/images-stacks-presets) Β· [Auto-detection & App Store](https://sandboxd.io/guides/runtime-and-store) Β· [Undo a task](https://sandboxd.io/guides/tasks) Β· [Production / TLS](https://sandboxd.io/guides/production-tls) Β· [Hardening](https://sandboxd.io/guides/hardening) Β· [Uninstall](https://sandboxd.io/guides/uninstall) | [`AGENTS.md`](AGENTS.md) Β· [`ARCHITECTURE.md`](ARCHITECTURE.md) | Building on it from your own agent? **[`AGENTS.md`](AGENTS.md)** is a copy-pasteable runbook. ## Roadmap & community - πŸ—ΊοΈ **Roadmap** β€” [what's shipped & next](https://sandboxd.io/roadmap) Β· [public project board](https://github.com/users/tastyeffectco/projects/3) - πŸ’¬ **Discussions** β€” [ask & get self-hosting help](https://github.com/tastyeffectco/sandboxd/discussions) - 🀝 **Contribute** β€” good first PRs: add a framework recipe (one YAML file in [`control-plane/internal/recipes/data`](control-plane/internal/recipes/data)) or a runtime preset ([`CONTRIBUTING.md`](CONTRIBUTING.md)) - πŸ”’ **Security** β€” report privately per [`SECURITY.md`](SECURITY.md) > **Beta Β· 0.x.** Container isolation (not VMs), single-server, and API auth off > by default β€” all fine for your own users; tighten before untrusted > multi-tenancy. See [Hardening](https://sandboxd.io/guides/hardening). Expect the > occasional breaking change before 1.0 β€” pin a version and update as you go. ## ⭐ If sandboxd is useful, star it Stars are how other builders find sandboxd β€” it's the fastest way to support the project (and it keeps us going). Thank you πŸ™ [![Star History Chart](https://star-history.dera.page/svg?repos=tastyeffectco/sandboxd&type=Date)](https://star-history.dera.page/#tastyeffectco/sandboxd&type=Date) ## License [MIT](LICENSE). Use it, ship it, sell what you build on it. ## Sponsors sandboxd is free and MIT-licensed. **Sponsors keep it maintained and fund the [deploy roadmap](https://github.com/sponsors/tastyeffectco)** β€” thank you to everyone who chips in.

No sponsors yet β€” be the first.