One-click migration from OpenClaw to Hermes AI agent
Project description
hermes-migrate
One-click migration from OpenClaw to Hermes.
Stop OpenClaw, migrate everything, start Hermes — your channels keep working.
Install
pip install hermes-migrate
Or with pipx:
pipx install hermes-migrate
From source (no pip/venv needed)
For locked-down systems (Debian/Ubuntu with externally-managed Python):
git clone https://github.com/raulvidis/hermes-migrate.git
cd hermes-migrate
./install.sh
hermes-migrate --dry-run -v # preview
hermes-migrate -v # full migration
Only requires Python 3.9+ and PyYAML (usually pre-installed).
Quick Start
# Full end-to-end migration
hermes-migrate
# Preview what would happen (no changes)
hermes-migrate --dry-run
# Migrate a specific agent from a multi-agent setup
hermes-migrate --agent cleo
# Verbose output
hermes-migrate -v
That's it. The tool will:
- Stop OpenClaw processes
- Auto-install Hermes if not present
- Migrate your persona, memories, and workspace files
- Write working credentials to
~/.hermes/.env - Generate
config.yamlwith model and channel settings - Start Hermes in the background
After it finishes, your existing channels (Telegram, Slack, Discord, WhatsApp) should just work.
What Gets Migrated
Files
| OpenClaw | Hermes |
|---|---|
workspace/SOUL.md |
~/.hermes/SOUL.md |
workspace/MEMORY.md |
~/.hermes/memories/MEMORY.md |
workspace/USER.md |
~/.hermes/memories/USER.md |
workspace/HEARTBEAT.md |
~/.hermes/memories/HEARTBEAT.md |
workspace/IDENTITY.md |
~/.hermes/memories/identity.md |
workspace/AGENTS.md |
~/.hermes/memories/agents_config.md |
workspace/TOOLS.md |
~/.hermes/memories/tools_config.md |
workspace/memory/*.md |
~/.hermes/memories/openclaw_archive/ |
Configuration
| OpenClaw | Hermes |
|---|---|
| Agent model (primary + fallbacks) | config.yaml model settings |
| Channel bindings | config.yaml platform_toolsets |
| Compaction mode | compression settings |
| maxConcurrent | code_execution.max_tool_calls |
| subagents.maxConcurrent | delegation.max_iterations |
| Session retention / cron | session_reset settings |
Credentials
Bot tokens, API keys, and auth tokens are copied to ~/.hermes/.env (chmod 600):
- Telegram bot tokens (per-agent in multi-agent setups)
- Slack bot/app tokens
- Discord bot tokens
- WhatsApp config
- Embedding/memory search API keys (e.g., Gemini)
- Gateway auth tokens
- Custom model provider API keys and base URLs
- Allowed user lists (Telegram, Slack)
Documentation
The tool also generates reference docs in ~/.hermes/memories/:
openclaw_agents.md— multi-agent setup documentationopenclaw_channels.md— per-channel account details (tokens redacted)openclaw_infrastructure.md— gateway, hooks, plugins, custom providers
Multi-Agent Setups
OpenClaw supports multiple agents with different models and channel bindings. When you run the migration:
- The tool lists all agents with their models and channels
- You pick which one to migrate to this Hermes instance
- Only that agent's config, channels, and credentials are migrated
Available OpenClaw agents:
[1] nora
Model: openai/gpt-5
Channels: slack:nora
[2] cleo
Model: anthropic/claude-haiku-4-5
Channels: telegram:cleo
[3] hank
Model: zai/glm-5
Channels: telegram:hank
Select agent to migrate [1-3]:
To migrate multiple agents, use separate Hermes instances:
hermes-migrate --agent cleo
HERMES_HOME=~/.hermes-hank hermes-migrate --agent hank
CLI Reference
usage: hermes-migrate [-h] [--dry-run] [-v] [-a AGENT_ID] [--no-install]
[--no-start] [--version]
options:
--dry-run Preview changes without writing files
-v, --verbose Enable verbose output
-a, --agent ID Specify agent to migrate (skips interactive prompt)
--no-install Skip automatic Hermes installation
--no-start Don't start Hermes after migration
--version Show version
Post-Migration
If everything went smoothly, Hermes is already running and your channels are live. To verify:
- Send a message through your old channel (Telegram, Slack, etc.)
- Check
~/.hermes/.envhas the right credentials - Check
~/.hermes/config.yamlfor model and channel settings - Review
~/.hermes/SOUL.mdto adjust your persona - Browse
~/.hermes/memories/for migrated memories and reference docs
If Hermes didn't auto-start (e.g., CLI not in PATH after fresh install):
source ~/.bashrc
hermes
Development
git clone https://github.com/raulvidis/hermes-migrate
cd hermes-migrate
pip install -e ".[dev]"
# Run tests
pytest
# Run tests with verbose output
pytest -v
# Format
black hermes_migrate/ tests/
# Lint
ruff check .
Project Structure
hermes_migrate/
__init__.py # Package version
cli.py # CLI entry point
migrate.py # All migration logic
tests/
conftest.py # Shared fixtures
test_cli.py # CLI argument parsing tests
test_migrate.py # Migration logic tests (90+ tests)
test_security.py # Redaction and security tests
Requirements
- Python 3.9+
- PyYAML (installed automatically)
- Works on Linux, macOS, and Windows
License
MIT
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file hermes_migrate-1.2.0.tar.gz.
File metadata
- Download URL: hermes_migrate-1.2.0.tar.gz
- Upload date:
- Size: 39.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a69630b87ef294b61dda59e026d05d55b7f5a55a883a817d58c737f0f98f89d0
|
|
| MD5 |
1752a3d4c8ac97d7135ac750bb1f272b
|
|
| BLAKE2b-256 |
2415d6b29ac9e88f3b6a72469f21c163d85f9b623287909b3fd47425ce34fa04
|
File details
Details for the file hermes_migrate-1.2.0-py3-none-any.whl.
File metadata
- Download URL: hermes_migrate-1.2.0-py3-none-any.whl
- Upload date:
- Size: 39.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
97fb8cf9568a7bd8784f66b0de5f8fffea65950cd0c0338709952e1d06fb2b63
|
|
| MD5 |
94c6f9fbc440e73a7faeeddf54e1804d
|
|
| BLAKE2b-256 |
0b76e7759f7bc761b3ce52e0468cc474352ebfb40550e6976b94add216bfd380
|