Overview
AgentOS provides comprehensive migration from OpenClaw configurations. The migration tool reads your OpenClaw JSON5 config and converts agents, channels, models, tools, cron jobs, skills, and sessions to AgentOS format.Config Detection: The migration scanner looks for OpenClaw configs in standard locations:
~/.openclaw/, ~/.clawdbot/, ~/.moldbot/, ~/.moltbot/What Gets Migrated
| OpenClaw Component | AgentOS Equivalent | Completeness |
|---|---|---|
| Agents | agents/*/agent.toml | 95% |
| Channels | config/channels/*.toml | 90% |
| Models | Agent model config | 100% |
| Tools | integrations/*.toml | 85% |
| Cron Jobs | hands/*/HAND.toml | 90% |
| Skills | skills/*/SKILL.md | 80% |
| Sessions | data/sessions/*.json | 100% |
Quick Migration
Execute Migration
agents/*/agent.toml- Agent configurationsconfig/channels/*.toml- Channel configurationsconfig/models/*.toml- Model configurationsintegrations/*.toml- Tool integrationshands/*/HAND.toml- Cron jobs as handsskills/*/SKILL.md- Skill filesdata/sessions/*.json- Session historydata/migrations/openclaw-{timestamp}.json- Migration report
OpenClaw Config Format
Example OpenClaw Config
~/.openclaw/openclaw.json
Migration Examples
Example 1: Agent Migration
- Before (OpenClaw)
- After (AgentOS)
Example 2: Channel Migration
- Before (OpenClaw)
- After (AgentOS)
Example 3: Tool Migration
- Before (OpenClaw)
- After (AgentOS)
Example 4: Cron Job Migration
- Before (OpenClaw)
- After (AgentOS)
Tool Mapping
OpenClaw tools are automatically mapped to AgentOS equivalents:Model Mapping
OpenClaw model names are mapped to AgentOS models:| OpenClaw Model | AgentOS Model |
|---|---|
gpt-4, gpt-4o | claude-sonnet-4-6 |
gpt-4o-mini, gpt-3.5-turbo | claude-haiku-3.5 |
claude-opus, claude-3-opus | claude-opus-4 |
claude-sonnet, claude-3-sonnet | claude-sonnet-4-6 |
claude-haiku, claude-3-haiku | claude-haiku-3.5 |
gemini-pro | claude-sonnet-4-6 |
llama-3 | llama-3.3-70b |
mixtral | mixtral-8x7b |
Post-Migration Steps
Review Migration Report
- Migrated: Successfully converted items
- Skipped: Items that couldn’t be auto-migrated (need manual review)
- Errors: Failed migrations (need fixing)
Implement Custom Tools
If you have custom OpenClaw tools, implement them as AgentOS functions:
src/openclaw-tools.ts
Advanced Migration
Custom Config Path
Specify config path explicitly:Selective Migration
Migrate specific components:Programmatic Migration
migrate.ts
JSON5 Config Parsing
OpenClaw configs support JSON5 (comments, trailing commas, unquoted keys). The migration tool handles:Common Issues
Config file not found
Config file not found
If migration can’t find your OpenClaw config:
JSON5 parse error
JSON5 parse error
If config has syntax errors:
Custom tool not working
Custom tool not working
Implement custom tools as AgentOS functions:Update agent config:
Channel credentials invalid
Channel credentials invalid
Update channel tokens after migration:
Cron schedule not working
Cron schedule not working
Verify cron schedule syntax:
Migration Checklist
- Locate OpenClaw config file
- Run
agentos migrate scan - Preview with
agentos migrate openclaw --dry-run - Execute
agentos migrate openclaw - Review report:
agentos migrate report - Customize system prompts in
agents/*/agent.toml - Update channel credentials in
config/channels/*.toml - Implement custom tools in
src/tools.ts - Test all agents:
agentos agent listandagentos chat <name> - Test cron jobs:
agentos hand run <name> - Test channels:
agentos channel test <name> - Configure API keys:
agentos config set-key - Backup original config:
cp ~/.openclaw ~/.openclaw.backup - (Optional) Remove OpenClaw:
rm -rf ~/.openclaw
Next Steps
Creating Agents
Customize your migrated agents
Creating Tools
Build custom tools
Testing
Test your migrated setup
Migration Overview
General migration guide