Skip to content

Isolation Levels

APS offers three isolation levels, balancing speed against security.

Runs the command as a child process with isolated environment variables. No filesystem or network sandboxing.

Best for: Development, trusted workloads, maximum speed.

Terminal window
aps profile new myagent --isolation-level process

Uses the OS-native sandbox mechanism:

  • macOS: sandbox-exec with a restrictive Seatbelt profile
  • Linux: bwrap (bubblewrap) with namespaces

Restricts filesystem writes outside the profile home and limits network to explicitly allowed endpoints.

Best for: Semi-trusted agents, local development with guardrails.

Terminal window
aps profile new myagent --isolation-level platform

Runs the agent inside a Docker container. Full filesystem and network isolation. Requires Docker to be installed and running.

Best for: Production, untrusted code, strong reproducibility requirements.

Terminal window
aps profile new myagent --isolation-level container
FeatureProcessPlatformContainer
Startup overhead~0ms~50ms~500ms
Filesystem isolationNoPartialFull
Network isolationNoPartialFull
Requires DockerNoNoYes
Cross-platformYesmacOS/LinuxYes