765
perplexityai/SPACE
- What it does
- SPACE is Perplexity's Apache-2.0 platform, written in Rust, that runs agent code isolated in Firecracker microVMs (lightweight virtual machines). It is for applications that need a separate execution environment for an agent, a user workspace or a code-running job, and the application decides what to run and what to keep. A template is the starting environment, and a sandbox is an instance of it that runs several commands in its own VM and writable filesystem. Applications create sandboxes and command sessions through an HTTP API and poll an operation ID until each sandbox lifecycle change completes, and command output and the exit result arrive as server-sent events over a separate connection with a session-scoped token. Pausing keeps memory on the worker and suspending saves a snapshot, and a sandbox suspends by default after six hours without activity. An E2B compatibility wrapper lets existing E2B clients use SPACE as their backend, and its tested baseline is the Python packages e2b 2.21.1 and e2b-code-interpreter 2.6.2. Network policies allow or deny the destinations a sandbox can reach, and an optional credential rule, off by default, has the TLS-intercepting gateway add a credential header to requests for a named host. The local setup builds a Kind (Kubernetes in Docker) cluster on an apt-based Linux x86_64 host with KVM, and macOS is outside the supported setup. The repository description speaks of pluggable runtimes, while the documented implementation currently covers Firecracker on KVM only. Version 0.8.0 is the public baseline, breaking changes remain possible until 1.0, and only the latest minor release receives security fixes.
- License
- Apache-2.0 Permissive, with a patent grant. Commercial use is allowed; keep the notices and state your changes.





































