Migrating OpenClaw agents to Claude Code after third-party harness deprecation

✍️ OpenClawRadar📅 Published: April 13, 2026🔗 Source
Migrating OpenClaw agents to Claude Code after third-party harness deprecation
Ad

Anthropic ended support for third-party harnesses, requiring users to migrate their OpenClaw agents to Claude Code. One developer successfully moved 17 agents (10 platform promo agents and 7 content pipeline crons) running on a Max subscription in about four hours.

Migration steps

The developer created a CLAUDE.md file in each OpenClaw workspace directory as the entry point, telling Claude "you are this agent, read HEARTBEAT.md, follow it step by step." Each file was about 20 lines.

A bash wrapper script was created to run:

claude -p --model sonnet --dangerously-skip-permissions

with output piped to Slack via curl. OpenClaw heartbeats were replaced with macOS crontab entries using the same intervals and schedule.

Ad

Technical details

The claude binary is located at ~/.local/bin/claude, which isn't in cron's default PATH. Since cron can't access macOS Keychain, the OAuth token must be set as an environment variable with CLAUDE_CODE_OAUTH_TOKEN in crontab.

The --bare flag breaks authentication for subscription users by skipping OAuth.

The one-liner per agent was:

claude -p --model sonnet --dangerously-skip-permissions --append-system-prompt "You are the Reddit agent. Read CLAUDE.md first, follow HEARTBEAT.md." "Execute your heartbeat."

Browser automation

Agents using OpenClaw's CDP browser can continue using the same exec openclaw browser commands if the gateway remains running, or switch to Claude in Chrome or Playwright MCP.

The migration preserved all existing agent logic files: HEARTBEAT.md, PLAYBOOK.md, SOUL.md, and BROWSER-*.md files required zero rewriting.

📖 Read the full source: r/openclaw

Ad

👀 See Also

Claude Code Skills vs. Custom Agents: A Mental Model Based on Task Consistency
Guides

Claude Code Skills vs. Custom Agents: A Mental Model Based on Task Consistency

A Reddit user clarifies the distinction between Claude Code skills and custom agents: skills execute the same steps every time, while custom agents require reasoning and adaptation. The post also covers parallel subagents, delegation, hooks, and building blocks.

OpenClawRadar
Skill-writing principles for Claude Code from 159 open-source skills
Guides

Skill-writing principles for Claude Code from 159 open-source skills

A developer shares 10 principles for writing effective skills for Claude Code, based on building and maintaining an open-source registry with 159 skills. The principles include practical approaches like using folders instead of single files, adding gotchas sections, and implementing on-demand hooks.

OpenClawRadar
A Solo Developer's Two-Phase Prompting Method for Large Projects with Claude AI
Guides

A Solo Developer's Two-Phase Prompting Method for Large Projects with Claude AI

A solo developer shares a workflow using Claude Chat as the architect and Claude Code as the builder, with a two-phase prompting method that includes failure mode analysis and verification gates.

OpenClawRadar
12 OpenClaw SOUL.md and STYLE.md Templates with Practical Lessons
Guides

12 OpenClaw SOUL.md and STYLE.md Templates with Practical Lessons

A developer created 12 OpenClaw agent templates for common use cases, each following the official 4-section spec, and identified key lessons including the necessity of STYLE.md for defining communication patterns and the importance of specific boundaries over vague personality traits.

OpenClawRadar