migrate command automates migration from OpenClaw to Weaver, transferring configuration settings and workspace files.
Usage
Options
Preview migration without making changesShows what would be migrated and displays summary.
Re-sync workspace files from OpenClawRepeatable operation that updates workspace files without touching config.Useful for keeping workspace in sync during transition period.
Migrate only configuration fileSkips workspace file copying.
Migrate only workspace filesSkips configuration migration.
Skip confirmation promptsUseful for automation and scripts.
Override OpenClaw home directory
Override Weaver home directory
Migration Process
Migration handles:1. Configuration Mapping
Transforms OpenClaw config to Weaver format:- Providers: API keys and endpoints
- Agent settings: Model, temperature, max tokens
- Channels: Telegram, Discord, Slack tokens
- Gateway: Host and port settings
2. Workspace Files
Copies directory structure:3. Compatibility Checks
Verifies:- OpenClaw config exists and is valid JSON
- Target directories are writable
- No conflicts with existing Weaver config (unless
--force)
Examples
Exit Codes
| Code | Reason |
|---|---|
| 0 | Success - migration completed |
| 1 | OpenClaw not found |
| 1 | Invalid configuration |
| 1 | Permission denied |
| 1 | File system error |
Error Handling
OpenClaw Not Found
- Verify OpenClaw is installed
- Use
--openclaw-hometo specify custom path - Run
weaver onboardinstead for fresh setup
Invalid Configuration
weaver onboard.
Permission Denied
Existing Weaver Config
y- Overwrite with migrated confign- Abort migration- Use
--forceto skip prompt
Migration Mapping
OpenClaw → Weaver field mappings:| OpenClaw Field | Weaver Field | Notes |
|---|---|---|
openrouter_api_key | providers.openrouter.api_key | Direct copy |
anthropic_api_key | providers.anthropic.api_key | Direct copy |
model | agents.defaults.model | Default model |
temperature | agents.defaults.temperature | Inference parameter |
telegram_token | channels.telegram.token | Bot token |
discord_token | channels.discord.token | Bot token |
gateway_port | gateway.port | Server port |
workspace | workspace | Path mapping |
Post-Migration
After migration:Rollback
If migration fails or causes issues:Idempotency
Migration is safe to run multiple times:- First run: Creates Weaver config and copies workspace
- Subsequent runs: Prompts for overwrite or use
--force --refresh: Always safe, updates workspace only
Related Commands
weaver onboard- Fresh setup without OpenClawweaver status- Verify migration
Migration does not modify or delete OpenClaw files. Your OpenClaw installation remains intact.