- Run the whole
atomicprocess inside a container or managed sandbox. - Run
atomicon your host and route built-in file and shell tools into a micro-VM.
Choose an isolation pattern
Extensions run wherever the
atomic process runs. When you run host atomic with a tool-routing extension, other loaded extensions still run on your host unless they also route their work into the VM. To route built-in file tools and ! commands to a remote machine over SSH instead of a local micro-VM, see examples/extensions/ssh.ts in Extension examples.
Gondolin micro-VM
Gondolin runs a local Linux micro-VM. Use the Gondolin example extension when you wantatomic on your host with selected file tools and shell commands routed into the VM. This does not isolate the entire session.
Requirements: npm, Node.js 23.6.0 or newer (required by @earendil-works/gondolin), and QEMU installed through your system package manager.
1
Copy the extension outside your global extensions directory
Copy
examples/extensions/gondolin to a standalone path such as ~/.local/share/atomic-gondolin for opt-in use with -e, then install its dependencies:2
Launch Atomic from your project directory
Start Atomic with
-e from the project directory you want mounted at /workspace inside the VM:What the Gondolin extension routes and omits
- Workspace mount: Mounts your current host working directory at
/workspaceinside the VM. Edits under/workspacewrite through to your host files. - Routed tools and status: Overrides
read,write,edit,bash,find, andls, plus interactive!commands. Registers the/gondolincommand (shows VM ID, host workspace, guest workspace, and guest shell) and a footer status item (Gondolin: <id> (/workspace)). - Environment isolation: Does not forward host shell environment variables into VM commands, keeping host API keys out of the VM.
- Guest shell and tool caveats: Probes
bashfirst inside the guest and falls back to/bin/sh. Routedfindskips.gitandnode_modulesonly and does not apply.gitignore. Routedreaddetects images by filename extension (.png,.jpg,.jpeg,.gif,.webp), and routedwritewrites UTF-8 text. - Unrouted tools:
searchstays on the host and is not routed into the VM. Run searches inside the guest throughbashor!.
ls is a built-in tool that is off by default unless listed. Adding --no-mcp disables host MCP server connections; without --no-mcp, a --tools allowlist that omits mcp__* still connects host MCP servers and keeps their tools registered (and callable if you also enable codemode or tool_search). Restricting --tools disables intercom, subagent, and other extension tools, though other loaded host extensions can still run code on the host — use whole-process isolation when host filesystem access must be prevented completely.
Docker
Run the wholeatomic process inside Docker for a clean local container boundary.
Create Dockerfile.atomic with the native installer:
curl (or wget), tar/gzip, sha256sum (or shasum/openssl), and ldd on non-Alpine Linux; debian:bookworm-slim already includes them.
For Alpine Linux (musl), install.sh detects /etc/alpine-release and downloads the musl release archive (atomic-linux-x64-musl.tar.gz or atomic-linux-arm64-musl.tar.gz). Those archives bundle libgcc and libstdc++, so stock Alpine needs no extra C++ runtime libraries; install bash, ca-certificates, curl, git, and ripgrep for the installer and built-in tools (Alpine and musl Linux archives).
Build and run the container:
-v "$PWD:/workspace" mounts your current directory at /workspace, so edits under /workspace write directly to your host files.
Advanced installation options
You can also install Atomic as a global npm package in a Node.js image. This is not recommended. Use a base image with Node.js 24.20.0 or newer:Persisting settings and sessions in Docker
Mount a named volume on/root/.atomic (-v atomic-home:/root/.atomic) to persist both container-local settings (/root/.atomic/agent) and the default SQLite session database (/root/.atomic/workflows/journal.sqlite).
Container runtime, network, and CI options
NVIDIA OpenShell
Use NVIDIA OpenShell for a policy-controlled sandbox with filesystem, process, network, credential, and inference controls. OpenShell runs sandboxes through a local gateway backed by Docker, Podman, or a VM runtime, or through a remote Kubernetes gateway.1
Register and select an OpenShell gateway
2
Launch Atomic inside a sandbox
3
Transfer files for remote gateways (optional)
With a remote gateway, host files are not bind-mounted, so sandbox edits do not touch your local checkout. Clone inside the sandbox or copy files explicitly:
atomic process runs inside the sandbox, so built-in tools, ! commands, and extension tools execute inside the OpenShell boundary.
Routing inference through OpenShell
OpenShell providers can keep raw model API keys outside the sandbox. When inference routing is enabled, tools inside the sandbox callhttps://inference.local and the OpenShell gateway injects provider credentials upstream.
Point Atomic at https://inference.local by adding a provider entry to ~/.atomic/agent/models.json inside the sandbox. For example, to route an OpenAI-compatible gateway endpoint:
"api": "anthropic-messages" when your OpenShell gateway exposes an Anthropic-compatible endpoint, or override baseUrl on a built-in provider entry. See Configure custom models and Build custom providers for full models.json and extension options.