首页龙虾技能列表 › OpenClaw GitHub Copilot — 使用 GitHub Copilot 作为 OpenClaw 编码代理

🐙 OpenClaw GitHub Copilot — 使用 GitHub Copilot 作为 OpenClaw 编码代理

v1.0.0

此技能使 GitHub Copilot 通过内置的 copilot-bridge 成为 OpenClaw 的默认编码代理。适用于首次设置 Copilot、切换默认模型、诊断认证或别名问题。

1· 102·0 当前·0 累计
by @yanglinzhen·MIT-0
下载技能包 项目主页
License
MIT-0
最后更新
2026/3/24
安全扫描
VirusTotal
无害
查看报告
OpenClaw
安全
high confidence
该技能的文件、安装规范和运行指令与其声明的目的(使 GitHub Copilot 成为 OpenClaw 默认)一致,不请求无关的凭据或访问权限。
评估建议
此技能如其所言:运行 OpenClaw 命令,并在请求时启动官方的 GitHub Copilot 交互式登录流。安装或运行前,请确保信任 `openclaw` npm 包的来源(或从官方渠道安装 OpenClaw)、准备好交互式设备/代码登录(需要真实 TTY)以及了解脚本将修改 OpenClaw 默认模型/别名。无证据表明该技能收集或泄露超出正常认证流程的秘密。...
详细分析 ▾
用途与能力
Name/description describe switching and configuring OpenClaw to use GitHub Copilot. Required binary is `openclaw` and the scripts solely call `openclaw` commands (models list/status/auth/set/aliases). The node install for an `openclaw` CLI is consistent with this purpose.
指令范围
SKILL.md and included scripts limit actions to calling the OpenClaw CLI and parsing its outputs, checking for a TTY before interactive login, and optionally adding an alias or switching the default model. The instructions do not read arbitrary system files, environment variables, or send data to external endpoints beyond the official OpenClaw/GitHub auth flow.
安装机制
Install spec is a Node package named `openclaw` that creates an `openclaw` binary — this is a plausible distribution method. This is reasonable, but as with any package from a public registry, users should verify they are installing the official OpenClaw package from a trusted source (package provenance/signature) if they do not already have `openclaw` installed by other means.
凭证需求
The skill declares no required environment variables or credentials. The only credential-related action is invoking `openclaw models auth login-github-copilot`, which uses the official interactive/device-code flow and requires a TTY — appropriate and proportional for the stated task.
持久化与权限
The skill is not always-enabled and is user-invocable. It does not request persistent system-wide privileges or modify other skills' configuration beyond using OpenClaw commands to change model/alias state (the intended effect).
安全有层次,运行前请审查代码。

License

MIT-0

可自由使用、修改和再分发,无需署名。

运行时依赖

无特殊依赖

版本

latestv1.0.02026/3/24

首次公开发布:为使用 GitHub Copilot 作为默认 OpenClaw 代理提供指导式设置、认证和激活脚本。

● 无害

安装命令 点击复制

官方npx clawhub@latest install openclaw-github-copilot
镜像加速npx clawhub@latest install openclaw-github-copilot --registry https://cn.clawhub-mirror.com

技能文档

使用此技能使 GitHub Copilot 成为最简单的 OpenClaw 默认代理。该技能适用于四种场景:

  • OpenClaw 中的首次 GitHub Copilot 设置
  • 切换默认模型为 Copilot
  • 修复常见 copilot-bridge/github-copilot 认证或别名问题
  • 为用户提供一条简短的命令路径代替手动步骤

假设

  • 已安装 openclaw
  • 用户拥有用于登录的 GitHub 账户的 GitHub Copilot 访问权限
  • 代理更喜欢 OpenClaw CLI 命令而不是手动编辑配置文件

快速路径

从单个诊断命令开始:
bash {baseDir}/scripts/copilot-quickstart.sh --probe
如果用户希望 Copilot 成为默认模型且认证已有效:
bash {baseDir}/scripts/copilot-quickstart.sh --probe --activate
如果认证丢失或过期且您在交互式 TTY 中:
bash {baseDir}/scripts/copilot-quickstart.sh --probe --login --activate

推荐工作流

1. 首先诊断

运行:
bash {baseDir}/scripts/copilot-status.sh
使用更强大的实时探测当认证新鲜度很重要时:
bash {baseDir}/scripts/copilot-status.sh --probe

2. 仅使用官方流进行认证

如果模型存在但认证丢失或过期,使用:
openclaw models auth login-github-copilot
重要
  • 需要交互式 TTY
  • 可能需要浏览器/设备代码步骤
  • 不要假设可以在后台静默完成

3. 切换默认模型

如果用户明确希望 Copilot 成为默认模型:
bash {baseDir}/scripts/copilot-activate.sh
或使用包装器:
bash {baseDir}/scripts/copilot-quickstart.sh --activate

4. 确认结果

通过以下命令验证:
openclaw models status --plain
配置的默认应该解析为 copilot-bridge/github-copilot。如果当前会话仍然表现得像旧模型,请启动一个新的 OpenClaw 会话。技能和默认模型更改在新会话中最可靠。

良好的触发短语

使用此技能的请求示例:
  • "让 OpenClaw 用 GitHub Copilot"
  • "把默认 agent 切到 Copilot"
  • "检查 Copilot bridge 配好了没有"
  • "GitHub Copilot 在 OpenClaw 里怎么登录"
  • "给我一个最简单的 Copilot 配置流程"
  • "copilot-auto 不生效"

实用响应模式

帮助用户时,保持答案的操作性:
  • 表明模型是否存在
  • 表明它是否已经是默认
  • 提供下一个确切命令
  • 仅在 CLI 流不够时提及手动别名清理或配置编辑

示例

GitHub Copilot 这个模型已经在 OpenClaw 里了,但当前默认模型不是它。直接执行 bash {baseDir}/scripts/copilot-quickstart.sh --probe --activate。如果后面提示鉴权失效,再跑 openclaw models auth login-github-copilot

参考

  • references/setup-guide.md - 完整的首次设置指南
  • references/troubleshooting.md - 缺失模型、别名、认证和会话行为的故障排除
  • references/publish-checklist.md - 发布到 ClawHub 的发布检查清单
数据来源:ClawHub ↗ · 中文优化:龙虾技能库
OpenClaw 技能定制 / 插件定制 / 私有工作流定制

免费技能或插件可能存在安全风险,如需更匹配、更安全的方案,建议联系付费定制

了解定制服务