Skip to content

Install

Christian Trey Rowell edited this page Dec 3, 2026 · 4 revisions

Install dsh-chatgpt-siwc

English | 简体中文

This page installs dsh-chatgpt-siwc from npm into a DeepSeek Harness profile, which is the normal route. Building from a clone is covered at the end, for people who run DSH from source or want to test a local change.

Before you start

This section lists what must be in place, so the install does not fail halfway.

Requirement Value Where it is declared
Node.js ^22.19.0 || >=24.0.0 engines.node in package.json
DeepSeek Harness >=0.2.2-rc.1 <0.3.0 engines.dsh and the @deepseek-ai/* peer ranges in package.json
pnpm on PATH required by dsh plugin DSH forwards dsh plugin to pnpm
Network auth.openai.com (discovery, token, JWKS, revocation) and api.openai.com (models, Responses) Sign-in and model calls
Browser on the same machine as DSH The sign-in callback listens on 127.0.0.1

If dsh plugin fails with spawn pnpm ENOENT, enable pnpm first:

corepack enable pnpm

Install from npm (recommended)

This section is the install most people need: the published package, added to the DSH profile you use.

The package is dsh-chatgpt-siwc on the public npm registry. It ships its built lib/ and bundles its private engine siwc-core inside the tarball, so nothing is compiled on your machine. That is why the installed package contains its own node_modules/siwc-core: siwc-core is not published to npm on its own. The live-probe scripts are not in the package.

From the DSH web client. Open Plugins in the sidebar, choose Add plugin, enter dsh-chatgpt-siwc as the package name, and let DSH run the install. Restart the profile when DSH asks, then open the plugin's card and press Sign in with ChatGPT.

From a terminal. dsh plugin --profile <name> forwards its arguments to pnpm inside that profile's directory, so this is an npm-package install into the profile. The --profile option has to come before add:

dsh plugin --profile web add dsh-chatgpt-siwc     # install from npm into the web profile
dsh plugin --profile web why dsh-chatgpt-siwc     # show the resolved version and how it is linked

DSH reads the package's dsh.bundle.patch declaration and adds the plugin to the profile's bundle list. A running profile keeps the bundle set it started with, so restart it after installing, updating, or removing the plugin:

dsh web

To pin a version, name it: dsh plugin --profile web add dsh-chatgpt-siwc@2.3.0. To update later: dsh plugin --profile web update dsh-chatgpt-siwc, then restart.

Plain npm. npm install dsh-chatgpt-siwc installs the same package, including the dsh-chatgpt-siwc command, into whatever project you run it in. DSH only loads it from a profile, so use the DSH route above for the plugin itself; plain npm is useful when you want the command-line tool on its own.

Check that it worked

This section confirms that DSH loaded the build you just installed, before you sign in.

  1. Confirm the provider row is in the composed configuration:

    dsh web --dump-config

    Look for a row with id: dsh-chatgpt-siwc and provider: siwc-dsh-core. It comes from the package's cordis.patch.yml:

    - insert:
        - id: dsh-chatgpt-siwc
          name: dsh-chatgpt-siwc
          config:
            provider: siwc-dsh-core
            agentNameHint: DSH SIWC
  2. Check the startup log. When the plugin loads it logs one line naming its version, the directory it was loaded from, and the accounts file it will use: dsh-chatgpt-siwc <version> loaded from <path>; accounts file <path>.

  3. Run the token-free diagnostics from the profile directory (default ~/.dsh/profiles/web, or $DSH_HOME/profiles/web):

    cd ~/.dsh/profiles/web
    npx dsh-chatgpt-siwc doctor

    loaded.version should read 2.3.0 and loaded.root should point inside this profile. If the version or path is not what you installed, an older copy elsewhere on Node's module path is shadowing it; see Troubleshooting.

Next: Sign-in and accounts.

Remove or reinstall

This section undoes the install cleanly.

dsh plugin --profile web remove dsh-chatgpt-siwc

Removing the package removes the bundle layer; restart the profile afterwards. Your accounts file is not part of the package and stays in place. To disconnect the account at OpenAI and delete the local record as well, run dsh-chatgpt-siwc logout --purge before removing the plugin (see CLI and doctor).

Build from a clone (local DSH development)

This section is only for people who run DeepSeek Harness from source or need to test an unreleased change. Everyone else should install from npm.

The repository is an npm workspace with two packages: the plugin at the root and the private engine in packages/siwc-core. Build and test it, then pack a tarball. Install the tarball, not the source directory: the tarball carries siwc-core under node_modules/siwc-core through bundleDependencies, and a source directory does not.

git clone https://github.com/calisweetleaf/dsh-siwc-native.git
cd dsh-siwc-native
npm ci
npm run typecheck
npm test          # builds core, plugin, and client bundle, then runs vitest
npm pack          # writes dsh-chatgpt-siwc-<version>.tgz

Then add the tarball to your profile. With an installed dsh:

dsh plugin --profile web add ./dsh-chatgpt-siwc-2.3.0.tgz

With DSH run from its own source checkout, the same command goes through its pnpm dsh script (DSH resolves relative paths from the directory you run it in):

pnpm dsh plugin --profile web add /path/to/dsh-chatgpt-siwc-2.3.0.tgz

npm pack --dry-run lists what would be packed; it should include node_modules/siwc-core and lib/discover.js, and no probe files. Restart the profile and run doctor as above to confirm the local build is the one loaded.

Clone this wiki locally