Skip to content

Sandboxes

Every Session executes repository tools inside a sandbox selected by sandbox.backend. The default is a local rootless Podman container. A remote E2B Cloud backend is available for compatibility Session execution, with different network and trust implications. Native repository tools and required checks currently require local Podman; E2B does not implement their supervised command boundary.

sandbox:
backend: podman
network: bridge
allow_post_create_command: false
allow_untrusted_images: false
require_resource_limits: false

The two trust flags default to false, so a newly opened repository cannot default its own post-create command to approved or select an arbitrary image. The network defaults to bridge; set network: none for repositories you don’t trust. Enable either trust flag only for repositories you trust.

The Session setup review may select an exact curated image—Alpine 3.20, Debian slim, Ubuntu, Python slim, Node 20 slim, or Rust bookworm—without enabling arbitrary images. Other image references require allow_untrusted_images: true. Common Docker Hub aliases of a curated preset are canonicalized to the same trusted reference; no unknown image is silently substituted. Curated means accepted by this policy, not audited as safe or guaranteed to contain a project’s tools.

Before Ready, local Podman probes the POSIX and Git commands that Files, Source Control, Ways, and Agent tools require. If any are absent, it attempts distro-aware provisioning inside the container and probes again. A container that still lacks the required commands is removed and the Session records a failed environment instead of deferring the failure to a later tool call.

Repository metadata can propose a setup command. With allow_post_create_command: true, the exact devcontainer post-create command defaults to checked in an unreviewed Session; that policy is visible, and the Session checkbox can override it. Lockfile-detected npm ci always starts unchecked, and editing any command clears approval. Clearing the command is an explicit decision to continue without project setup. On local Podman, a root Node project’s node_modules is a container-local volume rather than the host’s native dependency tree. When the repository has no node_modules, Axocoatl makes the empty directory that volume is mounted on, as you, and marks it with a random value in the extended attribute user.axocoatl.mountpoint. Each time Axocoatl removes a Session’s container (at Close, when axocoatl dev stops), before it starts one, and once a start that mounts such a directory has its container, it removes that directory if it is still empty and still carries that value, and no container Podman lists has a mount on it. A container counts when podman ps lists a mount at the directory’s path; when one of its bind mounts, an overlay volume (-v …:O, or the upperdir or workdir you give one), a volume of the local driver made with o=bind or type=bind (podman volume create --opt type=none --opt o=bind --opt device=…, a Compose bind volume), or a bind mount it takes from another container with --volumes-from takes the directory itself; or when one takes a directory above it and the container mounts a volume, a bind or a tmpfs where the directory is (a development container’s node_modules volume). Axocoatl compares those paths as Podman reports them and, when that settles nothing, as they resolve on the host at that moment, waiting at most 5 seconds. When Axocoatl cannot tell, the directory stays for a later removal or start, and the daemon logs why once, naming the container and mount when one is the reason: Podman cannot say; resolving a path fails other than by finding nothing there, or does not finish in time (a stale network mount); a container took mounts with --volumes-from from one since removed, after which Podman no longer says what they are; or, on Linux, a container run with --userns=keep-id has an overlay volume, whose directory in Podman’s storage you cannot read, so every such directory stays until that container is removed. A node_modules you had, or made in its place, is left as it is (a copy of Axocoatl’s that kept its extended attributes, as cp -a makes, counts as Axocoatl’s), and so is what you install into it on the host. On a filesystem that takes no user extended attributes (NFS v3, tmpfs before Linux 6.6), Axocoatl tells the directory apart by its device, inode and birth time instead, which a directory you remove and make again at once can match. Removing a container of your own that kept the directory removes nothing: Axocoatl removes it at its next such start or removal after that, and if the daemon stops first, the empty directory stays.

Axocoatl removes the directory only when no container it cannot list could have a mount on it. When Docker is installed (a docker program that is not Podman’s own docker, a DOCKER_HOST that does not name your own rootless Podman’s socket, or a Docker socket), when Podman lists another connection than the one Axocoatl uses (every Podman machine on macOS has a rootful one), when rootful Podman is installed on Linux (/run/podman exists, which the podman packages of Fedora and Ubuntu make at every boot, whether or not rootful Podman’s API is enabled), or when Podman lists a container only with --external (Buildah’s, a podman build’s), the directory stays, empty and yours, and the daemon logs why once. On a Mac, and on Fedora and Ubuntu with their podman packages, it therefore stays. A container that may mount filesystems itself keeps the directory when it takes a directory above it, and the daemon logs which one once: one run --privileged or with CAP_SYS_ADMIN added, and one that neither SELinux (enforcing) nor AppArmor confines, as with --security-opt label=disable, on a Linux computer with neither (Arch Linux), or under rootless Podman on Ubuntu (rootless Podman applies no AppArmor profile), whose processes can mount in a user namespace of their own (measured with Podman 6.1.4 and label=disable, and with rootless Podman 4.9.3 on Ubuntu 24.04). When one container has a mount on the directory and another only could, the first is the one named. A container that has never started (Podman reports its overlay volumes only once it has), or that mounts a volume plugin’s volume (Podman does not say which host directory it uses), keeps every such directory until it starts or is removed; and the root filesystem of a container run with --rootfs counts as a directory it takes. Some mounts on the directory Axocoatl still does not see: those of rootful Podman on a Linux computer without /run/podman (a Podman not installed from such a package) and of container engines other than Docker and Podman (nerdctl, LXC); a bind through a link you have since removed or changed; a mount whose host path reaches the directory through another mount of it (a bind mount on the host of a directory above it, or on macOS a path spelled through /System/Volumes/Data); and the tmpfs Podman mounts for an image’s VOLUME under --image-volume=tmpfs. From the start of a Session on such a repository until the directory is gone, do not mount it, or anything on it, in those ways: removing the directory breaks those mounts (on Linux it detaches a volume or tmpfs mounted on it, and a bind mount or bind volume of the directory is left on a deleted one). The workspace is still mounted read-write: an approved command may change tracked or untracked project files, and nested package directories are not given an additional dependency-volume boundary.

Axocoatl automatically protects its control-plane data root, external daemon-lease root, control-socket directory and, when it loaded the per-user configuration file, that file’s directory from that bind. It canonicalizes the Workspace before mounting it. If a protected root is below the Workspace, Podman overlays that exact directory with a nested tmpfs; if the Workspace is equal to or below a protected root, environment startup fails with an overlap error. A symlink alias cannot bypass the comparison. There is no YAML switch to weaken this boundary.

Open workspace… applies the same roots earlier. It refuses a folder equal to or below one of them (workspace_protected), and it refuses the file system root, your home folder, the folders above it, and any folder that contains a protected root (workspace_too_broad) until you type the folder’s name to confirm. The Workspace keeps that confirmation, and only a confirmed Workspace on such a folder gets new Sessions or axocoatl run runs; one that Axocoatl 1.4 registered without asking is refused until you open it again with Open workspace… and confirm it.

Session startup never invokes a host package manager and never creates a Podman VM. If Podman is absent or its VM has not been initialized, Axocoatl fails with manual setup guidance. It may start an existing stopped VM.

network accepts:

  • bridge (the default) — outbound access and explicitly published Preview ports;
  • none — no container network, which also disables package downloads, remote tools called from the container, and port publication;
  • egress — no container network except loopback; an Agent’s commands reach only the hosts you list under sandbox.egress, through Axocoatl’s egress proxy. See Network egress.

Set network: none or network: egress for repositories you do not trust. Any other value, such as None, off or disabled, is a configuration error that axocoatl validate, axocoatl doctor and daemon start report; it never falls back to bridge.

Axocoatl starts every Podman container with --http-proxy=false, so the host’s HTTP_PROXY, HTTPS_PROXY, FTP_PROXY and NO_PROXY variables (in either case) are not copied into it, and a proxy’s user name and password stay on the host.

With network: none, choose an image that already contains Axocoatl’s required repository commands. Readiness provisioning cannot download missing commands without a container network, and a repository setup command that needs packages will likewise fail with retained evidence. Podman may still pull the selected image as a host operation; that is not Session container egress.

Local Session containers request 2 GiB memory, two CPUs, and 512 PIDs. Each cap needs its cgroup controller (memory, cpu, pids), and rootless Podman has only those your system delegates to your user (podman info lists them as cgroupControllers). A container gets each cap whose controller is there. With require_resource_limits: false, a cap that cannot apply is left out with a warning: the Session’s record and a run’s notes and receipt name each cap the container runs without, and axocoatl doctor warns and prints how to delegate the missing controllers. Set it to true to fail Session creation instead: then no Session, browser, service-forwarder, egress or managed SearXNG container starts without every cap, and the error names the caps that cannot apply.

On a Linux computer with SELinux enabled (Fedora, RHEL), Session and browser containers run with SELinux labelling off (--security-opt label=disable), the way Toolbox runs its containers. Without it SELinux refuses them your repository, which is labelled as your home directory’s files, and relabelling it would change the labels of your own files. Their other limits stay: the user namespace, dropped capabilities, seccomp, no-new-privileges and, in a hardened Session, the supervisor’s Landlock filter. axocoatl doctor says so.

sandbox:
backend: podman
network: egress
egress:
allow:
- npm
- pypi
- host: api.example.com

With network: egress, a Session container has no network interface other than loopback. Its only way out is Axocoatl’s egress proxy, which connects only to the hosts and ports you allow. The proxy checks a host name against your list before anything resolves it, and Axocoatl resolves allowed names on your computer, not in the container. The container cannot send DNS queries, UDP or IPv6 traffic off the machine. See sandbox.egress for the list format and presets.

How a Session runs under it:

  • The proxy runs in a second container, axo-egr-<session>, started before the Session container. Its image, localhost/axocoatl-egress:<id>-<arch>, is built locally from Axocoatl’s bundled execution supervisor and contains nothing else: no shell, no resolver and no environment. It needs no download.
  • The Session container runs with --network none. Its first process is Axocoatl’s bridge, which serves the proxy on 127.0.0.1:3128 and nothing else, so the image’s own ENTRYPOINT does not run under egress. By default the container’s commands run as two non-root users; see Workload users.
  • Each bash command of an Agent that may change files, each approved setup command, readiness provisioning and each terminal you open gets its own proxy credential, in HTTPS_PROXY, HTTP_PROXY, their lowercase forms, the npm proxy settings, NO_PROXY, NODE_USE_ENV_PROXY=1 and GIT_HTTP_PROXY_AUTHMETHOD=basic (Git then sends the credential with its first request instead of asking without it first). The credential ends when that command, setup step or terminal does. It reaches the process through an environment file that Podman reads, never through a command line.
  • Read-only helpers, required checks, Axocoatl’s own repository captures, background tasks and other commands get no credential, so they have no network.
  • Exposed ports still work in Preview. The Session container publishes nothing and holds no port socket. A service forwarder, axo-svc-<session>, from the same image as the proxy, joins only the Session container’s network namespace and serves each exposed port as a socket in a volume. A Preview container, axo-pvw-<session>, publishes those sockets on your computer’s loopback address. Neither connects anywhere else. A read-only helper’s shell may not open TCP connections, so it cannot reach the Session’s apps over TCP or through the port sockets. An app that listens on a Unix socket of its own, or on UDP, is still within its reach: an abstract Unix socket always, and a socket file whenever its permissions let the helper’s user connect.
  • The proxy’s socket, the identity socket, the service sockets and the trust files live in Podman volumes named after the Session (axo-egr-, axo-egi-, axo-svc-, axo-ca-), labelled with the runtime authority of the data root whose daemon made them. Close removes them; the Session’s runtime fills them again when it starts. When the daemon starts, it removes its own that a closed, deleted or unknown Session left behind (a daemon that stopped before Close, Sessions closed by Axocoatl 1.2), keeps an open Session’s and never touches another daemon’s (those its Sessions made before their data root was moved to another path are its own); axocoatl doctor reports how many.
  • A Ways attempt’s container starts no proxy of its own. It uses its Session’s proxy and decision point: its Agents’ bash commands and its setup commands get credentials of their own, and their connections are written to the Session’s network record with the attempt’s id. The Session must have been started first.
  • Readiness provisioning reaches only the Alpine, Debian and Ubuntu package mirrors. If an image needs another package manager, use an image that already has Axocoatl’s required commands.

The proxy refuses loopback, link-local and other special addresses, the Podman host gateways (192.168.127.1 and 192.168.127.254 in a Podman machine, 10.88.0.1 on Podman’s default network, and the gateway of sidecar_network) even inside a listed range, and private addresses unless you list a private range under private_destinations. A refusal is an HTTP answer the tool can show. For example, a host that is not on the list gets:

HTTP/1.1 403 Forbidden
Content-Type: application/json
X-Axocoatl-Egress: denied; reason=not_allowed
{"error":"egress_denied","reason":"not_allowed","host":"example.org","port":443,
"hint":"example.org:443 is not in this Session's egress allowlist. Ask the user to allow it for this Session in Session network or to add it under sandbox.egress.allow."}

A process without a credential gets 407 with reason no_credential, and a name that resolves to a refused address gets 403 with private_destination or forbidden_destination. When a tool call’s credential ends, or a person revokes the host, while its connection is being decided, the connection is refused; one already open is closed.

Every connection the proxy allows, and every refusal of a connection with a valid credential, is written to the Session’s network record before it opens, with the host, port and the tool call whose credential it presented. Bytes and duration are added when it closes. If the record cannot be written, the connection is refused. Refusals of connections without a valid credential, which any process in the container can cause, are recorded one by one up to 20 at once and then one every 5 seconds; the others are counted in a limit event once a minute, so they do not flood the record. The record keeps every event for the life of the Session, across runtime restarts, with no cap on how many: it is written in segments of up to 4 MiB or 16,384 events, and a full segment is sealed with a SHA-256 digest that the next one names. If the record cannot be written, new connections get 503 record_unavailable; setup commands, provisioning and terminals still run, without network.

If Axocoatl’s config file is inside the Session’s Workspace, its Agents can read it, and Session network says so. Keep secrets in environment variables. Read the record with GET /api/sessions/{id}/network, or open Session network from an Agent’s details in the Session graph. It shows the policy of each scope (the Session’s list, provisioning and, with browser: configured, the browser’s declared hosts), allowed and refused counts, the latest connections, each refused connection and each request on an egress route. With workload users, the default under egress, each row also names the program that opened the connection. A refused host can be allowed for that Session only with Allow for this Session, which is recorded and applies to new connections at once, in the scope of the refused connection. Each activation’s details also show its tool calls’ network activity.

An Agent can ask for a host it was refused. Give a writer Agent the request_network_access tool in its tools list; it names one exact host, its ports and a reason. The request waits in Session network under Hosts Agents asked for, with Approve and Reject, while the Agent’s tool call waits for your answer (two minutes by default, at most ten). Approve allows the host for that Session exactly like Allow for this Session, recorded with the request’s id; Reject allows nothing. If nobody answers in time, the call tells the Agent the request is still pending, and the request stays in the panel. Only you can approve: there is no automatic approval, and no Agent can approve a request. Read-only helpers cannot ask, and the tool is not offered outside network: egress. See Hosts Agents ask for.

To change the list for every Session while the daemon runs, edit sandbox.egress.allow or private_destinations (or browser.allow and browser.private_destinations, or the routes and credentials) in the configuration file and run axocoatl network reload, or send POST /api/network/reload. The daemon validates the whole file; an invalid file changes nothing. The command lists every entry each list gains and loses, a preset as each of its hosts. Each running Session records its new policy and uses it for new connections at once, open connections that no rule allows any more are closed, and the Session’s own allows stay. A Session whose new policy cannot be recorded keeps its old one; the command says which and exits with status 1, and running it again retries that Session. Other settings, such as network, sidecar_network and max_connections, still need a restart; the command lists the ones that changed. A configuration file inside a Session’s Workspace is never reloaded, because that Session’s Agents can edit it.

If the proxy’s control channel is lost, Axocoatl removes the proxy container and starts it again after 1, 5 and then 30 seconds. After five restarts in ten minutes it stays stopped, and the bridge answers every proxied request with 502 until the Session’s runtime is started again. The proxy fails closed: while it is down, nothing gets out.

What it cost when it was measured, for Axocoatl 1.2.0 on one Mac with rootless Podman 5.8 (an older measurement: for 1.5.0, Podman 6.1 is the version tested on macOS): npm ci of an Express fixture (about 65 packages, empty npm cache) took 1.5 s under egress against 0.7 s under bridge; it made 15 connections through the proxy. The wall time of an Agent’s tool call did not change measurably. Your numbers will differ with the registry, the network and the tool.

What egress does not cover:

  • The proxy cannot see inside TLS to a host listed under allow. Such a host that serves many sites, such as a CDN, can be used to reach those sites, and one that accepts uploads (github, npm, pypi, crates) is a way for data to leave. validate and doctor warn about both. For a host listed under routes, Axocoatl ends TLS on your computer and checks each request’s method, path and query, and the server name and Host must be the route’s host; routes do not read WebSocket messages, and read request bodies only on a route to a model API, to refuse requests that ask the provider to reach other hosts or run tools itself (Requests to model APIs).
  • Traffic from Axocoatl itself is outside the proxy: model providers, MCP servers, web_search and web_fetch, webhooks and Podman image pulls. The web tools run on your computer, so sandbox.egress does not limit them; their calls are kept in the Session’s network record as web_request and web events.
  • Writers in one Session share its container and one user, so they can change each other’s files. A read-only helper cannot connect to the proxy over TCP, and with workload users, the default under egress, it runs as a user of its own that cannot read a writer’s credential, and each tool call’s processes run apart from other tool calls’ (see below). With sandbox.workload.mode: image a helper or another writer can read a running writer’s credential from that process’s environment under /proc.
  • Programs that ignore the proxy variables cannot connect at all, for example some Go and gRPC clients, and Node’s fetch before Node supports NODE_USE_ENV_PROXY.
  • A Session created before the native Session format cannot use egress; start a new Session.
  • egress needs local Podman. E2B is refused.
sandbox:
workload:
mode: auto # auto (the default), hardened or image
writer_user: "1000:1000"
helper_user: "1001:1001"

sandbox.workload decides which users run commands in a local Podman Session container:

  • auto is hardened under network: egress and image under bridge and none.
  • image runs every command as the image’s own user, often root, as Sessions did before.
  • hardened keeps the container’s first process as root and runs everything else as one of two non-root users:
    • Agents’ commands, approved setup commands, terminals you open, required checks and Axocoatl’s own commands in the Workspace run as writer_user, with the home directory /home/axocoatl.
    • Every process of a read-only helper (writes: []), its file tools included, runs as helper_user, through its read-only view of the Workspace (below). Each of its shell commands gets a home and temporary directory of its own (HOME and TMPDIR), removed when the command ends; its file tools write nothing and get none.
    • Readiness provisioning runs as root.

In a hardened container:

  • The writer has no Linux capability. A helper’s commands have one, CAP_DAC_READ_SEARCH, and nothing else. Neither can gain another: the container runs with no-new-privileges, so sudo and setuid programs do not help.
  • A helper reads the Workspace whatever its file modes, through a view its every command gets from Axocoatl’s execution supervisor. The supervisor starts as root and launches the command as helper_user with CAP_DAC_READ_SEARCH as its only capability, so a repository only its owner may enter (one made by mktemp -d or under umask 077, mode 0700, with 0600 files) is as readable to it as to the writer. The command runs in a Landlock domain that lets it open, list and execute files beneath the Workspace (and its shell, beneath its own temporary directory), and elsewhere only what any user may read when the command starts: the system directories (/usr, /bin, /sbin, /lib, /opt, /etc, /proc/sys, /sys/devices/system/cpu), checked entry by entry so that a private file such as /etc/shadow stays closed, a few devices and the kernel’s global /proc files. It reads nothing in the writer’s home, /home, /root, /run, /tmp, /var/tmp or /dev/shm (but its own temporary directory), or in any process’s /proc entries, its own included, so ps and pgrep do not work in a helper. Its seccomp filter also refuses Unix sockets (only connected socket pairs remain, stream and sequenced-packet, which child processes’ pipes and Rust’s process spawning use), inotify and fanotify watches and changes of extended attributes, which the capability would otherwise reach through directories it could not enter before, and System V IPC (shared memory, semaphores and message queues) and POSIX message queues, which no file permission or Landlock rule covers and which every user of the container shares, so a helper can neither use a writer’s nor leave one behind.
  • A helper writes almost nowhere. The capability grants no write, and the same Landlock domain refuses writing, creating, truncating, renaming, linking and removing files everywhere but where noted here. Its file tools (read_file, grep, glob, list_dir) write nothing: they may only open /dev/null to discard output, and their seccomp filter also refuses changing a file’s mode, owner or times, and opening any socket, so they reach no network address. Its shell writes only beneath its own temporary directory and to /dev/null, /dev/zero, /dev/tty and /dev/urandom; not to /tmp, /var/tmp, /dev/shm or /dev themselves, the Workspace, or a directory any user may change inside another user’s private one, which the capability would otherwise reach. Git, grep, Python, Perl, Node and npm work there, and so does cargo check with CARGO_TARGET_DIR and CARGO_HOME under $TMPDIR. A program that writes to a fixed path in /tmp or /dev/shm instead of $TMPDIR fails; Python’s multiprocessing locks (POSIX semaphores in /dev/shm), for example, do not work in a helper, and neither does a program that needs System V IPC or POSIX message queues, or one that opens a pseudo-terminal (/dev/ptmx), such as script or expect. It cannot run a file only its owner may execute; run such a script with its interpreter (sh script.sh).
  • A helper cannot read the environment of a writer’s processes under /proc, so it cannot borrow a writer’s proxy credential, and it cannot signal a writer’s processes.
  • The commands Axocoatl runs through its execution supervisor also get a seccomp filter on top of Podman’s own: every process of an Agent’s tool call in a native Session, a read-only helper’s included, and every required check. The filter refuses ptrace, process_vm_readv and process_vm_writev, pidfd_getfd, userfaultfd, perf_event_open, bpf, kernel keyrings, loading kernel modules, mount and the other mount calls, setns, open_by_handle_at, new user namespaces, and packet, vsock, Bluetooth and key sockets with EPERM; a helper’s also refuses Unix sockets, inotify and fanotify watches, extended attribute changes, System V IPC and POSIX message queues, and its file tools’ also changes of a file’s mode, owner or times and every socket. clone3 and the io_uring calls get ENOSYS, so the C library and libuv fall back to older calls. Each such command also runs in a Landlock domain of its own: it cannot trace a process it did not start, or read that process’s memory or environment, another writer’s command included. Debuggers, strace and LeakSanitizer do not work in these commands. Terminals you open, approved setup commands, background tasks you start and Ways checks do not go through the supervisor and run without the filter.
  • Under network: egress the only proxy socket in the container is the proxy’s identity socket, in a directory only root can enter. The users reach the proxy only through 127.0.0.1:3128, with a credential; a helper’s shell cannot open TCP connections at all, its file tools cannot open any socket, and no helper command can open a Unix socket. The container’s first process, which serves that address, starts each connection with the identity of the program that opened it, which it reads from /proc: the program’s path, the SHA-256 of its file, its user and group, and the paths of its parent programs. The proxy accepts no connection on that socket without the line, and refuses a second one, so a program cannot claim to be another. Each connection’s record keeps the identity as peer, Session network shows it in a Program column, and an activation’s network summary names the programs behind each destination. The first process keeps CAP_SYS_PTRACE to read other users’ processes in /proc; the writer still has no capabilities. Root also keeps CAP_DAC_READ_SEARCH, which Podman drops by default, to hand it to a helper’s command; root already reads everything through CAP_DAC_OVERRIDE.
  • The Workspace is mapped so that the writer owns it (--userns=keep-id), and files the writer creates belong to you on your computer. A Node project’s root node_modules volume is handed to the writer when the Session starts. A loadout run’s toolchain cache volume stays root’s and read-only to the workload users, except for its setup; root’s own commands in the container never run a program from a directory the workload users can write.
  • Axocoatl adds passwd and group entries named axocoatl and axocoatl-helper for the two ids when the image has none, so tools that look up their own user work. An image user with the same id keeps its name.

axocoatl doctor shows the result, for example Sandbox workload: hardened (Agents run as 1000:1000, helpers as 1001:1001). The ids must be numeric, from 1 to 65533, and the helper’s uid and gid must differ from both of the writer’s.

What it does not cover:

  • Writers share one user, so concurrent writers in one Session can change each other’s files. A terminal you open, a setup command or a background task runs as the writer outside the supervisor, so it can read the environment, and with it the credential, of a writer’s running command.
  • A program’s identity is what the container’s first process found when the connection opened. A program can be made to act for another, for example with LD_PRELOAD, through an interpreter, or by passing an open connection to another process, so the identity says which program opened a connection, not what it sent. A program run from a mount namespace of its own is named only by its user and its file’s SHA-256. The first process looks for the program for at most 100 ms and in at most 4096 processes, lowest ids first. When it cannot find or read the program in time, the connection is still allowed and recorded with only its user and the reason (timeout, not_found or no_access), and Session network shows it as an unknown program. The record names programs; allow entries and routes cannot yet be limited to programs. The browser’s connections come from its own container and name no program.
  • The seccomp filter needs Landlock (Linux 5.13 or later, which Podman machine has), a helper’s view needs Landlock ABI 3 (Linux 6.2 or later) to refuse every write, and a helper’s shell needs Linux 6.7 for its network restriction; without them, the commands that would get them do not run. A hardened Session container started by an earlier build lacks root’s CAP_DAC_READ_SEARCH, so its helpers’ commands do not run until the Session restarts. Readiness provisioning runs as root without the filter, and under egress root’s commands keep CAP_SYS_PTRACE like the first process.
  • Approved setup commands run as the writer, so they cannot install system packages with apk or apt-get. Choose an image that already has them, or set mode: image.
  • A helper’s view outside the Workspace is judged when each of its commands starts. A file it could read then stays readable to that command if its owner makes it private while the command runs, and in a system directory anyone may change (the Rust image’s /usr/local/cargo, for instance) or one the writer owns, the command can list what is added while it runs but not open it. Landlock does not cover passing through a directory, so a helper can still learn the size, times, owner, link target and extended attributes (stat, readlink, getxattr) of a path it names in a directory it could not enter before, such as the writer’s home, though it cannot list, open or watch anything there.
  • Landlock does not cover a file’s times. Like any user, a helper’s shell can set to the current time the times of a file whose mode lets any user write it (0666), in the Workspace or in a directory it passes through; its file tools cannot.
  • Only files whose owner the container maps are readable whatever their modes: those of a repository your own user owns. Of one another user owns, a helper reads what any user may. A loadout run with read-only Agents launches a probe through the helper’s view in its Session container and ends with exit code 5 before its first turn when that view cannot enter and list the repository, or the container or kernel cannot give it, naming why. On macOS the Podman machine’s shared folder reports every Workspace file as owned by whoever asks: a helper’s file tools still change nothing there, and its shell cannot write, create, rename or delete Workspace files, but it can change their permission bits and timestamps.
  • It needs rootless Podman. Under rootful Podman, auto falls back to image and doctor warns, and hardened refuses to start a Session. E2B refuses hardened.
  • The first start of an image takes longer while Podman prepares it for the user mapping: on one Mac, 0.6 s for Node 20 slim and 1.9 s for Rust bookworm, then about 0.1 s.
  • Containers that only recover a stopped Ways attempt keep the image’s user; they run only Axocoatl’s own Git commands.
sandbox:
backend: e2b
e2b:
api_url: "https://api.e2b.dev"
api_key: "${E2B_API_KEY}"
template: base
domain: e2b.app
git_token: "${GITHUB_TOKEN}"

Axocoatl 1.0 targets E2B Cloud with this backend. Third-party E2B API implementations are not part of the 1.0 support scope.

git_token supports GitHub-compatible token authentication when the remote VM must clone or push a private repository. The runtime injects it as a sandbox secret for an origin-scoped Git credential helper rather than writing it into repository Git configuration. The secret is an environment variable of the VM, so every command in the VM can read it, including repository scripts, setup commands and Agent commands. Use a token limited to the repositories and permissions the Session needs. Other Git hosts may require a different username or credential flow and are not implied by this field.

The selected template is daemon-global. E2B does not accept a per-Session OCI image; the Session review shows the configured template and blocks an explicit or devcontainer image until it is cleared or the daemon switches to Podman.

Before Ready, Axocoatl verifies that the template contains the repository commands required by Files, Source Control, and Agent tools; a deficient template fails with retained environment evidence instead of degrading later.

Unlike local Podman, Axocoatl does not package-provision the remote template; build those commands into the daemon-selected template itself.

E2B does not implement Axocoatl’s local Preview transport or exposed-port mapping. Leave Session ports empty and use the remote provider’s deliberate service-exposure mechanism when needed. sandbox.network: none is likewise a Podman enforcement option; Axocoatl rejects that combination with E2B rather than claiming to disable remote egress.

With the E2B Cloud backend, Axocoatl persists the exact runtime identity and remote working root. Closing a Ready E2B Session pauses that VM; reopening or recovering after a daemon restart connects to the same runtime, so scratch and uncommitted work are not replaced by a fresh clone. Failed or interrupted preparation is cleaned up instead. Deleting the Session or choosing Change/Rebuild runtime is the explicit destructive boundary from Ready. A missing runtime fails visibly instead of silently creating a replacement.

Use local Podman for repository tools and required checks. E2B does not implement the native supervised command boundary.

NeedRecommended configuration
Default local developmentPodman, bridge network, trust flags off
Review untrusted code without Session egressPodman, network: none, an image already containing required commands, trust flags off, limits required if the host supports them; account separately for host-side image pulls
Install packages from known registries onlyPodman, network: egress with the registries’ presets, trust flags off
Run a local web app in PreviewPodman bridge or egress plus an exposed Session port
Remote compatibility executionE2B Cloud with scoped credentials and an approved template; no Axocoatl Preview ports
Several isolated WaysLocal Podman

Sandboxing reduces risk; it does not make prompts, dependencies, images, MCP servers, webhooks, provider endpoints, or copied secrets trustworthy. See Security for the complete boundary.

Next: Configure Skills and MCP →