Overview
Weaver includes a built-in migration tool that automatically converts your OpenClaw configuration and workspace to Weaver’s format. The migration is safe, non-destructive, and can be run in dry-run mode first.Prerequisites
- Existing OpenClaw installation at
~/.openclaw(or custom location) - Weaver installed and ready
- Backup of your OpenClaw data (recommended)
Quick Migration
The simplest migration command:- Detect your OpenClaw installation automatically
- Convert configuration from OpenClaw to Weaver format
- Migrate workspace files and agent memory
- Backup any conflicting Weaver files
- Show you a summary of all actions
Migration Options
Dry Run (Recommended First Step)
See what will be migrated without making changes:- Files to be copied
- Configuration conversions
- Potential conflicts
- Warnings about unsupported features
Custom Paths
If your OpenClaw or Weaver installation is in a non-standard location:Selective Migration
Config only:Force Mode
Skip confirmation prompt and overwrite without backing up:What Gets Migrated
Configuration
The migration tool converts your OpenClaw config to Weaver format:Supported Providers
- ✅ Anthropic (Claude models)
- ✅ OpenAI (GPT models)
- ✅ OpenRouter
- ✅ Groq
- ✅ Zhipu
- ✅ vLLM (self-hosted)
- ✅ Gemini (Google)
Supported Channels
- ✅ Telegram
- ✅ Discord
- ✅ Feishu
- ✅ DingTalk
- ✅ MaixCam
Configuration Mapping
OpenClaw (camelCase) → Weaver (snake_case):Path Rewriting
Workspace paths are automatically updated:Workspace Files
These files are migrated from each agent’s workspace:- AGENTS.md: Agent coordination notes
- NEST.md: Canvas/UI state
- USER.md: User context and preferences
- TOOLS.md: Tool usage history
- HEARTBEAT.md: Agent health status
Workspace Directories
- memory/: Persistent agent memory and context
- skills/: Custom skills and tool definitions
Migration Process
Here’s what happens during migration:1. Discovery
The tool locates your OpenClaw installation:2. Planning
A migration plan is created:3. Confirmation
You’ll be asked to confirm (unless using--force):
4. Execution
The migration runs:Configuration Merging
If you already have a Weaver config, the migration intelligently merges:- Existing Weaver settings are preserved
- New OpenClaw settings are added only if not already configured
- No data loss: Your current Weaver config takes precedence
Migration Code Reference
Core Types
The migration system uses these key types:Running Programmatically
You can also use the migration package in your own Go code:Common Scenarios
First Time Setup
Migrating from OpenClaw to a fresh Weaver installation:Existing Weaver Installation
Adding OpenClaw config to existing Weaver:Update Workspace Only
Refresh workspace files from OpenClaw:Multiple OpenClaw Instances
Migrate from a specific OpenClaw instance:Troubleshooting
OpenClaw Not Found
Permission Errors
Config Parse Errors
Missing Files
--config-only to skip workspace migration:
Post-Migration Steps
1. Verify Configuration
Check that your config was migrated correctly:- API keys are present
- Model settings are correct
- Workspace paths are updated
2. Test Agent Spawn
Spawn a test agent to ensure everything works:3. Test Channels
If you use channels (Telegram, Discord, etc.), verify they connect:4. Inspect Workspace
Verify workspace files were migrated:5. Update Integrations
If you have scripts or integrations pointing to OpenClaw:Key Differences
Be aware of these differences between OpenClaw and Weaver:Configuration Format
- OpenClaw: Often uses camelCase keys
- Weaver: Uses snake_case keys consistently
Workspace Structure
Both use similar structures, but Weaver adds:- Better isolation guarantees
- Docker integration
- Enhanced memory management
Performance
Weaver is significantly more efficient:- <1s boot time (vs 3-5s in OpenClaw)
- <10MB RAM per agent (vs 50-100MB in OpenClaw)
- Better multi-agent scaling
Rollback
If you need to revert to OpenClaw:- Your OpenClaw installation is unchanged (migration is read-only)
- Backups are created at
~/.weaver/*.bak - Simply stop using Weaver and restart OpenClaw
Getting Help
If you encounter issues during migration:- GitHub Issues: Report migration bugs
- Email: [email protected]
- Community: Join the Developer Discord (after your first merged PR)
Migration Complete?
Start using Weaver with our Quickstart guide