Install on Linux
Install the Forkspan sandbox service on a Linux machine and connect it to your workspace.
The installer runs as root. It creates a restricted service account, installs a systemd service, and connects the machine with a registration token from the web app.
Requirements
| Requirement | Detail |
|---|---|
| Operating system | Linux with systemd on x86-64 or ARM64. Forkspan supports Ubuntu 22.04 and 24.04. |
| Docker | Docker Engine for the same architecture as the machine, with its docker group. Start Docker before you install. Forkspan does not install or replace Docker. |
| Host commands | git and df. |
| Network | Outbound HTTPS to Forkspan. No inbound ports or public IP address. |
| Access | Root through sudo. |
| Token | A registration token from the registration wizard. It expires 15 minutes after the wizard creates it. |
The machine does not need Python, Node.js or Rust. The forkspan executable contains the service
and its sandbox engine.
Get the executable
Release downloads are planned
Forkspan has not published a release of the sandbox service yet. Releases will appear on the
forkspan-cli releases page. The planned
archives are forkspan-cli-linux-x86_64.tar.gz and forkspan-cli-linux-aarch64.tar.gz, each with
the forkspan executable and its license notices.
Until releases are published, build the executable from the Forkspan source. This needs access to
the Forkspan repository, Rust through rustup, and uv. Build on the same operating system and
architecture as the target machine:
cargo build --release --manifest-path apps/sandbox/Cargo.tomlThe executable is apps/sandbox/target/release/forkspan. Copy it to the machine, then confirm that
it runs:
./forkspan --versionThe output looks like forkspan-cli 0.1.0 (engine opensandbox-server 1.1.1).
Check the machine
Run doctor before you install. It needs no token and changes nothing:
sudo ./forkspan doctorFix every failure line before you continue. forkspan doctor explains each check.
Install and register
Create a token in the registration wizard, then run the Linux command that the
wizard shows. Run it from the directory that holds forkspan:
read -rs TOKEN # paste the token, then press Enter
printf '%s\n' "$TOKEN" | sudo ./forkspan install --noninteractive \
--base-url https://app.forkspan.com --name build-01 --token-stdin
unset TOKENThe installer never accepts the token as an argument. Without --noninteractive, in a terminal,
sudo ./forkspan install asks for the Forkspan address and the token instead. It hides the token
while you type.
The installer does these steps, in this order:
- It checks the platform, Docker, the
dockergroup, the Docker architecture and systemd. A failed check stops the installer before it changes the machine. - It creates the
forkspan-sandboxsystem account, with no login shell. - It writes the release to
/opt/forkspan-sandbox/versions/<version>and points/opt/forkspan-sandbox/currentat it. - It creates the command link
/usr/local/bin/forkspan. - It saves settings and the machine credential in
/var/lib/forkspan-sandbox. Only root and the service account can read that directory. - It registers the machine, then enables and starts
agentic-sandbox.service.
At the end, the installer prints service: enabled at boot and started.
The installer takes options for the machine name, the ownership and the limits. See Install options.
You can change the limits later in the web app, on the machine page.
Confirm the installation
sudo forkspan status
sudo forkspan doctorstatus shows the installation, the service, the registration, the engine, the connection and the
maintenance state. Its last line is ready: yes when the machine can take work. In the web app,
the machine appears under Sandbox servers.
Security of the service account
The service account is in the docker group. Access to the Docker socket is equivalent to root:
any account in the docker group can start a container that mounts the host. Keep other users out
of the docker group. The service does not pass its Docker access to the sandboxes.
Root owns /opt/forkspan-sandbox, so the service cannot replace its own executable. The systemd
unit makes the rest of the file system read-only for the service, except
/var/lib/forkspan-sandbox.
Manage the service
| Command | Effect |
|---|---|
sudo forkspan stop | Stop the service now. Running work stops too. |
sudo forkspan start | Start the service. |
sudo forkspan drain --wait | Stop taking new work and wait for current work to finish. |
sudo forkspan resume | Take new work again after a drain. |
sudo forkspan restart | Drain, restart the service and wait until it is ready. |
sudo forkspan logs --follow | Stream the service logs from the systemd journal. |
For every command and its exit codes, see the CLI reference.
Uninstall
sudo forkspan uninstallThis removes the service, the installation and the command link. It keeps
/var/lib/forkspan-sandbox and the service account. To remove them too, add --purge-data.