iTechGuides is reader-supported. When you buy through links on our site, we may earn an affiliate commission. As an Amazon Associate I earn from qualifying purchases. Learn more
To run Perplexity’s open-source SPACE agent sandbox locally, use its documented Kind deployment on an apt-based Linux x86_64 host with KVM, required device and filesystem support, at least 30 GiB of free space, and a Docker daemon that permits privileged containers. The documented path does not run directly on macOS. Clone the repository, install its prerequisites and Firecracker vendor artifacts, start the local stack, authenticate to its API, and run the included Python example to create and inspect your first Firecracker microVM.
SPACE is not a single Docker image that starts one sandbox. Docker is part of a local Kubernetes-based development stack that builds and deploys multiple services, including the sandbox infrastructure. This guide follows the repository’s documented local path; check the SPACE repository for current scripts and version-specific guidance.
What is Perplexity SPACE, and what does Docker do?
SPACE stands for Sandboxed Platform for Agentic Code Execution. It is a platform for creating isolated Firecracker microVMs, running commands inside them, collecting output, and managing their lifecycle through an HTTP API. An application requests a sandbox; SPACE manages the virtual machine, its processes, and the connection that carries command output. A template defines the starting filesystem and runtime configuration, while each sandbox gets its own writable filesystem. The project README describes the platform and its intended application-facing model.
The Tool Desk
Outbyte Driver Updater FREEScan for outdated or missing drivers - takes under a minuteDriver Scan →Outbyte PC Repair FREERepair Windows errors before they cause bigger problemsFix Now →In the local guide, Docker supports the Kind-based Kubernetes development environment. The setup scripts build and deploy a multi-service stack; they do not simply start a standalone container and treat it as the guest. The guest environment is a Firecracker microVM, which is a different isolation boundary from an ordinary application container.
Popular on Amazon
- 【90 Degree Full Function USB C Adapter】Supports the latest USB4 standard for up to 40Gbps of bandwidth, 8K video support, and up to 240W Fast charging; Support USB PD 3.1 Extended Power Range (EPR) including 140W, 180W and 240W. Your productivity is easily doubled. *Warm Tip: For the best fit, please make sure the USB-C port is fully exposed; thick or bulky cases may affect compatibility.
- 【Reliable Quality】Made from high-quality, scratch-resistant aluminum alloy, delicate metal frame. get excellent wear resistance and heat dissipation. Non-Slip Design for easier insertion and removal.
- 【Small and portable】Ultra thin size, ultra compact design, a petite physique that matches the minimalist design of your modern laptops. Coming with a slim figure that won't block the port next to the one it's plugged into.
- 【Compatibility】Widely work with most usb c, thunderbolt 4/3 devices. Compatibilit for ROG Ally, Steam Deck, Switch, MacBook Pro, Quest 3 VR headset, Surface Book 2, iPhone 18/17/16/15, Samsung Galaxy S23/S22/S21, Note 20/10, Google Pixel, ChromeBook, etc.
- 【Excellence Customer Support】If you experience any issues or cable failure, simply reach out to our dedicated customer service team. We provide a prompt response within 18 hours, providing you with the necessary technical support to resolve any concerns.
The architecture separates two kinds of traffic. Management requests—such as creating or inspecting a sandbox—go through the API and its durable state. Command output travels over a separate data-plane connection. The local deployment uses a Kubernetes adapter; the architecture also documents a direct adapter. That distinction matters when debugging: a responsive management API does not by itself prove that a command session or its output stream is working.
What does the Linux host need?
The documented local deployment is for apt-based Linux on x86_64. The host must support KVM and TUN, provide the required device and filesystem support, and run Docker in a configuration that permits privileged containers. Plan for at least 30 GiB of free space for the local build and deployment. The repository’s host checks are the appropriate way to verify the machine before starting the installation.
- Operating system and architecture: apt-based Linux, x86_64.
- Virtualization and networking: KVM and the
/dev/kvmand/dev/net/tundevices must be available to the setup. - Additional host support: loop devices and btrfs are required by the documented path.
- Container runtime: Docker must be reachable and configured to allow privileged containers. A Docker daemon that blocks privileged workloads will prevent this deployment from working as documented.
- Disk space: reserve at least 30 GiB free before building and deploying.
- Shell: use Bash. The guide recommends keeping setup in one shell, since later commands depend on environment variables set earlier.
macOS is not a supported direct host for this documented workflow. The limitation is not that macOS cannot run Docker generally; this deployment specifically depends on Linux host facilities such as KVM and the listed devices. If your development machine is a Mac, use a suitable Linux x86_64 host or Linux VM only if it exposes the required devices and Docker privileges. The available data does not establish that any particular hosted VM configuration will satisfy those requirements, so verify it with the repository’s host checks rather than assuming it will.
How do I install SPACE with Docker?
Run the repository’s host checks and setup scripts in order from the checkout root. The process installs the development tools, fetches Firecracker vendor artifacts, creates a local Kind cluster, and brings up the services. On a remote machine, run the long build inside tmux so an SSH disconnect does not end the session.
1. Clone the repository
git clone https://github.com/perplexityai/SPACE.git
cd SPACE
Keep this checkout available: the installation scripts and first-sandbox example are run from it. Use the repository’s current documentation if a script or option differs from the commands shown in the version you have checked out.
2. Check the host before installing
Use the host-check procedure documented in the repository to verify Linux x86_64, KVM and TUN devices, required tools, and Docker connectivity. In particular, confirm that /dev/kvm and /dev/net/tun exist and are accessible to the deployment, and that the Docker daemon allows the required privileged containers. Resolve any failed prerequisite before proceeding; a later Kubernetes or sandbox failure can otherwise be a symptom of a host-level limitation.
The available data identifies the checks but does not provide a stable command line for invoking them, so use the instructions in the checkout rather than guessing a script name or flags. This is especially useful if the repository has changed since the local version of its hosted guide was written.
Quick wins for a faster PC:
Scan for outdated or missing drivers - takes under a minuteDriver Scan →Repair Windows errors before they cause bigger problemsFix Now →Fix the driver behind crashes, sound loss and screen glitchesFind Drivers →Also popular on Amazon
- 5-in-1 Connectivity: Equipped with a 4K HDMI port, a 5 Gbps USB-C data port, two 5 Gbps USB-A ports, and a USB C 100W PD-IN port. Note: The USB C 100W PD-IN port supports only charging and does not support data transfer devices such as headphones or speakers.
- Powerful Pass-Through Charging: Supports up to 85W pass-through charging so you can power up your laptop while you use the hub. Note: Pass-through charging requires a charger (not included). Note: To achieve full power for iPad, we recommend using a 45W wall charger.
- Transfer Files in Seconds: Move files to and from your laptop at speeds of up to 5 Gbps via the USB-C and USB-A data ports. Note: The USB C 5Gbps Data port does not support video output.
- HD Display: Connect to the HDMI port to stream or mirror content to an external monitor in resolutions of up to 4K@30Hz. Note: The USB-C ports do not support video output.
- What You Get: Anker 332 USB-C Hub (5-in-1), welcome guide, our worry-free 18-month warranty, and friendly customer service.
3. Install the development prerequisites
Set the installation directory and run the prerequisite installer from the repository root:
export INSTALL_DIR="$HOME/.local/bin"
infra/space/kind/scripts/install-prereqs.sh
The installer supplies Kind, kubectl, Helm, grpcurl, Tilt, Go, jq, lsof, and the AWS CLI. Verify that the tools are on your PATH before moving on. If $HOME/.local/bin is not on the current shell’s PATH, add it for this session using your shell’s normal PATH configuration, then verify the commands. Do not assume that installing a tool automatically makes it visible in an already-open shell.
4. Install Firecracker artifacts and bring up the Kind stack
Set the vendor-artifact location and local cluster name, clear inherited AWS credentials as the guide directs, then run the Firecracker installer followed by the stack bring-up script:
export SPACE_VENDOR_ROOT="$HOME/.local/share/space/vendor"
export SPACE_KIND_CLUSTER=space-local
unset AWS_ACCESS_KEY_ID AWS_SECRET_ACCESS_KEY AWS_SESSION_TOKEN
infra/space/kind/scripts/install-fc-vendor.sh
infra/space/kind/scripts/up.sh
Unset other inherited AWS credential variables too if your shell or environment supplies them; do not pass personal cloud credentials into a local development deployment unnecessarily. The installer prepares the Firecracker vendor artifacts. The bring-up process starts Tilt, builds the Rust workspace and seed template, deploys the charts, publishes seed:latest, and leaves Tilt running to watch for later file changes.
Do these 3 things before closing this tab:
1Fix the driver behind crashes, sound loss and screen glitches2Clear out junk files and repair common Windows errors3Scan for outdated or missing drivers - takes under a minuteThis is a build-and-deploy step, not an instant container launch. Allow the seed publication job and node-service rollouts to finish. Then verify that the API responds at http://127.0.0.1:8080/openapi-m1.json. The local endpoints are:
| Service | Local address |
|---|---|
| API | 127.0.0.1:8080 |
| Data plane | 127.0.0.1:8090 |
| User interface | 127.0.0.1:3000 |
| Object storage | 127.0.0.1:8333 |
These are local development endpoints, not public service addresses. If the API check fails, first confirm that the bring-up has completed, the relevant services have rolled out, and the host still meets the KVM, device, Docker, and disk requirements.
How do I authenticate to the local API?
Set the API and data-plane URLs in the same shell where you will run the example, then authenticate as the local root user and retain the returned bearer token in SPACE_API_TOKEN. Use the authentication instructions and request shape in the repository’s guide; the available data does not specify an endpoint or JSON payload, so do not substitute an assumed one.
Also popular on Amazon
- Sleek 7-in-1 USB-C Hub: Features an HDMI port, two USB-A 3.0 ports, and a USB-C data port, each providing 5Gbps transfer speeds. It also includes a USB-C PD input port for charging up to 100W and dual SD and TF card slots, all in a compact design.
- Flawless 4K@60Hz Video with HDMI: Delivers exceptional clarity and smoothness with its 4K@60Hz HDMI port, making it ideal for high-definition presentations and entertainment. (Note: Only the HDMI port supports video projection; the USB-C port is for data transfer only.)
- Double Up on Efficiency: The two USB-A 3.0 ports and a USB-C port support a fast 5Gbps data rate, significantly boosting your transfer speeds and improving productivity.
- Fast and Reliable 85W Charging: Offers high-capacity, speedy charging for laptops up to 85W, so you spend less time tethered to an outlet and more time being productive.
- What You Get: Anker USB-C Hub (7-in-1), welcome guide, 18-month warranty, and our friendly customer service.
export SPACE_API_URL=http://127.0.0.1:8080
export SPACE_DATA_PLANE_URL=http://127.0.0.1:8090
The local guide’s initial root password is password, unless SPACE_CONSOLE_PASSWORD was set before deployment. Treat this as a development default, not a production credential. Keep the token private: it grants authenticated access to the local API. If a new terminal is opened, its environment will not automatically inherit exports from the old shell; set the URLs and token again or use the repository’s documented credential workflow.
What’s actually slowing this PC down?
Pick the symptom - the matching free tool is one click away.
There are two credentials in play in the example’s flow. The API bearer token authenticates management calls. Attaching to the command event stream uses a separate attachment token. Do not confuse the two or assume that an API token alone proves the data-plane connection is correctly attached.
How do I create my first SPACE sandbox?
Run the included example from the checkout root in the shell where the local URLs and API token are available. It uses Python’s standard library, so the walkthrough does not require a SPACE SDK or a virtual environment.
python3 examples/first_sandbox.py
The example demonstrates an asynchronous lifecycle rather than a single “create and run” request. It creates a sandbox, waits for the operation to succeed and for the sandbox to become ready, opens a command session, attaches to the event stream, checks the command result, inspects the run, and asks whether to delete it. A successful HTTP response only says that a request was accepted or handled; it does not establish that the command itself completed successfully.
- Create the sandbox. The example requests a Firecracker runtime and uses the default
seed:latesttemplate unless configured otherwise. A template supplies the starting guest filesystem and runtime configuration. - Wait for the operation and readiness. Creation is asynchronous. Wait for the operation to report success and for the sandbox to reach running readiness before sending a command.
- Open a command session. Commands are arrays of arguments, not implicit shell strings. For example, a command should identify an executable and its arguments explicitly. The executable and working directory must exist inside the guest, not merely on the host.
- Use a shell only when needed. Pipes, redirection, and shell expansion require an explicit shell invocation such as
sh -c. Without that, characters such as|are not automatically interpreted as shell syntax. - Attach to the event stream. The example uses the separate attachment token and reads the command’s output events. Output is streamed; it is not automatically a durable log archive.
- Validate the process result. Check for the
process_exitedevent and confirm its exit code is0. A stream closing or an HTTP request succeeding is not a substitute for checking the process outcome. - Inspect and decide whether to delete. The example inspects the run and asks whether to remove it. Delete only when you no longer need the sandbox or its state.
The example supports configuration for the template, runtime (fc for Firecracker), name, metadata, vCPU count, memory, disk, environment, command, working directory, and timeout. The available data does not provide default numeric values for those resource fields; consult the checked-out example and API schema rather than guessing them.
What happens if I disconnect from the output stream?
Command output is a live stream, so preserve the example’s event transcript if you need a record. Reconnection can use Last-Event-ID while the relevant output remains retained, but retention is not guaranteed indefinitely. If the retained range is no longer available, the stream may send resync_required.
That recovery signal means the client should not treat the resumed stream as a complete transcript of everything that happened. Keep any transcript already received, inspect the run or process state using the API, and decide whether the command must be repeated. Repeat only when its effects are safe to repeat: a command that writes a file, changes state, or performs an external action may not be idempotent.
Also popular on Amazon
- Portable and powerful USB-C HUB: BENFEI USB Type-C HUB, with super-soft and knot-free silicone woven design cable, meets most mobile office needs. Compact, lightweight, stylish, and powerful portable USB C Hub equipped with 1 x HDMI port, 1 x 100W charging, and 3 x USB ports. 18-month warranty, 24-hour response, to ensure you feel at ease when using our product.
- Design centered on comfort and reliability: Thanks to BENFEI's end-to-end in-house cable production capability, in-house PCBA and assembly capability, using the industry's most advanced silicone woven design and process, 20cm cable in length, no knots, super-soft, the HUB is easy to use in all scenarios: laptop, tablet, stand etc. Super-soft, 25000+ life cycles, to meet your daily carrying and office needs.
- 100W Charging: Support up to 90W USB C pass-through charging via Type-C port to keep your laptop powered. 10W is reserved for other interface operations. No data and video function on the Type-C port.
- 4K HDMI Display: The HDMI port supports media display at resolutions up to 4K 30Hz, keeping every incredible moment detailed and ultra vivid. Please note that the C port of the Host device needs to support video output.
- Transfer Files in Seconds: Transfer files and from your laptop at speeds up to 10 Gbps with USB A 3.2 port. Extra 2 USB A 2.0 ports are perfectly for your keyboards and mouse.
When diagnosing a seemingly incomplete run, distinguish three questions: did the management API create and ready the sandbox; did the command process exit, and with what code; and did the client receive the entire output stream? These are related but separate outcomes.
What is the difference between running, pausing, and suspending?
Running keeps processes active and retains the microVM’s live memory and writable filesystem. Pausing stops execution while keeping memory resident. Suspending stops guest execution, saves a snapshot of memory, runtime state, and the root filesystem, and releases active VM resources while the sandbox remains available.
PC Slower Than It Used to Be?
A free scan shows the junk files, broken settings and background clutter dragging Windows down - then fixes them in one click.Free scan · Windows 10 & 11Outdated Drivers Are Slowing You Down
One free scan finds every outdated or missing driver and matches the right update for your exact hardware.Free scan · exact hardware match| State or action | Execution | What remains available | What to expect next |
|---|---|---|---|
| Running | Processes can execute. | Live VM memory and writable filesystem. | Issue commands when the sandbox is ready. |
| Paused | Execution is stopped. | VM memory remains resident; this is not a durable snapshot. | Resume the paused VM to continue its execution. |
| Suspended | Guest execution is stopped. | A snapshot of VM memory, runtime state, and root filesystem is retained while active VM resources are released. | Wake or restore it, then wait for readiness before issuing another command. |
| Deleted | The sandbox is no longer available through the API. | Do not rely on it being recoverable as an active sandbox. | Create a new sandbox if you need another environment. |
Pause and suspend are not interchangeable. Pause keeps the live VM memory resident and is not a durable snapshot. Suspend is the lifecycle operation that saves the documented snapshot while releasing active VM resources. If a sandbox has been suspended, wait for readiness after waking it; sending a command before restoration is ready can fail.
By default, API-created sandboxes suspend after six hours without access or command activity. That is an idle limit, not a maximum lifetime. The default does not mean every sandbox is deleted after six hours, nor does it mean a continuously active sandbox has a six-hour total lifespan.
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.What should I check when local setup fails?
Start with the layer that failed instead of repeating the entire deployment. SPACE depends on host virtualization, Docker, a local Kubernetes stack, service readiness, authentication, and a separate command stream.
- The prerequisite check reports missing KVM or TUN support: verify that the Linux host exposes
/dev/kvmand/dev/net/tunand that the process running the setup can access them. A macOS Docker setup is not a substitute for the documented Linux host requirements. - Docker or Kind cannot start the cluster: confirm Docker connectivity and that the daemon permits privileged containers. Also check that the machine has the required loop-device and btrfs support and enough free disk space.
- Commands such as
kindortiltare not found: verify the prerequisite installer completed and that$HOME/.local/bin(or the selectedINSTALL_DIR) is on the current shell’sPATH. - The API endpoint does not respond: wait for the bring-up, seed publication, and node-service rollouts to finish. Check the API at
127.0.0.1:8080/openapi-m1.jsononly after the stack has deployed. - Authentication fails: confirm that the environment variables point to the local API and that the password matches the deployment. The default is
passwordonly ifSPACE_CONSOLE_PASSWORDwas not set before deployment. - The sandbox creates but the command does not run: wait for running readiness, check that the executable and working directory exist inside the guest, and use
sh -cwhen the command needs shell features. - The command runs but output is missing or incomplete: check that the event stream was attached with its attachment token and inspect the process-exit event. If resuming with
Last-Event-IDresults inresync_required, the missing portion may no longer be retained.
For an SSH-based setup, a lost terminal can interrupt a long build if it was not kept in a persistent session. The guide recommends tmux; use it before starting the build rather than after a disconnect.
Free tools Windows power users keep installed
One-click scans. No signup required.
Which SPACE version and security claims apply?
The hosted guide identifies itself as SPACE 0.8.1, while the formal compatibility guide names 0.8.0 as the public release baseline. It describes 0.9.0 as the final pre-1.0 release with breaking changes and says 0.8 hosts support spaced guests at versions >=0.1.0 and <0.9.0. Check the project’s current compatibility guidance before mixing host and guest versions; “0.8” is not a promise that every guest version will work.
Also popular on Amazon
- 【Read before You Buy】 Note: This adapter is USB 2.0 version and cannot transmit HDM, VGA, or other video signals. Nevertheless, they are fully capable of charging devices,duplicating files, and can be seamlessly integrated with USB-C earphones, wireless network adapters, and SD card adapters.
- 【Easy to Use and Safe】Thanks to modern manufacturing techniques, we've made these adapters sufficiently compact so that they can remain inserted in your device without noticeable protrusion or inconvenience. This means you don't have to constantly plug and unplug them, reducing the likelihood of wear and misalignment, and making them more convenient to carry around.
- 【Reliable Quality】Engineered for enhanced durability, durable aluminum alloy shell material,get excellent wear resistance and heat dissipation,the male USB C and female USB connectors & the male USB and female USB C connectors are designed to be plugged and unplugged up to 20000 times. Provides data transfer, device charging, memory space expansion, and additional computer peripherals.
- 【Think more for you】Do you need to connect a USB-C-enabled device to an odd device that only has USB-A ports? Then these USB-A male to USB-C female adapters are made for you.Simply insert the adapter into the USB-A port on the device, and you can instantly connect your USB-C device to the device that originally didn't have the correct connection port.
- 【Trusted xiwxi Quality and Service】As a responsible brand seller, you will receive xiwxi's 12-month Quality assurance and lifetime friendly customer service, you're not just buying a product,you're investing in peace of mind with all-round quality and exceptional customer service.
SPACE is licensed under the Apache License, Version 2.0. In its 2026 announcement, Perplexity reported that it attempted 108 boundary attacks and observed no VM escape in the initial test; the company also said some network restrictions were bypassed and then fixed in repeat testing. Those are vendor-reported security claims, not an independent security assessment of your deployment or configuration. They should not be read as proof that any sandbox is invulnerable.
The same announcement reports sandbox creation as three to five times faster than Perplexity’s previous provider on the same production traffic, and says the service handles millions of sandbox creation requests per day. Those figures describe Perplexity’s reported production experience, not a benchmark of a local Docker-and-Kind deployment. Local startup time and capacity depend on the host and deployment and are not quantified by the supplied evidence.
How did the selection and setup guidance get determined?
This is a setup guide for the repository’s documented local deployment, not a comparison of sandbox products. The steps follow the supplied SPACE installation workflow and its example lifecycle. Requirements, endpoints, lifecycle definitions, version compatibility, license, and performance or security figures are limited to what the project documentation and Perplexity’s announcement report; vendor claims are labeled as such, and no independent performance or security test is implied.
Frequently Asked Questions
Can I use SPACE without Kubernetes?
The documented local guide uses a Kubernetes adapter deployed with Kind. SPACE’s architecture also documents a direct adapter, but the supplied guidance does not provide a complete alternative local installation procedure for it.
Does SPACE keep command output after the sandbox stops?
The command output described in the example is a live event stream, not a durable log service. Save the transcript on the client side if you need a reliable record after the stream or sandbox lifecycle changes.
Is the local root password safe to leave as password?
No. The value is a development default when `SPACE_CONSOLE_PASSWORD` was not set before deployment. Use a private development environment and set a non-default password rather than exposing the local stack with those credentials.
What license does the SPACE source code use?
The project is licensed under Apache License 2.0. Review the repository’s license file for the applicable terms when redistributing or modifying the software.
Recommended Free Tools

