DeepSeek Harness Connector Plugin: Unified Credential Vault

Introduction

In DeepSeek Harness (DSH), having an Agent push code, release builds, or check CI typically involves the same repetitive chore: create a Token on the platform, paste it into an environment variable or a chat message, then paste it again in a new session or on a different device. Install a second plugin, and you configure it all over again. DSH traces log everything, so tokens can only be entered via the settings page, a standalone page, or the terminal—they never pass through the chat box.

The dsh-connectors plugin collapses this into three steps: connect once → stored encrypted locally → reused by all callers.

Feature Overview

The plugin provides a unified credential vault for DeepSeek Harness: tokens for platforms like GitHub, GitLab, Gitee, Vercel, Cloudflare, npm, and more are stored only once, and sessions, tools, and other plugins can reuse them directly.

Core Capabilities

  • Persistent credentials: Credentials are stored in the harness state directory and survive restarts, session changes, and profile switches.
  • Tokens never enter the chat log: Tokens can only be entered via the settings page, a standalone page, or the terminal; they never pass through the chat box.
  • Platform isolation: The model can only specify a “platform + path” combination; the domain is pinned by the plugin. A GitHub token cannot be used against any other service.
  • Plugin reuse: The plugin registers a connectors service, so the next plugin doesn’t need to ask you for a token again.
  • Mobile support: DSH Go has a native “Connectors” panel and an “N connected” status bar, listing only authorized platforms.

Supported Platforms

Category Platform Auth Method
Code Hosting GitHub (device code login supported), GitLab, Gitee Bearer / PRIVATE-TOKEN / token
Deployment & Hosting Vercel, Cloudflare, Netlify, Railway Bearer
Packages & Registries npm, Docker Hub Bearer / Basic
Databases & Backends Supabase Bearer
Models & AI Hugging Face, OpenAI, Anthropic Bearer / x-api-key
Design & Docs Figma, Notion X-Figma-Token / Bearer
Collaboration & Notifications Slack Bearer

Installation & Activation

Install from GitHub (recommended, built-in DSH resolution):

dsh plugin --profile web add github:giangnam728828-rgb/dsh-connectors

Local directory development:

dsh plugin --profile web add /absolute/path/dsh-connectors

Install from npm (available after npm publication):

dsh plugin --profile web add dsh-connectors

After installation, restart dsh web and open Settings → Connectors.

Compatibility Baseline

  • DSH 0.2.1-rc.3 through 0.2.x
  • Node ^22.19 || >=24

Connecting a Platform

Several entry points—pick whichever suits your current setup:

  1. Settings page: Settings → Connectors, click “Connect”, paste the token. Ideal for desktop, DSHA, and WebView-based clients.
  2. /connectors command: Type /connectors help in any chat-capable client and follow the prompts. The fallback entry point.
  3. Standalone page: Open http://<your DSH address>/dsh-connectors in a browser. The layout is optimized for narrow screens, making it suitable for mobile browsers and tunnel access.
  4. Terminal: Use this when on a phone or server without a convenient browser—npx -y dsh-connectors add github.
  5. DSH Go native panel: After installing the dsh-go bridge, “Connectors” appears under the App’s “All Features”, plugin details, and conversation details › “Plugins”.
# Interactive, input is not echoed
npx -y dsh-connectors add github

# Read from pipe, not stored in shell history
echo "$TOKEN" | npx -y dsh-connectors add vercel

# Platform that requires a username
npx -y dsh-connectors add docker --username yourDockerID

# List / remove
npx -y dsh-connectors list
npx -y dsh-connectors remove github

Before saving, the plugin calls the platform’s identity endpoint to validate the token once. A mistyped token will produce an immediate error instead of a surprise 401 three turns into the conversation.

GitHub Device Code Login (Optional)

The device code flow requires no callback URL and is the most mobile-friendly option: the page gives you an eight-character code, you approve it in any browser, and the host polls for the token automatically.

It requires a Client ID from a GitHub OAuth App:

  1. Go to https://github.com/settings/developers → New OAuth App
  2. Check Enable Device Flow; the callback URL can be anything (the flow doesn’t use it)
  3. Enter the Client ID in the “Device Code Login” field on the standalone page, or set the environment variable:
export DSH_CONNECTORS_GITHUB_CLIENT_ID=Iv1.xxxxxxxxxxxx

Usage in Conversations

The plugin exposes two tools to the Agent. The README documents them clearly so you can anticipate what it will do:

Tool Purpose
conn_list Lists platforms and connection status. The Agent should call this before asking you for a token.
conn_request Calls the platform API as the connected account. Accepts only a path; the plugin fills in the domain.
You: Create a private repo on GitHub and push these files to it
Agent: → conn_list                 (discovers github is connected)
       → conn_request POST /user/repos
       → conn_request GET /repos/me/demo/git/ref/heads/main
       → conn_request POST /repos/me/demo/git/blobs …
{
  "provider": "github",
  "method": "POST",
  "path": "/repos/octocat/demo/issues",
  "body": { "title": "Build failed on main" }
}

Tokens in the response body are replaced with [redacted]; responses exceeding 200 KB return only a preview to avoid blowing up the context window.

Reuse by Other Plugins

This is the most critical layer of “connect once.” Other plugins don’t need to ask the user for a token again:

export const inject = ['connectors'];

export function apply(ctx) {
  ctx.effect(() => {
    const connectors = ctx.get('connectors');
    if (connectors === undefined) return () => {};
    // Recommended: let the broker send the request—domain and headers are constrained, token stays on host
    const result = await connectors.request({ provider: 'github', path: '/user' });
    return () => {};
  });
}

The service is tiered by permission level:

Capability Method Default
Connection status list(), status(id), capabilities() Available, no secrets
Restricted requests request({ provider, method, path, query, body }) Available, token not returned
Raw credentials credential(id), token(id) Denied by default, throws raw-credentials-not-granted

Plugins that require raw tokens (e.g., implementing the git protocol themselves) must be explicitly authorized by the user:

npx -y dsh-connectors allow-raw on    # Enable
npx -y dsh-connectors service         # Check current status
npx -y dsh-connectors allow-raw off   # Turn off when done

Callers can check capabilities() first to decide which path to take, avoiding crashes due to missing authorization. There is only one rule: token values must never enter the prompt or tool return values.

git push Without Pasting Tokens

The plugin ships a built-in git credential helper that fetches the token from the vault during HTTPS pushes:

# When the plugin is installed in a profile, use the profile's bin (most reliable, no network needed)
git config --global credential.https://github.com.helper \
  '!/absolute/path/profiles/web/node_modules/.bin/dsh-connectors git-credential'

Use Cases & Cautions

Suitable for DSH users who frequently interact with multiple cloud services, code hosting platforms, or deployment services. The plugin runs with the permissions of the current dsh process; review the source code and license before installing.

Closing

Connect once, use everywhere. Let DSH’s Agent collaborate across multiple platforms without repeatedly configuring credentials.

  • Directory page: https://www.skillhub.cn/plugins/giangnam728828-rgb/dsh-connectors
  • GitHub: https://github.com/giangnam728828-rgb/dsh-connectors
羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye