This skill automates the process of launching Claude Code in a new terminal window with Remote Control enabled. It streamlines the workflow of:
Perfect for switching between projects quickly or sharing Claude Code sessions across devices.
claude-code-launcher /path/to/project
claude-code-launcher /path/to/project --verbose --screenshot
Simply ask:
zsh)claude code command/remote-control command into Claude CodeThe skill handles these common scenarios:
| Issue | Recovery |
|---|---|
| ------- | ---------- |
| Terminal fails to open | Retries once, then reports error |
| Project path doesn't exist | Displays helpful path resolution suggestions |
| Claude Code not installed | Reports missing dependency and suggests brew install claude |
| Claude Code hangs | Timeout after 15 seconds, allows manual intervention |
| Remote Control fails to activate | Logs error details, suggests checking Claude version |
| Terminal permissions denied | Requests user to enable Screen Recording in System Preferences |
| Network connectivity issue | Waits up to 10 seconds for reconnection |
Main automation script using Peekaboo CLI for:
~/.openclaw/workspace/logs/claude-code-launcher.logCommon issues and solutions:
✅ Installed: peekaboo (for UI automation)
✅ Installed: claude CLI (Claude Code)
✅ System: macOS with Terminal.app
✅ Permissions: Screen Recording + Accessibility enabled
To enable permissions:
System Settings → Privacy & Security → Screen Recording → Enable OpenClaw
System Settings → Privacy & Security → Accessibility → Enable OpenClaw
After launching, you'll have:
User: "Launch Claude Code in edikar-standalone with Remote Control"
↓
Skill opens new Terminal
↓
cd ~/dev/edikar-standalone
↓
claude code
↓
/remote-control
↓
[Confirms continuation]
↓
Screenshot captured
↓
User sees:
- Session URL: https://claude.ai/code/session_...
- QR code displayed
- Ready to access from phone/tablet
/remote-control - Activate Remote Control in Claude Codeclaude code - Start Claude Code interactive sessionpeekaboo - macOS UI automation (used internally)Need help? See references/troubleshooting.md for common issues and solutions.
共 1 个版本