🚀

一键启动远程协作编码

Claude Code Launcher · v1.0.0
入口已确认,内容待校验 文件树里有 SKILL.md,但正文还没采回,frontmatter 未核对。
开发 安全 B 级 作者 qusaiisaleem 公开目录收录
1.4k 下载 0 安装 4.9k 收藏 9 浏览

简介

一键启动 Claude Code 并开启远程控制,实现跨设备无缝协作编程,支持自动化终端管理与错误恢复

原始描述

Launch Claude Code in a new terminal window with Remote Control enabled. Use when opening a project for interactive coding sessions where you need to access...

通过你的 Agent 添加

安装目录:claude-code-launcher/(目录名取自 SKILL.md 的 frontmatter name,不是 URL 里的 slug)。

点「快速安装」复制一段指令贴给你的 Agent:它会先下载到 /tmp、把文件清单和校验值给你看,你确认之后才解压安装。不会一步装完、也不改系统其它位置。

或者手动安装

Claude Code~/.claude/skills/claude-code-launcher/
Codex CLI~/.codex/skills/claude-code-launcher/
DeepSeek Harness~/.agents/skills/claude-code-launcher/

包是「根级 SKILL.md + 作者附带的文件」,解压到上面的 <slug>/ 目录即可; 目录名不用换,也不要把包直接解压到 skills 根目录。 技能申请的权限由作者决定:装之前先看清单里有没有脚本、它会读写什么。

中文使用说明 来自收录源

核心用法

Claude Code Launcher 是一个 macOS 自动化技能,专为需要远程访问和跨设备协作的开发场景设计。用户只需指定项目路径,即可自动完成:开启新终端 → 导航到项目目录 → 启动 Claude Code → 激活 Remote Control 模式 → 捕获会话状态。支持通过自然语言指令触发,如"在 proposal-generator 项目中启动 Claude Code 并开启远程控制"。

显著优点

  1. 零摩擦启动:将原本需要多次手动操作的流程(打开终端、cd、启动 claude、输入 /remote-control)压缩为单次指令
  2. 跨设备无缝衔接:Remote Control 激活后生成会话 URL 和二维码,支持手机、平板等设备扫码接入同一 Claude 会话
  3. 完善的错误恢复:内置 6 类常见故障的自动检测与修复机制,包括权限缺失、网络中断、Claude Code 未安装等
  4. 会话可追踪:所有操作记录至 ~/.openclaw/workspace/logs/claude-code-launcher.log,便于审计与故障排查

潜在局限

  • 平台锁定:仅支持 macOS + Terminal.app,Linux/Windows 用户无法使用
  • 依赖外部 CLI:需要预装 peekaboo(UI 自动化)和 claude(Anthropic 官方 CLI),安装失败则整个技能失效
  • 权限门槛高:必须手动授予屏幕录制和辅助功能权限,首次配置较繁琐
  • 无 headless 模式:必须打开真实图形终端,无法用于 CI/CD 等纯自动化场景
  • 网络依赖:Remote Control 需要稳定联网,局域网隔离环境无法使用

适合人群

  • 频繁切换多项目的全栈开发者
  • 需要手机/平板查看或轻量编辑代码的移动办公场景
  • 远程 pair programming 或需要向非技术人员展示 Claude 会话的协作场景

常规风险

风险类型 说明
权限过度授予 屏幕录制权限可被恶意利用捕捉敏感信息
会话 URL 泄露 Remote Control URL 若被截获,他人可加入会话
自动化误操作 脚本在错误目录执行 claude code 可能污染工作区
依赖版本漂移 claude CLI 更新可能导致 /remote-control 命令行为变化
日志敏感信息 日志文件可能记录项目路径等元数据,需定期清理

技能正文


name: claude-code-launcher description: Launch Claude Code in a new terminal window with Remote Control enabled. Use when opening a project for interactive coding sessions where you need to access and control Claude from multiple devices. Handles terminal automation, project navigation, Claude Code startup, Remote Control activation, user prompts, and screenshot capture. Supports error recovery and logs all operations.

Claude Code Launcher

Overview

This skill automates the process of launching Claude Code in a new terminal window with Remote Control enabled. It streamlines the workflow of:

  1. Opening a fresh terminal window
  2. Navigating to a project directory
  3. Starting Claude Code
  4. Activating Remote Control mode
  5. Handling user confirmations (if needed)
  6. Capturing and displaying the final state

Perfect for switching between projects quickly or sharing Claude Code sessions across devices.

Usage

Basic Launch

claude-code-launcher /path/to/project

With Options

claude-code-launcher /path/to/project --verbose --screenshot

From OpenClaw Chat

Simply ask:

  • "Launch Claude Code in proposal-generator with Remote Control"
  • "Open the ai-native-lms project and enable Remote Control"
  • "Start Claude Code in ~/dev/edikar-standalone"

How It Works

Step 1: Terminal Preparation

  • Opens a new Terminal window using macOS automation
  • Ensures fresh shell environment (zsh)
  • Waits for the window to be ready

Step 2: Project Navigation

  • Changes directory to the specified project path
  • Validates that the directory exists
  • Reports any path resolution errors

Step 3: Claude Code Launch

  • Executes claude code command
  • Waits for Claude Code interface to fully load (~5 seconds)
  • Monitors for startup errors (missing dependencies, permission issues)

Step 4: Remote Control Activation

  • Types /remote-control command into Claude Code
  • Presses Enter to submit
  • Waits for Remote Control UI to appear (~3-6 seconds)

Step 5: User Confirmation

  • Detects the "Continue" option in Remote Control menu
  • Presses Enter to confirm (or prompts user if needed)
  • Validates that Remote Control is now active

Step 6: Session Capture

  • Takes a screenshot of the final state
  • Displays the Remote Control session URL
  • Extracts and displays QR code information
  • Reports success or any errors encountered

Error Handling

The 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

Resources

scripts/launch_claude_code.sh

Main automation script using Peekaboo CLI for:

  • Terminal window management
  • Keyboard/text input automation
  • Screenshot capture
  • Error detection and recovery
  • Logging all operations to ~/.openclaw/workspace/logs/claude-code-launcher.log

references/troubleshooting.md

Common issues and solutions:

  • Permission setup (Screen Recording, Accessibility)
  • Claude Code installation and updates
  • Terminal app configuration
  • Network troubleshooting

Prerequisites

✅ 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

What You Get

After launching, you'll have:

  • ✅ New Terminal window with Claude Code running
  • ✅ Remote Control session active and shareable
  • ✅ Session URL for accessing from other devices
  • ✅ QR code for mobile devices (scan in Claude app)
  • ✅ Full context of your project available to Claude
  • ✅ Capability to pause/resume across devices

Example Workflow

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

Related Commands

  • /remote-control - Activate Remote Control in Claude Code
  • claude code - Start Claude Code interactive session
  • peekaboo - macOS UI automation (used internally)

Need help? See references/troubleshooting.md for common issues and solutions.

正文来自原始发布页, 版权归作者所有,许可未标注。 权利人认为有不妥,可申请下架。

标签

claude-coderemote-controlterminal-automationmacoscross-deviceai-codingpeekabooworkflow-automationpair-programming

同类 Skill