Skip to main content
Every place where axed’s Agent Sandbox adapter intentionally behaves differently from sandboxd. Anything not listed here is a bug. The adapter (crates/axed/src/adapters/agent_sandbox, on by default, off with --agent-sandbox=false) implements the Kubernetes Agent Sandbox runtime API as defined by packages/sandboxd in kubernetes-sigs/agent-sandbox. Agent Sandbox API documents it in full. The protos in proto/process and proto/watcher are copied unchanged from upstream.

Processes

Filesystem REST API

Watcher

Command line

axed takes sandboxd’s command line as Go parses it. That covers every sandboxd flag, with the same defaults (though --stream-chunk-size’s default of 0 selects a larger size; see Processes), single-dash flags (-root-dir), Go durations (1.5s, 0), hostnames and the empty string for --listen-host, --version, and controller-runtime’s --zap-devel, --zap-encoder and --zap-log-level. axed accepts --zap-stacktrace-level and --zap-time-encoding and ignores them. --http-idle-timeout=0 disables the idle limit, as in sandboxd. A negative duration such as -1s is refused, where Go accepts it. AXE_LOG (a tracing filter) overrides the zap level. axed command line lists every flag.

Additions

  • axed also serves AXE’s native API, axe.v1, on every gRPC listener. It is a separate API with its own string process ids. The adapter numbers only the processes started through its own Start, counting up from 1, and WriteStdin, SendSignal and ResizeTTY find only those. Processes started through axe.v1 or Agent Substrate’s API have no integer id.
  • With --agent-substrate, axed also serves Agent Substrate’s guest API. See Agent Substrate API.
  • With --mcp-listen, axed also serves the Model Context Protocol at /mcp on separate endpoints. See Agents over MCP.
  • New flags: --listen, --mcp-listen, --agent-sandbox, --agent-substrate, --on-sigterm, --cgroups, --retain, --max-retain, --max-finished, --output-budget, --capture-budget, --max-processes, --grpc-idle-timeout, --log-format, --child-oom-score-adj, --default-user, and the policies --default-timeout, --default-memory, --default-max-tasks, --max-timeout and --max-memory. The policies and --default-user are off by default, so the adapter behaves as sandboxd does unless you set them. --rest-port 0 lets the kernel pick a port.
  • --auth-token-file is reloaded when the file changes and on SIGHUP, with the previous token accepted for 60 seconds. sandboxd reads it once at startup.
  • The REST port also serves HTTP/2 without TLS (h2c). sandboxd’s serves HTTP/1.1 only.
  • GET /readyz answers like GET /v1/health, and grpc.health.v1 is served on every gRPC listener. Neither needs the token.
Deploy on Agent Sandbox shows how to swap the image.