Re-Stow OpenClaw Config
Re-deploy configuration files from the openclaw-home repo to $HOME via GNU Stow.
Setup Detection
Detect the openclaw-home repo location and deployment mode:
bashOPENCLAW_REPO=$(readlink ~/.openclaw/openclaw.json 2>/dev/null | sed 's|/.openclaw/openclaw.json||') TIER_CONFIGS=(~/.openclaw/configs/openclaw-*.json) [[ -f "${TIER_CONFIGS[0]}" ]] && MULTI_GATEWAY=true || MULTI_GATEWAY=false
Steps
- Check for known conflicts:
bashls -la ~/.openclaw/cron/jobs.json 2>/dev/null
If it's a regular file (not a symlink), remove it — the gateway recreates it on every startup:
bashrm -f ~/.openclaw/cron/jobs.json
- Run stow:
bashcd "$OPENCLAW_REPO" && stow --no-folding -t ~ .
-
If stow reports other conflicts, check what they are:
- If it's a file the gateway created (session files, auth tokens), it's safe to remove and re-stow
- If it's user-created content, back it up first
-
Verify key symlinks:
Single-gateway
bashls -la ~/.openclaw/openclaw.json ls -la ~/.openclaw/cron/jobs.json
Each should point to the openclaw-home repo.
Multi-gateway
bashls -la ~/.openclaw/openclaw.json ls -la ~/.openclaw/cron/jobs.json ls -la ~/.openclaw/configs/openclaw-*.json ls -la ~/.openclaw/scripts/start-*.sh
All should be symlinks pointing to the openclaw-home repo.
- Report result: Confirm stow succeeded and list any warnings.


