Claude Delegate
Give Claude back to OpenClaw.
Use this skill when Claude Code should run as a local delegated worker, not as an ACP chat harness.
The whole point is simple: third-party harnesses do not reliably get Claude subscription access, but OpenClaw operators still want Claude-quality work inside their agent system.
Stable entrypoints
- Wrapper:
scripts/claude-delegate.sh - Profile wrapper:
scripts/cc-profile.sh - Orchestrator:
scripts/cc-orchestrator.sh - Low-level runner:
scripts/run-task.sh
Default flow
- Read
references/setup.mdthe first time you install or port this skill. - Configure
profiles.json, or pointCLAUDE_DELEGATE_PROFILESat a host-local profiles file. - Keep local delegate instructions in the nearest
CLAUDE.delegate.mdfiles. The wrapper now tells Claude to discover/read those plus nearbyAGENTS.md,TOOLS.md, andREADME.mddocs before substantive work. - Dispatch work through
scripts/claude-delegate.sh dispatch <profile> <budget> <model> <label> "<task>". - Monitor with
poll,result,list, ordoctor. - Use
resumeto continue the same Claude session instead of starting over.
When to prefer this over ACP
Prefer this skill when you want:
- a boring local wrapper around Claude CLI
- a non-root runner user with synced auth/binary state
- bounded filesystem access through a chosen workdir
- cheap monitoring and resume without a chat-thread harness
Prefer ACP when the user explicitly asked for Claude Code as a chat/thread runtime.
Files to load when needed
- Setup, auth, env knobs, and profile customization:
references/setup.md - Delegate bootstrap guidance for this repo:
CLAUDE.delegate.md
Notes
scripts/cc-profile.shsupportsCLAUDE_DELEGATE_PROFILES=/abs/path/to/profiles.json.- Profile paths support
~and environment variable expansion. scripts/ensure-nonroot-delegation.shsupports env overrides for source paths if your Claude or acpx installs live somewhere else.- Delegate bootstrap is on by default. Disable with
CLAUDE_DELEGATE_BOOTSTRAP=0or change the instruction filename withCLAUDE_DELEGATE_DOC_BASENAME.