ClawCode: Migrate OpenClaw Agents to Claude Code as a Plugin

ClawCode is a plugin for Claude Code that migrates OpenClaw agents into Anthropic's official CLI, allowing them to run under existing Claude plans without paying additional API fees. The tool was created after the developer's OpenClaw bot was shut down on April 4th due to token restrictions, with alternatives proving too expensive or technically inferior.
Migration Process
The plugin performs a one-way migration from OpenClaw to Claude Code. It reads from ~/.openclaw/workspace/ and imports:
- IDENTITY and SOUL files
- Memory data
- Skills (44 in the developer's case)
- Cron jobs
During import, ClawCode rewrites or skips OpenClaw-specific components that don't map to Claude Code, including gateway functions, sessions_spawn, and HEARTBEAT_OK checks to prevent silent failures. The developer reported the import took about 15 minutes, with most skills coming over successfully, 6 requiring path edits, and 2 being dropped due to gateway dependencies.
Core Features
- Memory System: SQLite with FTS5 search, supporting bilingual recall (Spanish ↔ English cross-language)
- Dream Process: Nightly three-phase system (Light, REM, Deep) that promotes important memories to long-term storage
- Messaging Plugins: Separate MCP servers for WhatsApp, Telegram, Discord, iMessage, and Slack
- WebChat UI: Optional interface alongside CLI
- Agent Management:
/agent:doctorcommand for system checks,/agent:importfor migration - Automation: Slash commands, hooks, and reminders
Technical Details
ClawCode runs under Claude Code's normal Plan usage and Terms of Service. Requirements include Node 18+ and macOS/Linux. The repository is available at github.com/crisandrews/ClawCode under MIT license. The developer emphasizes this is not affiliated with or endorsed by Anthropic.
Important Notes
/agent:importis opinionated about which OpenClaw patterns it rewrites versus skips- Check
IMPORT_BACKLOG.mdafter import for items not migrated - Crons only execute while Claude Code is open unless you run
/agent:service installfor launchd/systemd integration
📖 Read the full source: r/openclaw
👀 See Also

Single-call MCP pipeline reduces Claude Code token usage by 74%
A developer built a context engine MCP server that provides Claude Code with a dependency graph of codebases, reducing token usage by 65% initially. A new single-call pipeline further cuts tokens by 74% by eliminating multiple round trips and deduplicating results server-side.

cowork-session-sync v1.0.0 provides session continuity for Claude Cowork
cowork-session-sync v1.0.0 is a tool that maintains session continuity for Claude Cowork by archiving raw transcripts, distilling them to Markdown, and enabling one-phrase bootstrap with 'catchup-bunny' to restore full context.
Claude Code Skill Tax: 2,596 Installed Skills, 40 Used, $91/Month Wasted
Every installed Claude Code skill loads into every session's system prompt. One user measured 102,651 tokens loaded per session with 98.6% never used, costing ~$91/month. An open-source tool, skill-tax, audits usage and cost.

NaNMesh MCP checks GitHub issues before Claude recommends libraries
NaNMesh MCP is an open-source Model Context Protocol server that crawls GitHub Issues, Stack Overflow, and Reddit for known bugs in development tools. When Claude recommends a library, it can check for real problems before integration.