Cc-openclaw openclaw-stow
Re-deploy OpenClaw config files via GNU Stow, automatically resolving the known jobs.json conflict
install
source · Clone the upstream repo
git clone https://github.com/rahulsub-be/cc-openclaw
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/rahulsub-be/cc-openclaw "$T" && mkdir -p ~/.claude/skills && cp -r "$T/.claude/skills/openclaw-stow" ~/.claude/skills/rahulsub-be-cc-openclaw-openclaw-stow && rm -rf "$T"
OpenClaw · Install into ~/.openclaw/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/rahulsub-be/cc-openclaw "$T" && mkdir -p ~/.openclaw/skills && cp -r "$T/.claude/skills/openclaw-stow" ~/.openclaw/skills/rahulsub-be-cc-openclaw-openclaw-stow && rm -rf "$T"
manifest:
.claude/skills/openclaw-stow/SKILL.mdsource content
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:
OPENCLAW_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:
ls -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:
rm -f ~/.openclaw/cron/jobs.json
- Run stow:
cd "$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
ls -la ~/.openclaw/openclaw.json ls -la ~/.openclaw/cron/jobs.json
Each should point to the openclaw-home repo.
Multi-gateway
ls -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.