DeepSeek Harness Plugin

leilengma/dsh-copilot-bridge

Stars ★ 0 Downloads (30d) 329 Category Models & Providers Added 2026-11-25 npm dsh-copilot-bridge

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

  1. Open Settings → GitHub Copilot.
  2. 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.
  3. Click Sign in to GitHub Copilot, open the device page (https://<host>/login/device) and enter the code shown.
  4. In Settings → Models, add or select the github-copilot provider. 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

Content from the project README on GitHub ↗

Links

More in this category

View the whole category →

Community comments

Comments are public GitHub Discussions. Loading them connects to GitHub and Giscus; a GitHub account is required to post.