A coding assistant with its own room.
Deepsand runs DeepCode inside a Docker container that sees one project and only what you explicitly share with it. When the assistant needs more, it has to ask.
A chat window can suggest a patch. It cannot run the tests, look at the rendered page, or tell you which file it changed.
Deepsand gives the assistant a real project, real tools and a real terminal without handing it the rest of your computer. The project is mounted at /workspace. Your grants are mounted separately and read-only unless you say otherwise. Everything else is absent, not merely hidden.
- Contained by default. A read-only root filesystem, a hardened seccomp profile, no container-runtime socket and no host home directory.
- Ask first. A folder, a host or a tool outside the sandbox reaches you as a prompt. Approving a folder recreates the container with the mount and resumes the conversation.
- Useful, not locked down. A real PTY, npm and Rust tools, screenshots through Xvfb and Puppeteer, Debian packages on request, and a headless driver for everything.
- Auditable. The whole security boundary lives in
deepsand-core, and the Activity tab shows the exactdocker runarguments.
| Work in a real project | Choose a folder, press Run, and talk to DeepCode in the built-in terminal. It can edit, run commands and test the result. |
| Share only what is needed | Grant another directory, a hostname or one address and port. A hostname goes through the filtering proxy; an address can be reached directly for a database or other non-HTTP client. |
| Give it tools | Pick from the capability catalogue or ask for a Debian package. The selection is baked into the project image and rebuilt when it changes. |
| Keep credentials out of the repository | The app-wide API key lives in the operating system keystore, and project secrets are encrypted at rest. Keys never enter the project folder. |
| See the result | With previews enabled, the assistant can show a static page, a screenshot or an image carousel in the app window, with optional buttons and text fields. |
| Leave cleanly | Close to the tray when you want a background session, or use Quit to Desktop to remove the tray icon, close the window and stop every sandbox. |
Agent previews are off by default. Turn them on per project in Tools → Agent interface, or choose defaults for new projects in Settings → New project defaults.
- HTML previews are sanitised on the host and rendered in a scriptless, networkless iframe. The agent cannot run code in Deepsand's window.
- Images can be a single PNG, JPEG, GIF or WebP from the project or a grant, or a carousel of up to 12 with captions.
- Buttons and text fields are rendered natively below the preview. Their labels are the agent's own wording, and they are entirely optional.
- Fullscreen is remembered separately for HTML and images. The red × closes a preview, and the … menu can block the capability for the project.
A preview is data for the model, never a permission grant. Answering one cannot add a mount, allow a host or reveal a secret.
- Deepsand builds one
docker runcommand from the project policy. You can read it in Activity. - The DeepCode CLI starts inside the container under a real PTY.
- Permission requests go through a write-only spool. The host validates the request, pauses the container and asks you.
- Grants, tools, network rules, secrets and model credentials stay with the project.
The sandbox can ask. It can never answer its own request: the answer directory is mounted read-only.
Download the installer for Windows, macOS or Linux from the downloads page. The page detects your operating system and lists the assets from the latest published release.
You need Docker Desktop, or Docker Engine on Linux. Docker must be running before a sandbox can start.
Requires Node.js 22 or newer and Rust 1.90 or newer.
git clone https://github.com/L1lith/Deepsand
cd Deepsand
npm install
npm run runtime:build # build the sandbox image once, ~3 minutes
npm run app:dev # development window with hot reload
npm run app:build # signed installer for this platformA release build signs its updater artifacts. Set TAURI_SIGNING_PRIVATE_KEY to the key file or its contents before running npm run app:build; the build stops rather than producing an update nobody can verify.
The desktop app is a shell over deepsand-core. The same policy is available without a display:
deepsandctl doctor
deepsandctl project add my-website /path/to/my-website
deepsandctl plan my-website --offline
deepsandctl run my-website
deepsandctl watch my-website
deepsandctl grants my-website add /path/to/brand --purpose "site palette"
deepsandctl network my-website restricted
deepsandctl requests my-websitedeepsandctl plan --offline prints the complete container plan without needing Docker running, and is the easiest way to audit a project's boundary.
The promise is narrow and testable: the sandbox can reach the project, the directories you grant and the destinations you allow, and nothing else.
/workspaceand grants are the only host mounts.- Container-runtime sockets are rejected by name.
- The root filesystem is read-only; the reply spool and state are mounted
:ro. - Privileges are dropped before DeepCode runs, with
no-new-privileges. - A hardened seccomp profile is applied by default, and the applied profile is checked against the image's recorded digest.
- A refused permission is enforced by the host, not just by the model's compliance.
- An allowlisted hostname goes through the proxy, which refuses private-address results; an allowlisted address is reached directly for non-HTTP clients.
Read docs/SECURITY.md for the full model and the tests that assert it. Read docs/ARCHITECTURE.md for the design.
The user guide is at deepsand.webslc.com, in English and 16 other languages.
- What is Deepsand?
- Getting started
- Using the DeepCode terminal
- Desktop features — previews, carousels, quitting, startup, updates, Docker shares and remote access
- How the sandbox works
- Under the hood
- FAQ
Pushing to the release branch, or running the release workflow from the Actions tab, builds installers for Windows, Linux (x86_64 and ARM64) and macOS (Apple Silicon and Intel), signs them, and opens a draft GitHub release. The installer downloads and the update manifest only go live when that draft is published.
The app checks for updates itself; Settings → Updates has the current version, a check button and the install control. Installing an update restarts Deepsand and stops running sandboxes.
Release notes live in docs/release-notes. The three version fields — package.json, src-tauri/tauri.conf.json and the workspace Cargo.toml — must move together. See AGENTS.md for the release checklist.
Deepsand is an independent wrapper and is not affiliated with the DeepCode project. It drives the published @vegamo/deepcode-cli package inside a container; DeepCode source is never vendored into this repository.

