Install on macOS
Install the Forkspan sandbox service on a Mac as your user and connect it to your workspace.
On macOS, the service runs as your user in your login session. Sandboxes are Linux containers that
run in your local Docker runtime. The installer uses no sudo, no system account and no docker
group.
Requirements
| Requirement | Detail |
|---|---|
| Operating system | macOS on Apple Silicon or Intel. Forkspan builds and tests the service on macOS 15. |
| Docker | Docker Desktop or another local Docker runtime, running in your user session 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. |
| Session | Stay signed in. The machine takes work only while you are signed in and Docker runs. |
| Token | A registration token from the registration wizard. It expires 15 minutes after the wizard creates it. |
The Mac does not need Python, Node.js or Rust. The forkspan executable contains the service and
its sandbox engine.
Set Docker to start when you sign in. Otherwise the machine cannot take work after a restart until you start Docker.
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-macos-aarch64.tar.gz for Apple Silicon and
forkspan-cli-macos-x86_64.tar.gz for Intel.
Until releases are published, build the executable from the Forkspan source on a Mac with the same
architecture. This needs access to the Forkspan repository, Rust through rustup, and uv:
cargo build --release --manifest-path apps/sandbox/Cargo.toml
./apps/sandbox/target/release/forkspan --versionCheck the Mac
Start Docker, then run doctor as your user, without 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 macOS command that the
wizard shows. Do not use sudo. The installer refuses to run as root.
read -rs TOKEN # paste the token, then press Enter
printf '%s\n' "$TOKEN" | ./forkspan install --noninteractive \
--base-url https://app.forkspan.com --name my-mac --token-stdin
unset TOKENThe installer writes these files, all owned by your user:
| Path | Content |
|---|---|
~/Library/Application Support/Forkspan/sandbox | The installed versions and the current link. |
~/Library/Application Support/Forkspan/state | Settings, the machine credential and the service state. |
~/Library/LaunchAgents/com.forkspan.sandbox.plist | The launch agent. It starts the service when you sign in and restarts it after a crash. |
~/.local/bin/forkspan | The command link. |
At the end, the installer prints service: enabled at login and started.
If ~/.local/bin is not on your PATH, the installer prints the export line to add. It does not
edit your shell startup files. Until you add it, use the full path ~/.local/bin/forkspan.
The install options work the same way on macOS.
Docker on macOS
The installer records the endpoint of the active Docker context. It also keeps DOCKER_HOST,
DOCKER_TLS_VERIFY and DOCKER_CERT_PATH when you set them.
If you change the Docker runtime or its socket, stop the service, run the installer again without a token, and start the service:
forkspan stop
./forkspan install --noninteractive --base-url https://app.forkspan.com
forkspan startThe installer keeps the existing registration when you give no token.
The Docker virtual machine limits the CPU and memory that the service detects. To give sandboxes more, raise the resources of the Docker virtual machine, or set the limits with the installer options.
Confirm the installation
forkspan status
forkspan doctorThe last line of status is ready: yes when the Mac can take work. In the web app, the machine
appears under Sandbox servers.
Manage the service
Use the same commands as on Linux, without sudo: forkspan stop, forkspan start,
forkspan drain --wait, forkspan resume, forkspan restart and forkspan logs --follow.
On macOS, the service keeps rotating log files of at most 10 MiB each.
Uninstall
forkspan uninstallThis removes the launch agent, the installation and the command link. It keeps the state
directory. To remove it too, add --purge-data.