Skip to content
L1lithPublic

About

User friendly & versatile sandboxing app for using AI agents via Deepcode

Resources

Security policy

Stars

1 star

Watchers

0 watching

Forks

Repository files navigation

Deepsand icon

Deepsand

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.

Latest release Platforms Docs License

Download · Documentation · Security model · Architecture

Deepsand's main window

Why Deepsand

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 exact docker run arguments.

What you can do

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.

See what the assistant made

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.

An image carousel shown by the assistant

A preview is data for the model, never a permission grant. Answering one cannot add a mount, allow a host or reveal a secret.

How it works

  1. Deepsand builds one docker run command from the project policy. You can read it in Activity.
  2. The DeepCode CLI starts inside the container under a real PTY.
  3. Permission requests go through a write-only spool. The host validates the request, pauses the container and asks you.
  4. 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.

Install

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.

Build from source

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 platform

A 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.

Headless use

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-website

deepsandctl plan --offline prints the complete container plan without needing Docker running, and is the easiest way to audit a project's boundary.

Security model

The promise is narrow and testable: the sandbox can reach the project, the directories you grant and the destinations you allow, and nothing else.

  • /workspace and 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.

Documentation

The user guide is at deepsand.webslc.com, in English and 16 other languages.

Releases and updates

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.

Credits

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.

ESMV licensed.

About

User friendly & versatile sandboxing app for using AI agents via Deepcode

Resources

Security policy

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages