DeepSeek Harness Plugin

ECNU/EduWork#dsh-oidc

Stars ★ 467 Downloads (30d) 3,479 Category Identity & Communication Added 2026-10-20 npm @eduwork/dsh-oidc

Configurable OIDC login and token-authorized model access, including LiteLLM and opt-in oidc-llm integration, with a standalone DSH Web backend.

Install

# from npm (prebuilt)

dsh plugin --profile web add @eduwork/dsh-oidc

# from GitHub (first run asks for allowBuilds approval — follow the hint, retry)

dsh plugin --profile web add github:ECNU/EduWork#path:/packages/dsh-oidc

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

简体中文 | English

Sign in with an organization and use its authorized models directly.

The current source supports LiteLLM native OAuth and explicitly enabled experimental oidc-llm 0.1. Both reuse browser/loopback transport, PKCE, Host sessions, refresh, logout and the DSH Provider. Model requests use the current Access Token; this client no longer provisions or stores organization model API keys. Personal API-key settings remain independent.

Version @eduwork/dsh-oidc@0.3.0 targets Node.js 24.18+ and DSH 0.2.1-rc.2. It supports a standalone local DSH Web profile; no EduWork desktop bridge is required for that backend. Organization model access requires a compatible gateway and a public profile configured by its operator.

dsh plugin --profile web add @eduwork/dsh-oidc@0.3.0

Set EDUWORK_OIDC_PROFILE to the absolute path of your profile JSON before starting DSH. The default bundle uses the Web backend. EduWork desktop users continue to use their distribution configuration. Legacy Key Binding profiles require migration.

Getting started

  1. Start with the LiteLLM setup guide or experimental oidc-llm, depending on the server.
  2. Copy the LiteLLM example or OIDC Token example, then supply the full discovery URL and required public settings.
  3. Use backend: desktop for desktop Hosts or backend: web for local Web. Identity-only OIDC remains available without organization models.
  4. Sign-in discovers the current authorization's model catalog. Passive account refresh must not replace a personal model selected later.

The current source classifies discovered models by type; only llm enters chat. If the server returns only IDs, supply provider.models[].type using actual model IDs before upgrading. Server type metadata takes precedence; specialist and unresolved types remain outside chat. For servers returning only IDs, update the profile model types before enabling the provider. See the model reference.

Validate from source:

cd packages/dsh-oidc
npm ci
npm run check

See integration for profile loading, Host composition and server requirements. Released applications use reviewed, published and locked packages; editing this source does not update existing installations.

Behavior and boundaries

  • OIDC validates ID Token signature, issuer, audience, nonce and UserInfo subject. LiteLLM native follows its own contract, without token-shape guessing or protocol fallback.
  • Requests check token expiry and refresh near expiry. Concurrent refresh callers share one request.
  • Logout removes local authorization, cancels in-flight model requests and attempts Refresh Token revocation. Server policy determines the lifetime of issued Access Tokens.
  • Catalogs, JSON/SSE, reasoning and attachments reuse the DSH Provider. Optional institution extensions read quota through shared Host transport.
  • Branding accepts bounded data, never remote code. This is a single-user client; Web listens on loopback only.

Further reading: Profiles, desktop Host, architecture, security, development.

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.