Skip to main content

How does AXE relate to sandboxd, envd and Agent Substrate’s guest?

They are the same kind of component: the daemon inside a sandbox that runs commands, streams their output and moves files for the agent or orchestrator outside. Each sandbox platform writes its own. Kubernetes Agent Sandbox has sandboxd, E2B has envd, Agent Substrate has ate-env-guest, and Kata has its agent. AXE implements the core they share once, as an engine library and a daemon, axed, that any platform can adopt.
  • sandboxd. axed is a drop-in replacement. It serves sandboxd’s gRPC and REST APIs and accepts its command line unchanged, and the official Go, Python and TypeScript SDKs work unmodified. Compatibility with sandboxd lists every intended difference.
  • Agent Substrate’s guest. With --agent-substrate, axed serves the ateenv.v1alpha guest API in place of ate-env-guest. Agent Substrate’s own guest tests pass against it, except one that configures a log size cap axed does not have. See Agent Substrate.
  • envd. AXE does not speak envd’s protocol. A platform that wants AXE in its place would need an adapter for it.
Beyond those protocols, axed serves its own API, axe.v1, which adds what the others lack: processes that outlive their clients, replay from any byte offset, idempotent starts, and suspend and restore that do not break timeouts. With --mcp-listen, axed also serves MCP tools that an agent calls directly. See Agents over MCP.

Is AXE an isolation boundary?

No. The sandbox AXE runs in is the boundary: a container, gVisor or Firecracker. Anything that can reach axed’s API can run any command as axed’s user, by design, so your platform must make sure only it can reach axed. Inside the sandbox, AXE treats the code it runs as hostile and protects itself and the workspace:
  • File operations stay inside --root-dir. Paths resolve one directory at a time against held handles, so swapping in a symlink cannot redirect a request.
  • Retained output, buffered output, processes, connections and watches are all capped, so sandboxed code cannot exhaust the daemon’s memory or descriptors.
  • Processes inherit only standard input, output and error, not axed’s sockets or other descriptors.
  • Input that sandboxed code controls, such as deep trees, odd file times and files swapped for FIFOs, cannot crash the daemon.
Confinement applies to requests axed serves. It does not stop the processes you start from reading or writing outside the root; that is the sandbox’s job. See Security.

Does AXE run on macOS?

It builds on macOS through scripts/dev, which runs cargo in a Linux container. It runs on Linux only. The axe crate refuses to compile for any other target, because it depends on Linux features such as waitid, O_PATH, inotify and cgroup v2. See Installation.

Does AXE need Kubernetes?

No. axed runs in any Linux environment: a plain container, a microVM, a gVisor sandbox or a host. The Agent Sandbox adapter is on by default, and --agent-sandbox=false turns it off. You can also skip the daemon and link the engine into your own program.

Do processes survive an axed restart?

No. Processes survive client disconnects and sandbox snapshots, but not axed itself. In the common deployment axed is the sandbox’s PID 1, and when PID 1 exits the kernel kills the whole PID namespace. Keeping processes across a restart would cost memory for a case that cannot occur there.

Does axed terminate TLS?

No. Put pod isolation and a NetworkPolicy, a service mesh with mutual TLS, vsock or a Unix socket in front of it, and configure a bearer token for TCP listeners. See Security.

What does AXE leave out on purpose?

These belong to the platform, a higher layer, or an ordinary process:
  • Code interpreters and Jupyter contexts. A kernel is a process.
  • Persistent shell sessions with command injection. Detached processes with PTYs replace them without shell-parsing hazards.
  • git, LSP, computer use, content search and replace. These are processes too.
  • Port scanning, proxies, tunnels and localhost rebinding. Ingress is the platform’s job.
  • Guest plumbing: network setup, hotplug, mounts, CA bundles, filesystem freeze, memory compaction.
  • Polling watcher APIs. A stream with overflow and rescan is cheaper.
  • Unbounded on-disk output spools.
  • Survival across an axed restart, and live binary upgrade.
  • TLS.
AXE also does not create, isolate, schedule, snapshot or route traffic to sandboxes. Design decisions explains each choice.