Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Sidecar mode

Warning

Sidecar mode is not well tested and has many limitations. Consider a remote connection instead.

A sidecar runs slopd, tmux, and the agent sandboxes in a Docker container. The game remains on the host and connects to the sidecar over a loopback port.

Sidecar mode disables desktop file opening, daemon audio (radio and Spotify), and per-session resource limits. The bundled soundtrack still plays in the game.

The game host needs the slopworld client package and slopcar launcher package. It does not need the native slopd package; the image contains the daemon and CLI. Install slopctl separately if you want CLI access from the host.

Install the host launcher

The minimum supported host-library baseline is Debian 13 (Trixie). Use a matching distro package on a host that satisfies its declared library dependencies; older-library systems are outside the support target. Fedora packages target Fedora 43, and Arch packages target current Arch Linux.

You also need access to a running local Docker engine. The host kernel must allow the nested sandbox operations checked by slopcar doctor. The container supplies tmux, Bubblewrap, and pasta; those do not impose native package requirements on the host. The slopcar launcher includes its seccomp policy and requires no Rust, Python, or source checkout. These requirements cover only the container launcher; game connection below also requires a host source build.

Download the separate slopcar package from GitHub Releases. Debian 13-compatible and Fedora packages are available for amd64/x86_64 and arm64/aarch64; the Arch package is x86_64. Install the matching package with your package manager:

sudo apt install ./slopcar-0.1.0-amd64.deb
# Or on Fedora:
sudo dnf install ./slopcar-0.1.0-x86_64.rpm
# Or on Arch:
sudo pacman -U ./slopcar-0.1.0-x86_64.pkg.tar.zst

The package contains the launcher, completions, and notices. It depends on Docker and system libraries. It does not install the game mod or a daemon service on the host. Docker must be running and accessible to your ordinary user; run slopcar without sudo.

From source

For source installs, use just sidecar-install. This requires Rust, just, uv, and a checkout. Build a local image explicitly when needed:

export SLOPCAR_IMAGE=slopcar:local
just sidecar-image

Start the sidecar

By default, the launcher selects ghcr.io/droserasprout/slopcar:<launcher version>. doctor and a fresh start pull the selected image only when it is missing locally. They never rebuild or refresh an installed image. SLOPCAR_IMAGE selects a custom image. Check the container’s sandbox runtime before starting:

slopcar doctor

Pass --workspace for each project that agents may access. Use absolute paths. The container mounts each workspace at the same path. The game and daemon exchange workspace paths.

slopcar start --workspace "/absolute/path/to/project"

The installed launcher embeds its seccomp profile and runtime commands do not require a checkout. slopcar build --source /path/to/slopworld builds an image from an explicit checkout; without --source, it uses the current directory. Local builds require a checkout and are always explicit. Set SLOPCAR_IMAGE to select an image, including one already pulled from a registry.

Before running agents, extend the standard image with your chosen Linux agent CLIs and their dependencies, then set SLOPCAR_IMAGE to that custom image. Install those tools when building the image so they survive container replacement. The launcher supplies PUID/PGID from your host user. The entrypoint starts as root to configure the slop account, then drops privileges before starting the daemon. Workspace and credential ownership stays unchanged.

The worker writes endpoints/local.toml inside its config directory. The default host location is <CONFIG>/sidecar/endpoints/local.toml. It publishes only its configured loopback port (7718 by default). Add more --workspace options when needed.

Add credentials to the initial start command with --credential-ro SOURCE=TARGET or --credential-rw SOURCE=TARGET. For Codex, mount $HOME/.codex/auth.json at /home/slop/.codex/auth.json read-write so refresh-token updates remain shared with the host. Claude’s rotating $HOME/.claude/.credentials.json needs a read-write mount at /home/slop/.claude/.credentials.json.

Workspace and credential sources cannot be the filesystem root, the entire home folder, or paths overlapping sidecar configuration or session state. Credential mounts also protect container configuration/state targets and reject Docker socket or configuration sources. See the technical README for the detailed mount constraints.

Game connection

This source workflow requires a checkout and the host build prerequisites, including the .NET SDK and Protobuf compiler. It builds the mod and the native daemon/CLI/launcher crate, even though the daemon will run in the container.

Build and install the mod before launching. Run these commands from the repository root, using the same game directory for installation and launch:

RIMWORLD=/path/to/RimWorld/game just install-mod

install-mod builds the mod and launcher and attaches the mod to the game. Then launch with the sidecar’s endpoint and profile:

RIMWORLD=/path/to/RimWorld/game just sidecar-run

The sidecar uses a separate game profile from the default local connection. See Paths and files for overrides and Game profiles for profile behavior.

Start the worker before running the game. install-mod builds the CLI in the checkout without installing it into PATH. From the repository root, connect with:

slopd/target/debug/slopctl --sidecar status

Use slopd/target/release/slopctl if you built with BUILD=release. SLOPD_ENDPOINT can select an explicit descriptor in either mode.

Lifecycle

slopcar status
slopcar logs
slopcar stop
slopcar restart

stop, restart, and container removal end all running agent and host-shell processes, including tmux. Configuration, private agent state, and mounted project files remain on disk. See Session lifecycle for autostart and conversation resume.

start with no options reuses an existing stopped container. After you rebuild the image or change mounts or resource limits, remove the container with slopcar rm, then repeat the original start command, including its directory overrides and mounts. Container removal preserves those directories.

The default port 7718 allows a local daemon on 7717 to run alongside the sidecar. --port (or SLOPCAR_PORT) sets the host port and daemon bind port when the worker first creates its configuration. A different port requires a new configuration directory. The launcher rejects a configuration directory that specifies another port.

For container security flags and nested-namespace constraints, see the technical README.

Host storage uses SLOPD_CONFIG_ROOT, SLOPD_DATA, and SLOPD_CACHE in both standalone and recipe workflows. Set the same environment when starting the sidecar and launching clients. See Paths and files for host layout and fixed container mount targets, and Environment variables for container controls. slopcar paths endpoint prints the resolved descriptor path without requiring Docker.