clawpilot-pair
ClawPilot Pair
Use this skill for PocketClaw pairing and first-time host setup. ClawPilot is a multi-runtime host agent and may pair:
openclawhermesccconnect
When To Use
Use this skill when the user wants any of the following:
- Pair PocketClaw with the current host
- Install or upgrade
clawpilot - Check whether the host is ready for pairing
- Generate a new pairing code
Do not use this skill for normal chat replies, file delivery, or general diagnostics unrelated to pairing.
Required Workflow
Follow this order exactly. Do not skip checks.
- Install or upgrade ClawPilot:
npm install -g @rethinkingstudio/clawpilot@latest
- Determine the target runtime.
- Use
openclaw,hermes, orccconnect. - If the user does not specify and the host only has one runtime, use that runtime.
- If multiple runtimes are available and the user did not specify, ask which runtime to pair.
- Run runtime-specific readiness checks before pairing.
For openclaw:
- Verify OpenClaw config can be found.
- Verify gateway auth is usable.
- Verify the local gateway is reachable.
- If auth or gateway reachability fails, stop and report the blocking step with the next command or config fix.
For hermes:
- Verify the
hermesCLI exists. - Verify
hermes gateway statusworks. - If the gateway service is not installed, tell the user to run:
hermes gateway install
hermes gateway start
- If Hermes API readiness fails, report the exact blocking step and the next command to run.
For ccconnect:
- Install or upgrade cc-connect before pairing:
npm install -g cc-connect@latest
- Verify the
cc-connectcommand is available:
cc-connect --help
- Configure cc-connect using the official AI-agent-friendly guide:
Follow https://raw.githubusercontent.com/chenhg5/cc-connect/refs/heads/main/INSTALL.md to install and configure cc-connect.
- The official guide normally configures
~/.cc-connect/config.tomland may usecc-connect web; it does not automatically install the cc-connect daemon. - Make sure at least one project is configured with the intended coding agent and
work_dir. - Verify the selected coding agent is installed and runnable before pairing. For example:
- Claude Code:
claude --version, then a minimalclaude -p "test"if safe for the user's environment. - Codex:
codex --version. - Gemini:
gemini --version. - If the agent type is unclear, ask the user which coding agent they want cc-connect to launch. Only default to
claudecodewhen the user has not chosen another agent.
- Claude Code:
- Validate
~/.cc-connect/config.tomlbefore installing the daemon:[[projects]]exists.[projects.agent] typematches the coding agent the user actually has.[projects.agent.options] work_direxists and is writable.- Do not leave
work_dir = "/"; prefer the user's chosen workspace,$HOME/Desktop, or another writable user directory. [management] enabled = truewith a port and token.[bridge] enabled = truewith a port and token.
- Install cc-connect as a daemon for stable PocketClaw pairing. Do not start it with
cc-connect &, shell background jobs, orterminal(background=true), because those processes can die when the parent shell session ends. - After installing or upgrading cc-connect, or after changing
~/.cc-connect/config.toml, clear any old daemon and reinstall it with the explicit config path:
cc-connect daemon stop || true
cc-connect daemon uninstall || true
cc-connect daemon install --config ~/.cc-connect/config.toml
cc-connect daemon status
- Verify the daemon exposes the Bridge port before pairing:
lsof -i :9810
- If cc-connect crashes or status is unclear, inspect daemon logs instead of guessing:
cc-connect daemon logs -f
- Do not pair as
ccconnectuntilcc-connectis installed, runnable, configured, daemonized, and the Management API and Bridge settings are present. - Let
clawpilot pair --runtime ccconnectvalidate the local cc-connect Management API and Bridge settings needed by PocketClaw. - If cc-connect cannot be installed, configured, daemonized, or started, stop and report that as the blocking step.
- Only after readiness checks pass, generate the pairing code:
clawpilot pair --runtime openclaw
or
clawpilot pair --runtime hermes
or
clawpilot pair --runtime ccconnect
Notes:
clawpilot pair --runtime hermeswill prepare the local Hermes API automatically if possible.clawpilot pair --runtime ccconnectexpectscc-connectto be installed, configured, and running through its daemon first, then validates the local cc-connect Management API and Bridge configuration.- Use
--code-onlyonly when the user explicitly wants the code without QR output.
Output Rules
- If successful, put the final pairing code on its own line.
- Keep explanations brief and action-oriented.
- If blocked, say what failed, what was checked, and the next command or config change needed.
Do Not
- Do not invent ClawPilot flags or unsupported commands.
- Do not skip runtime readiness checks and jump straight to pairing.
- Do not return a vague failure such as "configuration error" without naming the missing item.
- Do not force OpenClaw-specific checks when the user is pairing Hermes or ccconnect.
- Do not modify unrelated host settings.
More from rethinking-studio/clawpilot-skills
clawpilot-send
Use when the current PocketClaw conversation needs a local or generated file sent back to mobile, regardless of whether the host runtime is OpenClaw or Hermes. Use a single high-level ClawPilot send command and do not expose session routing details.
18clawpilot-config
Use when the user needs help locating, validating, or minimally fixing ClawPilot host configuration required for pairing, auth, or host-side operations for OpenClaw, Hermes, or cc-connect Coding Agent hosts. Explain exactly what is missing and the most direct fix.
17clawpilot-doctor
Use when the user wants to diagnose or repair ClawPilot host issues for OpenClaw, Hermes, or cc-connect Coding Agent hosts, including status checks, logs, restart, update, and self-repair. Focus on the concrete blocking issue and the next corrective action.
16