Podman
Podman
Run the RemoteClaw Gateway in a rootless Podman container, managed by your current non-root user.
The intended model is:
- Podman runs the gateway container.
- Your host
remoteclawCLI is the control plane. - Persistent state lives on the host under
~/.remoteclawby default. - Day-to-day management uses
remoteclaw --container <name> ...instead ofsudo -u remoteclaw,podman exec, or a separate service user.
Prerequisites
- Podman in rootless mode
- RemoteClaw CLI installed on the host
- Optional:
systemd --userif you want Quadlet-managed auto-start - Optional:
sudoonly if you wantloginctl enable-linger "$(whoami)"for boot persistence on a headless host
Quick start
Setup details:
./scripts/podman/setup.shbuildsremoteclaw:localin your rootless Podman store by default, or usesREMOTECLAW_IMAGE/REMOTECLAW_PODMAN_IMAGEif you set one.- It creates
~/.remoteclaw/remoteclaw.jsonwithgateway.mode: "local"if missing. - It creates
~/.remoteclaw/.envwithREMOTECLAW_GATEWAY_TOKENif missing. - For manual launches, the helper reads only a small allowlist of Podman-related keys from
~/.remoteclaw/.envand passes explicit runtime env vars to the container; it does not hand the full env file to Podman.
Quadlet-managed setup:
./scripts/podman/setup.sh --quadletQuadlet is a Linux-only option because it depends on systemd user services.
You can also set REMOTECLAW_PODMAN_QUADLET=1.
Optional build/setup env vars:
REMOTECLAW_IMAGEorREMOTECLAW_PODMAN_IMAGE— use an existing/pulled image instead of buildingremoteclaw:localREMOTECLAW_DOCKER_APT_PACKAGES— install extra apt packages during image buildREMOTECLAW_EXTENSIONS— pre-install extension dependencies at build time
Container start:
./scripts/run-remoteclaw-podman.sh launchThe script starts the container as your current uid/gid with --userns=keep-id and bind-mounts your RemoteClaw state into the container.
Onboarding:
./scripts/run-remoteclaw-podman.sh launch setupThen open http://127.0.0.1:18789/ and use the token from ~/.remoteclaw/.env.
Host CLI default:
export REMOTECLAW_CONTAINER=remoteclawThen commands such as these will run inside that container automatically:
remoteclaw dashboard --no-openremoteclaw gateway status --deepremoteclaw doctorremoteclaw channels loginOn macOS, Podman machine may make the browser appear non-local to the gateway. If the Control UI reports device-auth errors after launch, use the Tailscale guidance in Podman + Tailscale.
Podman + Tailscale
For HTTPS or remote browser access, follow the main Tailscale docs.
Podman-specific note:
- Keep the Podman publish host at
127.0.0.1. - Prefer host-managed
tailscale serveoverremoteclaw gateway --tailscale serve. - On macOS, if local browser device-auth context is unreliable, use Tailscale access instead of ad hoc local tunnel workarounds.
See:
Systemd (Quadlet, optional)
If you ran ./scripts/podman/setup.sh --quadlet, setup installs a Quadlet file at:
~/.config/containers/systemd/remoteclaw.containerUseful commands:
- Start:
systemctl --user start remoteclaw.service - Stop:
systemctl --user stop remoteclaw.service - Status:
systemctl --user status remoteclaw.service - Logs:
journalctl --user -u remoteclaw.service -f
After editing the Quadlet file:
systemctl --user daemon-reloadsystemctl --user restart remoteclaw.serviceFor boot persistence on SSH/headless hosts, enable lingering for your current user:
sudo loginctl enable-linger "$(whoami)"Config, env, and storage
- Config dir:
~/.remoteclaw - Workspace dir:
~/.remoteclaw/workspace - Token file:
~/.remoteclaw/.env - Launch helper:
./scripts/run-remoteclaw-podman.sh
The launch script and Quadlet bind-mount host state into the container:
REMOTECLAW_CONFIG_DIR->/home/node/.remoteclawREMOTECLAW_WORKSPACE_DIR->/home/node/.remoteclaw/workspace
By default those are host directories, not anonymous container state, so config and workspace survive container replacement.
The Podman setup also seeds gateway.controlUi.allowedOrigins for 127.0.0.1 and localhost on the published gateway port so the local dashboard works with the container’s non-loopback bind.
Useful env vars for the manual launcher:
REMOTECLAW_PODMAN_CONTAINER— container name (remoteclawby default)REMOTECLAW_PODMAN_IMAGE/REMOTECLAW_IMAGE— image to runREMOTECLAW_PODMAN_GATEWAY_HOST_PORT— host port mapped to container18789REMOTECLAW_PODMAN_BRIDGE_HOST_PORT— host port mapped to container18790REMOTECLAW_PODMAN_PUBLISH_HOST— host interface for published ports; default is127.0.0.1REMOTECLAW_GATEWAY_BIND— gateway bind mode inside the container; default islanREMOTECLAW_PODMAN_USERNS—keep-id(default),auto, orhost
The manual launcher reads ~/.remoteclaw/.env before finalizing container/image defaults, so you can persist these there.
If you use a non-default REMOTECLAW_CONFIG_DIR or REMOTECLAW_WORKSPACE_DIR, set the same variables for both ./scripts/podman/setup.sh and later ./scripts/run-remoteclaw-podman.sh launch commands. The repo-local launcher does not persist custom path overrides across shells.
Quadlet note:
- The generated Quadlet service intentionally keeps a fixed, hardened default shape:
127.0.0.1published ports,--bind laninside the container, andkeep-iduser namespace. - It still reads
~/.remoteclaw/.envfor gateway runtime env such asREMOTECLAW_GATEWAY_TOKEN, but it does not consume the manual launcher’s Podman-specific override allowlist. - If you need custom publish ports, publish host, or other container-run flags, use the manual launcher or edit
~/.config/containers/systemd/remoteclaw.containerdirectly, then reload and restart the service.
Useful commands
- Container logs:
podman logs -f remoteclaw - Stop container:
podman stop remoteclaw - Remove container:
podman rm -f remoteclaw - Open dashboard URL from host CLI:
remoteclaw dashboard --no-open - Health/status via host CLI:
remoteclaw gateway status --deep
Troubleshooting
- Permission denied (EACCES) on config or workspace: The container runs with
--userns=keep-idand--user <your uid>:<your gid>by default. Ensure the host config/workspace paths are owned by your current user. - Gateway start blocked (missing
gateway.mode=local): Ensure~/.remoteclaw/remoteclaw.jsonexists and setsgateway.mode="local".scripts/podman/setup.shcreates this if missing. - Container CLI commands hit the wrong target: Use
remoteclaw --container <name> ...explicitly, or exportREMOTECLAW_CONTAINER=<name>in your shell. remoteclaw updatefails with--container: Expected. Rebuild/pull the image, then restart the container or the Quadlet service.- Quadlet service does not start: Run
systemctl --user daemon-reload, thensystemctl --user start remoteclaw.service. On headless systems you may also needsudo loginctl enable-linger "$(whoami)". - SELinux blocks bind mounts: Leave the default mount behavior alone; the launcher auto-adds
:Zon Linux when SELinux is enforcing or permissive.