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

Environment variables

Set variables before starting the process that reads them. For a systemd-managed daemon, set them in the service environment and restart it.

Defaults below apply without --sidecar unless noted. <CONFIG>, <DATA>, and <CACHE> are the application roots described in Paths and files. Command-line options take precedence where available. Build recipe settings belong to Build from source.

VariableRead byDefaultEffect
OPENROUTER_API_KEYDaemonNoneKey for prompt summaries and OpenRouter balance polling when no key file is configured.
RIMWORLDslopworld modDefault game locationGame installation for mod management. Also used by build recipes.
SLOPCAR_CONTAINERslopcar, slopctl --sidecar logs daemonslopcarSidecar container name.
SLOPCAR_CPUSslopcar4Container CPU limit.
SLOPCAR_IMAGEslopcarghcr.io/droserasprout/slopcar:<launcher version>Container image to build or run; start/doctor pull it only when absent.
SLOPCAR_MEMORYslopcar8gContainer memory limit.
SLOPCAR_PIDS_LIMITslopcar4096Container process limit.
SLOPCAR_PORTslopcar7718Loopback host port and initial daemon bind port.
SLOPD_CACHEDaemon, mod, launcher, CLIXDG cache directoryApplication cache root.1
SLOPD_CONFIG_ROOTDaemon, mod, launcher, CLIXDG config directoryConfiguration root for settings, catalogs, endpoint discovery, and the saved game directory.1
SLOPD_CREDITS_URLDaemonhttps://openrouter.ai/api/v1/creditsOpenRouter balance endpoint.
SLOPD_DATADaemon, mod, launcher, CLIXDG data directoryData root for workspace state, jukebox likes, and the default game profile.1
SLOPD_ENDPOINTDaemon, mod, launcher, slopctl<CONFIG>/endpoints/local.tomlExplicit descriptor path; clients default to endpoints/local.toml.2
SLOPD_LOGDaemonslopd=infoTracing filter; use slopd=debug for more detail.
SLOPD_OPENAI_USAGE_URLDaemonhttps://chatgpt.com/backend-api/wham/usageOpenAI usage endpoint.
SLOPD_TITLE_URLDaemonhttps://openrouter.ai/api/v1/chat/completionsPrompt summary endpoint.
SLOPD_TMUX_SOCKETDaemonslopworldPrivate tmux socket name.
SLOPD_TOKENslopctlDescriptor tokenRoot or scoped token paired with SLOPD_URL.2
SLOPD_URLslopctlDescriptor URLDaemon URL override; requires SLOPD_TOKEN.2
SLOPD_USAGE_URLDaemonhttps://api.anthropic.com/api/oauth/usageAnthropic usage endpoint.
SLOPWORLD_DAEMON_UNITslopctl logsslopd.serviceSystemd user unit to read.
SLOPWORLD_DEBUGDaemon, modDisabledEnables performance and terminal-latency instrumentation with 1 or true (case-insensitive).
SLOPWORLD_GAMEslopworldSaved or discovered game directoryGame directory when --game is absent.
SLOPWORLD_GAME_LOGLauncher, slopctl logs, just logs<CACHE>/Player.logFile where the launcher captures game stdout and stderr; sidecar defaults to <CACHE>/sidecar/Player.log.
SLOPWORLD_PROFILEslopworld<DATA>/profiles/<name>Override the selected peer’s profile when --profile is absent; sidecar profiles use <DATA>/sidecar/profiles/<name>.
SLOPWORLD_PROJECTSession commandsSet by daemonProject name supplied to agent and host-shell processes; the default for slopctl --project options.
SLOPWORLD_SESSIONslopctlhostCaller identity; supplied by the daemon to agent and host-shell processes.
SLOPWORLD_TASK_IDslopctlSet for workersTask ID used when a task command omits it.

XDG_CONFIG_HOME, XDG_DATA_HOME, and XDG_CACHE_HOME supply directory defaults. The daemon’s PATH determines which tools it can find. Desktop and audio integrations use the host session environment, including DISPLAY, WAYLAND_DISPLAY, XDG_RUNTIME_DIR, DBUS_SESSION_BUS_ADDRESS, and PULSE_SERVER.

Sandboxed agents start with a cleared environment. The daemon supplies terminal settings and the configured agent SHELL. See Sandbox environment for forwarding variables with preset env and setting values with setenv.


  1. Use absolute paths and the same roots for processes sharing an installation. Host slopcar also reads these roots and derives its paths beneath them; container paths stay fixed. See Sidecar mode. ↩ ↩2 ↩3

  2. The daemon publishes the local descriptor; slopworld connect stores named endpoints without changing the default local endpoint. --endpoint NAME overrides environment connection settings for one client invocation. Otherwise, SLOPD_URL and SLOPD_TOKEN override the CLI connection together; they do not configure the daemon listener or the mod. Workers receive a scoped URL/token pair automatically. See Agent collaboration. ↩ ↩2 ↩3