Claw Brain
Automated backup of the OpenClaw job-hunting pipeline on archbox. Pushed nightly at 11 PM IST. Repo is PUBLIC - all secrets redacted.
What runs
| Cron | Schedule (IST) | What |
|---|---|---|
| daily-jobs | 6 AM | Scout: 18-source job discovery + sub-agent research |
| signal-watch | every 2h, 10 AM-10 PM | Founder hiring signal monitor (Twitter/HN/GitHub) |
| daily-tweets | 6:30 AM + 6:30 PM | Tech digest |
| github-backup | 11 PM | This backup |
| weekly-maintenance | Sun 10 PM | Consolidate lessons + evolve USER.md |
Plus: gh-webhook (issue comment responses), auto-tweet (Twitter read API), wifi-watchdog, webhook-redeliver (auto-retry failed deliveries).
Restore on a new box
Prereqs: Arch Linux (or any systemd distro), fnm, Node v25.9.0, Tailscale. Versions in config/runtime-versions.txt.
# 1. System
sudo cp system-fixes/rtw88-fix.conf /etc/modprobe.d/ # WiFi driver fix
sudo cp system-fixes/wifi-powersave.conf /etc/NetworkManager/conf.d/
sudo cp system-fixes/sudoers-bug /etc/sudoers.d/bug
# 2. OpenClaw
npm install -g openclaw
ln -sf $(npm root -g)/openclaw/openclaw.mjs $(dirname $(which node))/openclaw
# 3. Workspace + config
cp -r workspace/* ~/.openclaw/workspace/
cp -r memory/* ~/.openclaw/workspace/memory/
cp config/openclaw.json ~/.openclaw/ # then replace [REDACTED] with real secrets
cp config/jobs.json ~/.openclaw/cron/
# 4. Services (create venvs, install deps)
python3 -m venv ~/.venvs/gh-webhook && ~/.venvs/gh-webhook/bin/pip install -r services/gh-webhook/requirements.txt
python3 -m venv ~/.venvs/auto-tweet && ~/.venvs/auto-tweet/bin/pip install -r skills/auto-tweet/requirements.txt
~/.venvs/auto-tweet/bin/pip install git+https://github.com/ryanstoic/twikit.git@fix/ondemand-regex-webpack-format
# 5. Scripts + keys
cp scripts/* ~/; chmod +x ~/*.sh
cp config/gh-as-bot.sh config/webhook-redeliver.sh ~/.config/openclaw/; chmod +x ~/.config/openclaw/*.sh
# Re-create secrets: app-key.pem, webhook-redeliver-token, cookies.json (see table below)
# 6. Systemd
cp systemd/* ~/.config/systemd/user/
systemctl --user daemon-reload && loginctl enable-linger $(whoami)
for svc in openclaw-gateway gh-webhook auto-tweet wifi-watchdog; do systemctl --user enable --now $svc; done
systemctl --user enable --now webhook-redeliver.timer
# 7. Tailscale
sudo tailscale up
sudo tailscale funnel --bg 18789
sudo tailscale funnel --bg --set-path /webhook/github 19817
Secrets (must re-create, not in repo)
| Secret | Location | Source |
|---|---|---|
| Gateway token | openclaw.json | Generated by openclaw |
| Telegram bot token | openclaw.json | @BotFather |
| Anthropic API key | openclaw.json | console.anthropic.com |
| GitHub App key | ~/.config/openclaw/app-key.pem | github.com/settings/apps/sudu-claw |
| Webhook redeliver PAT | ~/.config/openclaw/webhook-redeliver-token | github.com/settings/personal-access-tokens |
| Webhook secret | services/gh-webhook/config.json | claw-brain repo webhook settings |
| Twitter cookies | skills/auto-tweet/cookies.json | Chrome DevTools (x.com cookies) |
还没有评论。