GitHub Copilot sign-in for the built-in github-copilot route, on github.com or a GitHub Enterprise host: a Settings page with a GitHub host field, OAuth device-flow login, and credentials kept in the Harness credential store.
Install
# from npm (prebuilt)
dsh plugin --profile web add dsh-copilot-bridge
# from GitHub (first run asks for allowBuilds approval — follow the hint, retry)
dsh plugin --profile web add github:leilengma/dsh-copilot-bridge
Any plugin you install runs third-party code with your own permissions — it can read your files, use your credentials, and reach the network, and tool approvals don’t sandbox it. GitHub-sourced plugins also run build scripts at install time — pnpm blocks those until you allow them, so an install can stop with ERR_PNPM_GIT_DEP_PREPARE_NOT_ALLOWED or ERR_PNPM_IGNORED_BUILDS; dsh prints the exact key to add under allowBuilds in your profile’s pnpm-workspace.yaml, and the install works on the next run. Allowing a build is a trust decision: only install sources you trust, and pin a commit (github:owner/repo#sha).
README
GitHub Copilot sign-in for DeepSeek Harness, on github.com or a GitHub Enterprise host such as https://<company>.ghe.com/.
It provides a Settings page and commands for sign-in, with a GitHub host field: you enter your Enterprise URL, click Save, and the plugin writes it to the profile's configuration file.
The plugin only handles sign-in. It runs the OAuth device flow against the configured host and stores the long-lived credential in the Harness credential store under llm-pi-ai / github-copilot, together with enterpriseUrl when a host is set. The built-in github-copilot model route reads that record, refreshes short-lived Copilot tokens from api.<host>, and lists the models available to your account.
Install
Use the dsh CLI that ships with the desktop app:
alias dsh="'/Applications/DeepSeek Harness.app/Contents/Resources/runtime/cli/bin/dsh'"
dsh plugin --profile desktop add github:leilengma/dsh-copilot-bridge
Restart the app.
Use
- Open Settings → GitHub Copilot.
- Under GitHub host, enter your Enterprise URL (for example
https://octocorp.ghe.com/) and click Save. The input shows the saved value as its placeholder. Use github.com clears it. - Click Sign in to GitHub Copilot, open the device page (
https://<host>/login/device) and enter the code shown. - In Settings → Models, add or select the
github-copilotprovider. Leave its API key blank. The card shows a notice that no API key is needed and that you only need to click Apply. If you are not signed in yet, the notice tells you to sign in first.
The /copilot-login, /copilot-status and /copilot-logout commands work on chat surfaces too.
If you change the host while signed in, the page tells you that the stored credential belongs to the other host. Sign out and sign in again to switch.
Configuration
Save writes the value to the profile's own patch file, ~/.dsh/profiles/<profile>/cordis.patch.yml:
- id: copilot-bridge
config:
enterpriseUrl: https://octocorp.ghe.com/
You can also edit that file by hand. A blank value or github.com means github.com. The field accepts a full URL or a bare host, and only the hostname is used.
Development
Requires Node 24 or newer.
npm ci
npm run check # tsc --noEmit, esbuild bundle to lib/, node --test (type-stripped .ts)
src/host/: Host plugin. Device flow, auth controller, credential grant,/api/copilot-bridge/*routes, commands and config writes.src/client/: React Settings page, login dialog and logout confirmation.src/shared/contract.ts: request and response types shared by the Host and the client.
lib/ is committed so that github: installs work without a build step. Run npm run build before you commit.
To test a local checkout without touching your desktop profile:
export DSH_HOME=~/dsh-test
dsh plugin --profile web add "$PWD" -w
dsh web --port 0
Links
More in this category
Ebony-Vinyl/dsh-our-free-model★ 87287
Adds free model lanes to DeepSeek Harness — DeepSeek V4.1 Flash, Kimi K3 and others — with no login, sign-up or API key, plus a local OpenAI-compatible gateway, fallback routing and a usage dashboard.
dingminhua/dsh-connect-workbuddy★ 2017
Connects locally signed-in WorkBuddy models, CN and international alike, to DSH, reading each model's credit multiplier from the upstream catalog on every refresh, with per-model image input toggles, account switching backed by an auto-failing-over pool, manual daily check-in, and read-only credit overviews shown as compact pills on the card and in the composer.
Alice-Marx/dsh-model-router★ 1020
Routes DeepSeek Harness work across configured model APIs and supported vendor CLIs with dependency-aware packages and cost previews.
V1ki/dsh-plugin-subscriptions★ 640
Use ChatGPT (Codex), Claude, and Grok subscriptions as DeepSeek Harness LLM providers, with Settings login, model catalogs, usage, plus image_generate, video_generate, and x_search tools.
XDTrees/dsh-workbuddy-xdpool★ 623
Merge every locally signed-in WorkBuddy account into DeepSeek Harness as one auto-failing-over model pool (multi-account rotation, live credits, and a model catalog showing per-model credit multipliers and free/night-discount tags).
XDTrees/dsh-xdpool★ 623
Merge every locally signed-in WorkBuddy account into DeepSeek Harness as one auto-failing-over model pool: multi-account rotation, 429 cooldowns, live credits, a model catalog with per-model credit multipliers and free/night-discount tags, QR-code login for 13 vendors, and aggregate free-tier channels. Accounts persist across restarts.
Community comments
Comments are public GitHub Discussions. Loading them connects to GitHub and Giscus; a GitHub account is required to post.