lujianjun19/dsh-llm-github-copilot
dsh-llm-github-copilot
dsh-llm-github-copilot is a community DeepSeek Harness plugin. Read the repository README before installing.
Install
npx @deepseek-ai/dsh plugin --profile web add @lujianjun19/dsh-llm-github-copilotRestart `dsh web` after install. Bundle APIs can change during the developer preview.
README badge
[](https://dshhub.dev/plugins/dsh-llm-github-copilot)Paste this into your README. The star count updates with every catalog sync.
From the README
Excerpt from lujianjun19/dsh-llm-github-copilot, cleaned of badges and images.
dsh-llm-github-copilot
English | 中文
GitHub Copilot LLM adapter for DeepSeek Harness.
Sign in with your GitHub account and use every Copilot model — including GPT-4.1, Claude Sonnet, Gemini, and GPT-5 family — directly inside DeepSeek Harness. Vision-capable models accept pasted or dragged images in the chat composer.
Install
From npm (recommended)
dsh plugin --profile web add @lujianjun19/dsh-llm-github-copilot
From GitHub
dsh plugin --profile web add github:lujianjun19/dsh-llm-github-copilot
pnpm 10 and newer block git dependency build scripts by default. If installation asks you to approve the package build, add the exact package key it reports to the profile's pnpm-workspace.yaml:
allowBuilds:
dsh-llm-github-copilot: true
Then repeat the install command.
After installation, register the plugin in the profile's cordis.patch.yml:
- insert:
- id: llm-github-copilot
name: '@lujianjun19/dsh-llm-github-copilot'
Restart DSH to activate:
dsh web
Update
The DSH profile uses pnpm internally, and its lockfile pins the exact installed version. Re-running dsh plugin add alone may not pick up a newer release. Use either of the following commands from any directory:
# Using npm (simplest — no extra flags needed)
npm install --prefix ~/.dsh/profiles/web @lujianjun19/dsh-llm-github-copilot@latest
# Using pnpm
pnpm add --dir ~/.dsh/profiles/web @lujianjun19/dsh-llm-github-copilot@latest --no-frozen-lockfile
Then restart DSH:
dsh web
To confirm the installed version, open Settings → GitHub Copilot in the Harness browser UI — the version number is shown at the bottom of the panel.
Sign in
Run the login command inside the Harness chat:
/copilot-login
Follow the instructions — open the verification URL in your browser, enter the displayed code, and authorize the GitHub App. The token is stored automatically once you complete authorization. Run /copilot-status to confirm the connection and see the available models.
To sign out:
/copilot-logout
You can also set the token directly as an environment variable (useful for CI or headless setups):
export GITHUB_COPILOT_OAUTH_TOKEN=<your-github-oauth-token>
Supported token types:
| Prefix | Source |
|---|---|
gho_ | OAuth token (gh auth login) |
github_pat_ | Fine-grained PAT (requires Copilot permission) |
ghu_ | GitHub App user token (VS Code client) |
ghp_ classic PATs are not accepted by the Copilot API.
Features
Model discovery — available models are fetched live from https://api.githubcopilot.com/models on each login and cached for 5 minutes. No static list to maintain.
Vision support — models that declare supports.vision: true (e.g. gpt-4.1, gpt-4o) accept images. Paste or drag a PNG/JPEG/WebP/GIF into the chat composer; the image is attached, persisted, and visible in history after reload.
Two wire protocols — the adapter speaks both OpenAI Chat Completions (/chat/completions) and the newer Responses API (/responses). The correct endpoint is chosen automatically per model.
Reasoning control — effort levels (low / medium / high / max) are forwarded to models that declare them (gpt-5.x, Claude thinking budget, Gemini reasoning).
…

