Skip to main content
Atomic runs with all of your local user permissions by default. To restrict which directories and processes it can reach, choose one of two isolation models:
  1. Run the whole atomic process inside a container or managed sandbox.
  2. Run atomic on your host and route built-in file and shell tools into a micro-VM.
Containerization is the outer boundary, not the only one. Read Manage security and project trust alongside this page to see how project trust gates project extensions, skills, and settings before work starts.

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 want atomic 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:
Do not copy the extension into ~/.atomic/agent/extensions/gondolin unless you want every atomic session on your machine to boot a Gondolin VM automatically. Because that directory contains both index.ts and package.json, Atomic auto-loads it globally even without -e.

What the Gondolin extension routes and omits

  • Workspace mount: Mounts your current host working directory at /workspace inside the VM. Edits under /workspace write through to your host files.
  • Routed tools and status: Overrides read, write, edit, bash, find, and ls, plus interactive ! commands. Registers the /gondolin command (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 bash first inside the guest and falls back to /bin/sh. Routed find skips .git and node_modules only and does not apply .gitignore. Routed read detects images by filename extension (.png, .jpg, .jpeg, .gif, .webp), and routed write writes UTF-8 text.
  • Unrouted tools: search stays on the host and is not routed into the VM. Run searches inside the guest through bash or !.
To expose only the routed built-in tools and prevent host MCP connections in a session:
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 whole atomic process inside Docker for a clean local container boundary. Create Dockerfile.atomic with the native installer:
The archive installer unpacks a self-contained bundle with no JavaScript runtime required. If you adapt this Dockerfile to a minimal base image, keep standard POSIX core utilities plus 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).
Mounting only /root/.atomic/agent loses session history when the container exits — even if you set ATOMIC_CODING_AGENT_DIR=/root/.atomic/agent. Because that path matches the default agent directory, Atomic still writes journal.sqlite outside the volume at /root/.atomic/workflows/journal.sqlite.To persist sessions when mounting only /root/.atomic/agent, either mount /root/.atomic instead, pass --session-store /root/.atomic/agent/journal.sqlite (or set ATOMIC_STORAGE / ATOMIC_SESSIONS_STORAGE; see Selecting storage per process), or set ATOMIC_CODING_AGENT_DIR to a non-default subdirectory such as /root/.atomic/agent/state.
Do not bind-mount your host ~/.atomic or ~/.atomic/agent into a running container. Beyond exposing host credentials, settings, and sessions, OS file locks on settings.json, auth.json, trust.json, and session claims do not coordinate safely across a host path and a container mount of the same directory (Locks in the agent directory). Give each container its own agent directory and share sessions through a remote database instead (Sharing storage across hosts, SDK storage).

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:
The whole 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 call https://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:
Use "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.