This guide details how to clone and replicate the Assistant ecosystem (bots, state manager, and browser automation) on a new host machine.
Since local secrets, dependencies, configuration files, and browser sessions are git-ignored for safety, they must be reconstructed on the target machine.
Each bot has its own isolated Python environment. Create and populate them on the new host machine:
cd discord/discord-bridge
python -m venv .venv
.venv\Scripts\pip install -r requirements.txtcd discord/discord-openclaw
python -m venv .venv
.venv\Scripts\pip install -r requirements.txtRun the installer script in the context of the virtual environments to set up directories and download the browser:
cd discord/browser_automation
powershell.exe -ExecutionPolicy Bypass -File .\install.ps1Current browser automation providers are gemini, deepseek, chatgpt, and claude. The provider registry lives in discord/browser_automation/browser_manager.py.
Secrets and environment-specific variables are git-ignored. You must copy the templates and populate them manually.
-
Copy
.env.exampleto.envin both bot directories:discord/discord-bridge/.envdiscord/discord-openclaw/.env
-
Open the
.envfiles and configure the values:DISCORD_BOT_TOKEN: The token for your bot application.CHANNEL_ID: The channel ID the bots should listen to.HERMES_HOME: The absolute path pointing to your.hermesdata directory (e.g.C:\Users\<user>\.hermes).CEREBRAS_API_KEY(OpenClaw): Your Cerebras API credentials.
Your agent memory, system contexts, and custom scripts are stored in the HERMES_HOME directory (e.g. D:\LapSlop brotherhood\Programs\HermesAI\.hermes).
- Manually copy your
.hermes/folder from the source machine to the destination. - Ensure the
HERMES_HOMEpath inside your.envmatches this location. - Git-ignored database states (like
state.dborkanban.db) will be recreated automatically on startup, but you should copy them if you want to preserve session logs and history.
Saved browser cookies and tokens (sessions/*.json) are not committed to Git. To authenticate the new machine:
- Launch your bots on the new machine.
- In your Discord server, type:
/web-llm-login provider: gemini - A headful browser window will appear on the new machine's desktop.
- Log in manually to your account (Google, OpenAI, or Anthropic).
- Once inside the chat UI, the bot will detect the active input field, save the session state locally to
discord/browser_automation/sessions/gemini.json, and close the window. - Repeat this step for
chatgpt,claude, anddeepseek.
For DeepSeek, prefer the newer slash command:
/login provider: deepseek
You can also run the standalone login helper locally:
cd "D:\LapSlop brotherhood\Programs\Assistant\discord"
.\discord-openclaw\.venv\Scripts\python.exe .\browser_automation\run_login.py deepseekOnce everything is configured, run the startup script to check health:
cd discord/discord-bridge
.\start_all.ps1In Discord, use /web-llm-status to verify that all automation providers are authenticated and ready.
Current start_all.ps1 starts Hermes Gateway, RoketPunchaBluu Bridge/OpenCode, OpenClaw, and discord/desktop_action_layer.py. Use /status-turn and /reset-turn if the shared turn state is stuck after restoring a machine.