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.
Prompt β a real, running app on your server, at its own URL.
See it in action π
1 Β· Build from a prompt β an agent builds it in an isolated sandbox, live at a preview URL. |
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. |
|
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:
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. [](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 `No sponsors yet β be the first.