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

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-permissionswith output piped to Slack via curl. OpenClaw heartbeats were replaced with macOS crontab entries using the same intervals and schedule.
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
👀 See Also

OpenClaw: Your Ultimate Quick Reference Cheatsheet
Dive into the nitty-gritty of OpenClaw with our handy reference cheatsheet. Extract critical features and functionalities to streamline your AI coding experience.

Local LLM Setup Recommendations for OpenClaw
A user shares their configuration for running a local LLM with OpenClaw, using a GB10 for AI processing and a Mac mini for the OpenClaw installation, with specific model and server details.

Post-Mortem: Claude Max + OpenClaw Billing Errors from Stale OAuth and Isolated Cron Jobs
OpenClaw agent breaks randomly due to stale OAuth token blacklisting the entire Anthropic provider and isolated cron jobs hitting the Extra Usage bucket. Full fix: remove manual profile, move cron to main session, clear billing lockout.

Practical Prompt Structure for Claude AI Execution Agents
A developer shares prompt engineering techniques that reduced hallucinations in Claude AI agents performing API calls, data extraction, and multi-step workflows. Key strategies include writing prompts as contracts, dedicating 40% of tokens to error handling, and separating 'wait' from 'stop' conditions.