GongYuanCaiJi/dsh-copilot-sdk ↗★ 0
dsh-copilot-sdk
桥接 GitHub Copilot 订阅到 DeepSeek Harness(移植自 github/copilot-sdk)
AI 분석
核心用途是复用已有的 GitHub Copilot 订阅来驱动 DSH 会话。适合拥有 Copilot 订阅并希望在 DSH 中使用其支持的模型的用户。需配置 GitHub Token。
설치
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:GongYuanCaiJi/dsh-copilot-sdk使用
dsh 侧命令: /copilot status /copilot models /copilot stop
作为模型 provider: 安装后,会话的模型选择器里会出现 copilot provider
及其订阅模型(也可在 agent 配置里指定 provider: copilot + 具体模型 id)。
配置
全部走环境变量(与上游 SDK 一致):
COPILOT_GITHUB_TOKEN/GH_TOKEN/GITHUB_TOKEN—— GitHub 认证 token(缺省用copilotCLI 的已登录用户)- BYOK:在 session/agent 配置里用 SDK 的 provider 配置指定你自己的 API key(OpenAI / Anthropic / 其他)
配置
全部走环境变量(与上游 SDK 一致):
COPILOT_GITHUB_TOKEN/GH_TOKEN/GITHUB_TOKEN—— GitHub 认证 token(缺省用copilotCLI 的已登录用户)- BYOK:在 session/agent 配置里用 SDK 的 provider 配置指定你自己的 API key(OpenAI / Anthropic / 其他)
Usage
dsh-side commands: /copilot status /copilot models /copilot stop
As a model provider: after install, the session model selector shows the
copilot provider and its subscription models (or set provider: copilot plus
the model id in your agent config).
Configuration
All via environment variables (same as the upstream SDK):
COPILOT_GITHUB_TOKEN/GH_TOKEN/GITHUB_TOKEN— GitHub auth token (defaults to the logged-incopilotCLI user)- BYOK: use the SDK's provider config with your own API key (OpenAI / Anthropic / others) in the session/agent config
Configuration
All via environment variables (same as the upstream SDK):
COPILOT_GITHUB_TOKEN/GH_TOKEN/GITHUB_TOKEN— GitHub auth token (defaults to the logged-incopilotCLI user)- BYOK: use the SDK's provider config with your own API key (OpenAI / Anthropic / others) in the session/agent config