.agents
kind: list every direct state manipulation the smoke harness makes (#2631)
.cargo
[build] upgrade Rust to 1.100 and adopt its cleanup APIs (#1766)
.claude
Initial public release of SPACE
.claude-plugin
Initial public release of SPACE
.config
btrfs: move node-manager's descriptor ioctls and send-stream framing into pplx-space-btrfs (#2601)
.github
ci: cache the protoc, reviewdog and Datadog chart release downloads (#2523)
ci
spaced-guest: move the file watcher into pplx-space-spaced-guest-file-watch (#2612)
crates
internal-api tests: third pass, firewall rounds and row reads via verbs (#2618)
db
api: move the transitional sqlx::Error impls out of the substrate core (#2528)
docker
docker: retry GitHub release downloads in rust and seed-publish images (#2532)
docs
[runtime-upgrade] ignore confirmed-gone kubernetes workers in template twin checks (#2591)
examples
Initial public release of SPACE
fuzz
[build] upgrade Rust to 1.100 and adopt its cleanup APIs (#1766)
infra
smoke: mint the run's ECW API key through the admin API (#2635)
proto
node-mgr: answer a firewall verification round's question over local Sync (#2556)
scripts
smoke: delete two dead direct-SQL helpers and report a missed row in two fault injections (#2634)
shim
sbx-mgr, node-api, api: carry a verified storage class through the fork copy path and persist it on the fork operation (#2474)
space_smoke
btrfs: move the template received-UUID rule to template-model and drop SPACE names from the crate's docs (#2648)
supply-chain
deps: bump kube crates to 4.2.1 for RUSTSEC-2026-0600 (#2265)
templates
kernel: support IPv4/IPv6 firewall and NAT compatibility (#1358)
ui
api, ui: serve admin nodes without counts when occupancy is cancelled, and fill the Nodes page per visible node (#2538)
.coderabbit.yaml
coderabbit: approve Kind chart changes on their rating (#2572)
.dockerignore
scripts: add a browser verification loop for the admin console (#1272)
.gitignore
Initial public release of SPACE
.gitleaks.toml
[ci] renew the pinned 127-0-0-1.dev identity for the TLS authority traffic suite (#1991)
.pre-commit-config.yaml
Initial public release of SPACE
AGENTS.md
agents: add crates/AGENTS.md, give the layer files one shape, and expand the crate layout guide (#2537)
architecture-baseline.toml
host-command: move node-manager's bounded command runner and stop-signal routing into pplx-space-host-command (#2546)
ARCHITECTURE.toml
api: move federated identity into its own resolver crate (#2603)
Cargo.lock
credmgr: use pplx-space-token-review for the TokenReview cache and rate limiter (#2644)
Cargo.toml
api: move federated identity into its own resolver crate (#2603)
CLAUDE.md
Initial public release of SPACE
clippy.toml
ci: remove the isolated-crates lint (#1956)
CONTRIBUTING.md
ci: don't require the Kind smoke for changes to test-only files (#2454)
deny.toml
deny: ignore RUSTSEC-2026-0543, chrono is unmaintained (#1851)
DEPENDENCIES.md
[build] upgrade Rust to 1.100 and adopt its cleanup APIs (#1766)
lefthook.yaml
[build] upgrade Rust to 1.100 and adopt its cleanup APIs (#1766)
LICENSE
Initial public release of SPACE
pyproject.toml
ci: run the Python tests in parallel (#1475)
README.md
common-core: delete the crate; every former dependent stands on its own (#1920)
rust-toolchain.toml
[build] upgrade Rust to 1.100 and adopt its cleanup APIs (#1766)
SECURITY.md
docs: align security contact with contributing guide (#465)
Tiltfile
kind: reduce smoke latency across 14 shards (#1741)
uv.lock
ci: run the Python tests in parallel (#1475)

SPACE

Guide ยท API Reference

SPACE (Sandboxed Platform for Agentic Code Execution) is a sandbox platform for running code in isolated Firecracker microVMs. Applications use its HTTP API to create Linux environments, execute commands, collect output, and manage sandbox lifecycles.

Use SPACE when your application needs a separate execution environment for an agent, a user workspace, or a code-running job. Your application decides what to run and what results to keep; SPACE manages the sandbox, its processes, and the connection carrying command output.

How it works

A template supplies the starting environment. A sandbox is an instance of that environment with its own VM and writable filesystem; multiple commands can run in the same sandbox.

Your application
    |
    +-- Create sandbox from template --> Wait for readiness
    |
    +-- Create command session --------> Attach to start the process
    |                                    Read output and exit result
    |
    +-- Keep, pause, or suspend --------> Wake when needed
    |
    +-- Delete sandbox

Sandbox lifecycle changes are asynchronous: the API returns an operation ID that you poll for completion. Command output uses a separate data-plane connection and a session-scoped attachment token.

Get started

Follow Installation and configuration to deploy SPACE in a local Kind cluster and authenticate. Then follow Your first sandbox to run a command and collect its output. The setup guide covers Kubernetes; the architecture guide also explains how SPACE can run without it.

Documentation

Read the hosted Guide and API Reference online. Both update automatically after changes merge. The links below point to source documentation in this checkout.

GuideWhat you will learn
Versioning and compatibilityRelease progression, supported guests, service stability, and upgrade/rollback requirements.
ArchitectureHow templates, sandboxes, processes, sessions, and operations relate; what pause and suspend preserve; how the services fit together.
Installation and configurationHost prerequisites, local Kind deployment, configuration defaults, authentication, verification, and teardown.
Operator CLIAPI access, port forwarding, space-admin-cli login, nodes, warm pools, and system-template builds.
Your first sandboxA complete API workflow, command customization, output handling, inspection, and deletion.
E2B Compatibility WrapperConfigure ECW, create a compatibility API key, use the tested E2B Python SDK, and understand supported behavior and limitations.
API referenceEndpoints, request and response fields, and examples.
TroubleshootingLocal setup, authentication, lifecycle operations, command streams, and safe retries.
Operator egress profilesConfigure named policy additions for federated native and ECW creates.
ObservabilityTelemetry build features, the Rust/Go selector contract, and unchanged image defaults.
Warm poolsKeep booted sandboxes ready on Kubernetes so creates skip a cold boot.
Base snapshotsRestore sandboxes from a snapshot on a single node, optionally with a node warm pool.

Build documentation locally

To browse the guide and API together locally, install mdBook 0.4.52 and the API build prerequisites. From a clean checkout, run:

bash scripts/build-docs.sh
python3 -m http.server 8000 --bind 127.0.0.1 --directory target/docs/site

Open http://127.0.0.1:8000. The build also requires Git and Python 3.11+. The standalone commands remain bash scripts/build-guide-docs.sh and bash scripts/build-api-docs.sh; they also support local uncommitted edits.

The API serves its generated reference at /openapi-m1.json, with request fields, response schemas, and errors. /openapi.json adds the incubating operations that are not hidden. Some incubating operations, including snapshots, checkpoint, and rollback, are hidden: unless the deployment enables them for your organization, they answer as if they did not exist. Neither document lists them for any caller; /openapi-full.json documents every operation and requires API credentials.

SPACE API

The SPACE API manages sandbox lifecycles, runs and controls processes, and streams their output. Fields marked incubating in the schema are outside the supported contract.

SPACE is implemented in Rust, but applications interact with it over HTTP and server-sent events. You do not need to embed a Rust library to use it; the first-sandbox walkthrough runs a standard-library-only Python example. Installation and cluster diagnostics use Bash.

Development

See DEPENDENCIES.md when adding or updating third-party code.

After local installation, the Tilt watcher that up.sh started keeps running: it rebuilds affected images and rolls their workloads as files change. Rerun up.sh to wait for the stack to settle again; do not start a second tilt up. The Kind runbook covers this development loop, local topology, and template builds.

Use focused unit tests for component logic and the Kind smoke suites for runtime behavior. For setup-specific diagnostics, see host-path troubleshooting and template-build debugging.

Repository layout

crates/<layer>/         Rust crates by layer: l10_foundation, l20_domain, l30_storage,
                        l40_api, l50_app, test_support, tools (crates/<layer>/AGENTS.md)
docs/                   Architecture, setup, API walkthrough, and troubleshooting
examples/               Runnable API examples without an SDK dependency
proto/                  gRPC protobuf definitions
templates/firecracker/  Seed builder and template recipes
scripts/                Utility scripts and smoke suites (scripts/tests/)
docker/                 Service Dockerfiles and Rust artifact build
ci/                     CI checks and artifact build scripts
infra/space/kind/        Local Kind configuration, bootstrap, and development runbook
infra/space/aws/reference/  Reference EKS deployment, applied on a schedule

License

SPACE is licensed under the Apache License, Version 2.0.

See CONTRIBUTING.md to propose changes or contribute.

For native API contract, concurrency, recovery, and quarantine coverage, see Native API hardening.