Fresh OpenClaw Reinstall Guide
Fresh OpenClaw Reinstall Guide
Section titled “Fresh OpenClaw Reinstall Guide”Created: 2026-03-14 by Tila ⚡️ Machine: ThinkPad (Winnie) · Fedora 43 · Node 22
Clean OpenClaw install on the same machine. No old state carried over. Fresh workspace — let the new agent build its own personality and memory on the latest version. Preserve everything else (Frankel ML codebase, projects, system tools).
What Gets Nuked
Section titled “What Gets Nuked”| Path | Contains | Action |
|---|---|---|
~/.openclaw/ | Config, sessions, memory DBs, credentials, cron, agents, logs, workspace | DELETE |
~/.npm-global/lib/node_modules/openclaw/ | OpenClaw package | REINSTALL |
| systemd user service | Gateway service unit | UNINSTALL |
What Gets Preserved
Section titled “What Gets Preserved”| Path | Contains | Why |
|---|---|---|
~/projects/frankel_beta/ | Frankel codebase + racing.db (162MB) | ML models, training data, pipeline |
~/projects/crate/ | R6 Records app | Active project |
~/2026-03-14T07-26-18.460Z-openclaw-backup.tar.gz | Full backup of old state | Reference / rollback |
| Workspace git repo | Chrisr6records/openclaw-workspace | Reference only (do NOT restore by default) |
~/.codex/ | Codex CLI config + OAuth | ChatGPT Plus auth |
~/.gemini/ | Gemini CLI OAuth creds | Google auth |
~/.config/gh/ | GitHub CLI auth | gh CLI |
~/.mcp-venv/ | MCP tools (jCodeMunch, jDocMunch) | Code navigation |
~/.local/bin/bass | BASS CLI | Knowledge base access |
| BASS (bass.romeosixpromotions.com) | All docs, tasks, decisions | Hosted on Cloudflare — survives reinstall |
| System packages, pip, npm globals (except openclaw) | Everything else | Not OpenClaw-related |
Pre-Reinstall Checklist
Section titled “Pre-Reinstall Checklist”- Backup taken (tar.gz exists at
~/2026-03-14T07-26-18.460Z-openclaw-backup.tar.gz) - Workspace pushed to git as reference (
Chrisr6records/openclaw-workspaceat commit8519f66) - API keys saved to a temp file (see below)
Keys & Tokens to Save
Section titled “Keys & Tokens to Save”Before nuking, save these somewhere outside ~/.openclaw/:
# From ~/.openclaw/.envGROQ_API_KEY=gsk_T1dl4a... (Groq — for future use)DEEPGRAM_API_KEY=aa9f69... (Deepgram — audio transcription)
# From openclaw.json auth — these will re-auth via wizard:# Anthropic MAX, Copilot Pro, Codex OAuth (~/.codex/), Gemini OAuth (~/.gemini/)
# From tools.web.search.apiKeyBRAVE_API_KEY=BSArpejZsa0fJMDXVvphqNxzczmnFEs
# From channels.telegramTELEGRAM_BOT_TOKEN=8605008688:AAH4MccNC6Yh6r3RNbfTsbV3HJsiHjMyJcc
# Gemini embedding API key (for memory search)GEMINI_API_KEY=AIzaSyDBvmQjjurzV8ayj8N1pdac2_d1ZHhgVNoStep-by-Step Reinstall
Section titled “Step-by-Step Reinstall”Step 1: Stop and Uninstall the Service
Section titled “Step 1: Stop and Uninstall the Service”openclaw gateway stopopenclaw gateway uninstall
# Verifysystemctl --user status openclaw-gateway 2>&1 | head -3# Should say: Unit openclaw-gateway.service could not be foundStep 2: Remove OpenClaw State
Section titled “Step 2: Remove OpenClaw State”rm -rf ~/.openclaw
# Verifyls ~/.openclaw 2>&1# Should say: No such file or directoryStep 3: Reinstall OpenClaw
Section titled “Step 3: Reinstall OpenClaw”npm rm -g openclawnpm i -g openclaw@latestopenclaw --versionStep 4: Run the Onboarding Wizard
Section titled “Step 4: Run the Onboarding Wizard”openclaw onboard --install-daemonThe wizard walks through:
- Model/Auth — Choose Anthropic, set up MAX token/OAuth
- Workspace — Accept default
~/.openclaw/workspace(fresh templates) - Gateway — Port 18789, loopback, token auth
- Channels — Set up Telegram with the saved bot token
- Daemon — Install systemd user service
- Skills — Install recommended skills
The wizard creates fresh workspace files (SOUL.md, AGENTS.md, etc.) from the latest templates. Let the new agent build its own personality from here.
Step 5: Verify Gateway is Running
Section titled “Step 5: Verify Gateway is Running”openclaw gateway statusopenclaw statusStep 6: Add Auth Profiles
Section titled “Step 6: Add Auth Profiles”The wizard sets up the primary provider. Add the rest:
# Copilot Pro (GitHub)openclaw configure --section auth# Choose github-copilot, follow prompts
# Codex OAuth (should auto-detect from ~/.codex/)openclaw configure --section auth# Choose openai-codex
# Gemini CLI OAuth (should auto-detect from ~/.gemini/)openclaw configure --section auth# Choose google-gemini-cliAdd Groq/Deepgram keys:
echo "GROQ_API_KEY=gsk_T1dl4a..." >> ~/.openclaw/.envecho "DEEPGRAM_API_KEY=aa9f69..." >> ~/.openclaw/.envStep 7: Configure Settings
Section titled “Step 7: Configure Settings”Apply tuned settings via dashboard or config patch:
Telegram Channel
Section titled “Telegram Channel”- dmPolicy: allowlist
- allowFrom: [“8267352500”]
- groupAllowFrom: [“8267352500”]
- groupPolicy: allowlist
- groups.-1003780594815.requireMention: false
- streaming: partial
Agent Defaults
Section titled “Agent Defaults”- model.primary: anthropic/claude-opus-4-6
- model.fallbacks: [“github-copilot/claude-opus-4.6”]
- compaction.mode: safeguard
- compaction.model: github-copilot/claude-sonnet-4.6
- compaction.recentTurnsPreserve: 5
- compaction.postIndexSync: await
- compaction.memoryFlush.enabled: true
- heartbeat.every: 1h
- heartbeat.model: github-copilot/gpt-4o
- heartbeat.lightContext: true
- memorySearch.enabled: true
- memorySearch.provider: gemini
- memorySearch.model: gemini-embedding-2-preview
- memorySearch.outputDimensionality: 3072
- contextPruning.mode: cache-ttl
- contextPruning.ttl: 1h
Models Allowlist
Section titled “Models Allowlist”- anthropic/claude-opus-4-6
- github-copilot/claude-opus-4.6
- github-copilot/gpt-5-mini
- github-copilot/claude-sonnet-4.6
- google-gemini-cli/gemini-3.1-pro-preview
- anthropic/claude-sonnet-4-6 (alias: sonnet)
- github-copilot/gpt-5.4
- github-copilot/gpt-4o
- openai-codex/gpt-5.4
- tools.profile: full
- tools.web.search: brave, llm-context mode
- session.dmScope: per-channel-peer
Step 8: Add Agents
Section titled “Step 8: Add Agents”openclaw agents add frankel# Bind to telegram topic 8
openclaw agents add vinyl# Bind to telegram topic 9
openclaw agents add ops# Bind to telegram topic 316Restore agent workspaces from backup if desired, or let them start fresh too:
# OPTIONAL: Restore agent workspaces from backupcd /tmptar xzf ~/2026-03-14T07-26-18.460Z-openclaw-backup.tar.gzcp -r /tmp/.openclaw/agents/frankel/workspace/* ~/.openclaw/agents/frankel/workspace/cp -r /tmp/.openclaw/agents/vinyl/workspace/* ~/.openclaw/agents/vinyl/workspace/cp -r /tmp/.openclaw/agents/ops/workspace/* ~/.openclaw/agents/ops/workspace/rm -rf /tmp/.openclawStep 9: Set Up Bindings
Section titled “Step 9: Set Up Bindings”Map Telegram HQ topics to agents:
bindings: - agentId: main → telegram group -1003780594815:topic:1 - agentId: main → telegram group -1003780594815:topic:6 - agentId: main → telegram group -1003780594815:topic:7 - agentId: frankel → telegram group -1003780594815:topic:8 - agentId: vinyl → telegram group -1003780594815:topic:9 - agentId: ops → telegram group -1003780594815:topic:316Step 10: Final Verification
Section titled “Step 10: Final Verification”openclaw gateway statusopenclaw statusopenclaw message send --channel telegram --target 8267352500 --message "Fresh install working ✅"Post-Install
Section titled “Post-Install”- Verify each agent responds in their HQ topic
- Check memory search is indexing (
memory_searchtest) - Set up cron jobs (daily backup, etc.) as needed
- Let agents build their own workspace files organically
Reference Material (Do NOT Restore by Default)
Section titled “Reference Material (Do NOT Restore by Default)”- Old workspace git:
Chrisr6records/openclaw-workspace(commit8519f66) - Full backup:
~/2026-03-14T07-26-18.460Z-openclaw-backup.tar.gz - Old config: inside backup at
.openclaw/openclaw.json - BASS docs: all project docs, rosters, SOPs available at bass.romeosixpromotions.com
These exist for reference if the new agent needs to look something up, but the default path is fresh start.
Rollback
Section titled “Rollback”If anything goes wrong:
openclaw gateway stoprm -rf ~/.openclawcd ~tar xzf ~/2026-03-14T07-26-18.460Z-openclaw-backup.tar.gzmv .openclaw ~/npm i -g openclaw@2026.3.13openclaw gateway start