Knowledge Base Sections ▾

Navigation

▸ Start here By roles

Categories

Tools 54
Glossary 12

Tools

DeepSeek Harness: Your Own Provider via JoinGonka Gateway

In short: DeepSeek Harness connects to JoinGonka Gateway out of the box: Settings → Models → Add model provider → Custom model API, Base URL https://gate.joingonka.ai/v1, OpenAI Chat Completions protocol, key jg-…, then Fetch available models — and the models of the GLM, DeepSeek and MiniMax networks will appear in the list. The npx @joingonka/setup installer does not configure this harness: everything is done in the interface or with a single block in the settings file.

DeepSeek Harness (the dsh command) is an open agentic harness from DeepSeek AI: a shell in which the model reads and edits project files, runs commands, delegates subtasks and keeps a plan, while you watch from the browser and confirm risky steps. The project is young: the authors themselves call it a developer preview and openly warn that breaking changes will come. We went through the setup live on an early version 0.1.5-rc.2, and the steps below were verified against the project documentation as of 10/28/2026 — the current branch is 0.2.1-rc.

On first launch dsh asks for an official API key from its vendor, but its model layer is open: on the Settings → Models page you can add any provider that speaks one of three protocols — OpenAI Chat Completions, OpenAI Responses or Anthropic Messages. JoinGonka Gateway serves all three, so the harness connects to the decentralized Gonka network with its built-in tools, no plugins or patches.

A telling detail from the app's page in the OpenRouter catalog: in the ranking of models through which DeepSeek Harness runs there over the last 30 days, second place goes to DeepSeek V4 Flash 0731, third to GLM 5.3 Flash (snapshot as of September 21, 2026; first place is an anonymous test model). Both open models are served by the Gonka network — along with MiniMax M2.7 — so your usual setup moves to another endpoint without changing models: only the address and the price per token change.

What is DeepSeek Harness and how to launch it

The harness is everything that surrounds the model in agentic work: the "request → tool call → result → next step" loop, tools for files and the terminal, permissions and confirmations, the session log, context compression. DeepSeek Harness assembles all of this from plugins: its "everything is a plugin" architecture is built on the Cordis framework, and any node — from a tool to a model adapter — can be swapped out without touching the core. The code is open source under the MIT license. Don't confuse it with Hermes Agent: Hermes is Nous Research's personal self-learning agent with memory that lives in the terminal and messengers, while DeepSeek Harness is DeepSeek's plugin-based shell with a web interface and a desktop app.

No installation needed — just Node.js 24.9 or newer:

npx @deepseek-ai/dsh web

The command spins up the Web UI at http://127.0.0.1:3080 and opens it in your browser; when launched over SSH, the address is only printed to the terminal. The --no-open flag starts the server without a browser, and --port changes the port. There's also a desktop app available from the deepseek.com/harness page: for macOS 13 and newer on Apple silicon and for 64-bit Windows 10 and newer. It installs the terminal command dsh itself — via the menu item Manage dsh Command…. The directory from which dsh is launched becomes the default working directory, but the interface will only start a session after you explicitly select a workspace.

ModeCommandWhat it's for
Web UIdsh webMain interface: sessions, settings, operation confirmations
One-off taskdsh --profile headless "task"Scripts and CI: response to stdout, reasoning process to stderr
ACPdsh --profile acpEditors and clients with Agent Client Protocol support
SDKdsh --profile sdkJSON-RPC clients, including the Python SDK

Models are connected via adapters. Native adapters lead to DeepSeek — via API key or by signing into a DeepSeek account. The multi-provider dsh-llm-pi-ai is built on the pi-ai library, the same one that powers the terminal agent Pi; through it you can connect both built-in providers from the catalog and any custom endpoints. That's why the field names in the settings — api, contextWindow, maxTokens — match the ones you know from Pi.

On maturity. The project's README opens with a warning: developer preview, rapid iterations, breaking changes. A separate SAFETY.md document clarifies that no security audit has been performed, and that the agent executes commands generated by the model. The practical takeaway is simple: run dsh in a container, a virtual machine, or under a separate account, and keep backups of everything it can reach.

Connecting via Web UI: Settings → Models

Step 1: the key. Sign up at gate.joingonka.ai/register: once you confirm your email, 3M free tokens land in your account. In your dashboard, open the API Keys section and create a key with the jg- prefix. It's handy to create a separate key for the harness — that way its traffic shows up as its own line in the stats.

Step 2: the first screen. After the Preview Notice dialog (hit Continue), dsh will ask you to enter an official DeepSeek API key ("Add an API key to get started"). It's optional: click Configure later.

Step 3: the provider. Open Settings → Models and click Add model provider. The card opens on the Third-party model provider tab — switch it to Custom model API. The form fields:

FieldValueNote
Provider IDjoingonkaLowercase Latin letters, digits and hyphens, starting with a letter. The identifier is permanent: it goes into requests, saved sessions, the default model and the name of the key reference. You can't rename it — only create a new provider and delete the old one
Display nameJoinGonka GatewayAny label for lists
Base URLhttps://gate.joingonka.ai/v1With the /v1 suffix
API protocolOpenAI Chat Completions (in the file — openai-completions)How to choose a protocol — see the table below
API keyjg-your-keyWrite-only field: after saving, the page gets a masked descriptor instead of the key itself

Step 4: the models. In the models block, click Fetch available models: dsh will hit the gateway's GET /models and open the Choose models window with a search box. Tick zai-org/GLM-5.3-Flash, deepseek-ai/DeepSeek-V4-Flash-0731 and MiniMaxAI/MiniMax-M2.7 and click Update list: along with the IDs, dsh pulls the context window and max output the gateway reports into the model rows: 390K and 8,192 tokens for GLM-5.3 Flash, 380K and 32,768 for DeepSeek V4 Flash, 180K and 8,192 for MiniMax M2.7. Now just click Create provider: nothing is saved until you do.

Step 5: reasoning levels. For your own provider's models, the Effort menu only appears once you declare the levels. Open the provider for editing, expand Customized settings → Model options for the model and enable Reasoning levels. For GLM-5.3 Flash, keep the off and high rows and set the API value for off to low; for DeepSeek V4 Flash, set it to none. Why exactly this way is explained in the next section.

Step 6: picking a model. Close the settings, click Choose workspace and add your project directory. The new provider's models will appear in the selector; the one you pick becomes the default model for new sessions.

dsh stores the key separately from the settings: in ~/.dsh/.credentials.yaml with owner-only permissions. The settings file keeps only the name of the reference to it: the form builds it from the Provider ID, so for joingonka it's JOINGONKA_API_KEY.

Which protocol to choose. The gateway speaks all three; what differs is the base URL and the extra conveniences:

API protocolBase URLWhen to choose it
openai-completionshttps://gate.joingonka.ai/v1The main option: the gateway's canonical path, the model list loads with a button, and a reasoning model's chain of thought arrives as a separate stream
openai-responseshttps://gate.joingonka.ai/v1If your plugins or scripts are built around the Responses API
anthropic-messageshttps://gate.joingonka.aiAnthropic Messages format; the client appends the /v1/messages path itself

One provider in dsh speaks one protocol, so a second protocol means a second provider with a different Provider ID. For everyday work the first option is enough; in our run on an early version of dsh, the agent loop with tool calls worked on all three.

Configuring via file: cordis.patch.yml

The Models form writes into the profile document — $DSH_HOME/profiles/<profile>/cordis.patch.yml. When you launch dsh web, the profile is called web, so the default path is ~/.dsh/profiles/web/cordis.patch.yml. You can edit the file directly: the Open configuration file button at the top of the settings opens it if the browser is running on the same machine as dsh, and the adapters re-read the file on the next request — no restart needed. Here's the block for the Gonka network:

# ~/.dsh/profiles/web/cordis.patch.yml
- id: llm-pi-ai
  config:
    providers:
      joingonka:
        displayName: JoinGonka Gateway
        apiKeyEnv: JOINGONKA_API_KEY
        api: openai-completions
        baseURL: https://gate.joingonka.ai/v1
        models:
          - id: zai-org/GLM-5.3-Flash
            contextWindow: 390000
            maxTokens: 8192
            reasoningEfforts:
              off: low
              high: high
          - id: deepseek-ai/DeepSeek-V4-Flash-0731
            contextWindow: 380000
            maxTokens: 32768
            reasoningEfforts:
              off: none
              high: high
          - id: MiniMaxAI/MiniMax-M2.7
            contextWindow: 180000
            maxTokens: 8192
- id: agent-default-model
  config:
    provider: joingonka
    model: zai-org/GLM-5.3-Flash

What matters here:

  • The llm-pi-ai entry replaces the adapter's entire config: if other providers are already described in the file, keep them in the same block.
  • apiKeyEnv is not the key itself but the name of the reference to it. dsh looks up the value in order: first ~/.dsh/.credentials.yaml (where the form writes), then the environment dsh was launched in, then .env in the launch directory and ~/.dsh/.env. Without a browser, a single line JOINGONKA_API_KEY=jg-your-key in ~/.dsh/.env with permissions 600 is enough. A key saved by the form overrides a variable with the same name, and a variable exported after startup won't be seen by an already running process.
  • Set contextWindow and maxTokens explicitly — these are the real limits of the network's models. For models without these fields, dsh assumes a 1,000,000-token window and a 128,000 response ceiling, which doesn't match the network's limits. The maxTokens you set also becomes the default response limit for every request.
  • reasoningEfforts are the reasoning levels for the Effort menu; a model you enter manually has none until you declare them. The value on the right is sent in the request as reasoning_effort. For GLM-5.3 Flash, the value low disables reasoning; for DeepSeek V4 Flash it's none; that's why those are mapped to the off level. MiniMax M2.7 has no levels: the model always reasons.
  • agent-default-model is the model for new sessions. The model picker in the interface does the same thing; you can also add reasoningEffort here.
  • dsh profiles are separate, and only dsh web reads this file. A one-off run with --profile headless takes its settings from ~/.dsh/profiles/headless/cordis.patch.yml — put the same two entries there. The credentials file ~/.dsh/.credentials.yaml is shared across all profiles.

If the gateway returns an error for every request when the key and address are correct. For an unfamiliar address, pi-ai builds the request as if it were OpenAI itself: the system prompt of a reasoning model is sent with the developer role, and the response ceiling goes in the max_completion_tokens field. JoinGonka Gateway accepts both. If on your version of dsh the gateway still rejects every request, the dsh documentation suggests starting with two switches — the compat block goes in the provider next to baseURL:

        compat:
          supportsDeveloperRole: false
          maxTokensField: max_tokens

Each switch must have a value: dsh doesn't accept a key left empty.

The npx @joingonka/setup installer doesn't configure this harness: the whole connection comes down to the form from the previous section or the block above.

Verification and Common Errors

The quickest way to verify the integration is a short task in the Web UI: open a session in your chosen workspace and ask the agent to find a bug in a small file. From the terminal, a one-off run in the headless profile does the same thing. This profile has its own settings file, so first put the default provider and model into ~/.dsh/profiles/headless/cordis.patch.yml, as in the previous section. You can check whether the profile sees these entries without querying the model: npx @deepseek-ai/dsh --profile headless --dump-config prints the final configuration. Then drop a small file with an obvious bug next to it and ask the agent to find it:

cd /path/to/project
npx @deepseek-ai/dsh --profile headless "Read calc.py and tell me in one sentence whether it has a bug."

The final answer is printed to stdout, and the reasoning trace goes to stderr with the dsh: reasoning: prefix. The agent should call the file-reading tool on its own and give a substantive answer: in our run on an early version of dsh, each of the three models on the network named the faulty line. That means the full cycle of "request → tool call → result → answer" through the gateway is assembled correctly.

The second half of the check is on the gateway side. In the dashboard, open "Usage": there you can see requests by hour and by day, broken down by model and by key. Once a row appears with the harness key and a fresh last-request time, traffic is genuinely flowing through the gateway.

If something goes wrong, the diagnosis is usually readable straight from the message:

What you seeWhat it meansWhat to do
401 … Invalid API keyThe gateway rejected the keyRe-enter the key on the Models page. A key saved by the form overrides an environment variable with the same name, so you have to fix it wherever it actually lives
MISSING_CREDENTIALNothing was found at the reference in apiKeyEnvSave the key in the form, or set the variable before launching dsh: the environment is read once, at startup
UNKNOWN_MODELThe model isn't in the provider's models listAdd it in the form or the file, or pick one that's already configured
400 … Model "…" not found. Available: …The identifier was typed imprecisely, most often without the vendor prefixCopy the id from the list the gateway includes in the message itself
429 … currently overloaded … (rate limit)The model's free capacity on the network is exhausted right nowThis is normal under load: dsh retries the request on its own. If the retries are used up, switch models or wait a minute; the state is visible on the status page
Fetch available models returns 401The list was requested with the wrong keyCheck the key in the form; you can also enter models manually — they'll work just the same
The gateway rejects every request even though the key and address are correctThe request is built in a form the gateway doesn't expectStart with compat.supportsDeveloperRole: false and compat.maxTokensField: max_tokens, as in the previous section
A one-off --profile headless run doesn't see the joingonka providerThe form writes settings to the web profile, while the headless profile has its own fileCopy the llm-pi-ai and agent-default-model entries into ~/.dsh/profiles/headless/cordis.patch.yml
A reasoning model has no Effort menuThe model entry doesn't declare any levelsEnable Reasoning levels in the model's Model options, or add reasoningEfforts to cordis.patch.yml, as in the example above
A reasoning model's answer is cut off or emptyThe reasoning is counted toward the answer limit and consumed it entirelyDon't lower maxTokens; for short tasks, pick the off level
The input field shows Select model and input is blockedThe default model points to a deleted providerPick another model in the selector

Which model to choose

All models on the network cost the same, so your choice comes down to behavior, not budget. Below are the limits and how the models performed in our dsh run on the very same task: read a file and find the bug in it.

ModelIdentifierContext / responseHow it behaves in dsh
GLM-5.3 Flashzai-org/GLM-5.3-Flash390K / 8192A reasoning model: dsh shows the reasoning as a separate stream, so the answer stays clean. Reasoning counts toward the response limit
DeepSeek V4 Flashdeepseek-ai/DeepSeek-V4-Flash-0731380K / 32768Clean answer with the line number called out. The largest response ceiling on the network — long edits and big files in a single turn
MiniMax M2.7MiniMaxAI/MiniMax-M2.7180K / 8192Solves the task correctly; the reasoning arrives in a separate reasoning_content field, and the response text holds only the answer itself

Start with GLM-5.3 Flash: it reasons before answering, the off level turns reasoning off for quick edits, and keep high for tangled logic. For big files and long edits in a single turn, go with DeepSeek V4 Flash — it has the largest response ceiling on the network. MiniMax M2.7 is the steady pick for short tasks where a visible reasoning pass gets in the way. You switch models in the interface selector or with the model line in the agent-default-model block.

The network's lineup is decided by a vote of its participants and changes over time; the current list along with the limits is always served by GET https://gate.joingonka.ai/v1/models — the same endpoint the Fetch available models button uses.

How much it costs and what to consider in your work

Agentic tools spend tokens differently than chat: with every message you send, the harness appends a system prompt and descriptions of every tool, then runs a multi-turn dialogue with the model. In our run on an early version, the task "read a file and find the bug" took two or three turns and anywhere from 14,000 to 22,000 tokens, and almost all of that is input: roughly seven thousand tokens go out with every turn before you've even asked your question. That's the normal price of autonomy — and it's exactly why the cost per token is what matters.

Through JoinGonka Gateway, tokens cost $0.0062 per million on input and $0.019 per million on output — the same price for every model on the network, pulled into this page from a live source. Here's the order of magnitude at September 2026 prices:

ScenarioUsageThrough the Gateway
One-off task (read a file, find the bug)14-22K tokenshundredths of a cent
A day of active work3-7M tokensa few cents
A month of active development~150M tokensaround a dollar

You pay for actual usage — no subscription, no caps on the number of requests; your balance and daily spend are visible in your account.

Version. DeepSeek Harness has no stable release yet: only alpha versions and release candidates ship, and npx grabs whatever npm tags as latest. After every update, check that the provider is still in place, and for reproducibility pin the version right in the command: npx @deepseek-ai/[email protected] web — the latest version on npm as of October 28, 2026.

Permissions. New sessions run in Workspace Write mode by default — writes are confined to the working directory; the interface asks you to confirm any operation beyond that policy. You change the mode in Settings → General.

Retries. On a one-off network error, dsh retries the request on its own — up to five times per the docs — so a brief spike in network load usually goes unnoticed.

Privacy. The gateway doesn't store the contents of prompts or responses: only usage aggregates remain in the stats. The agent reads your project files locally, on your own machine.

If you need to work with images — a screenshot of an interface, a diagram in a photo — set up a second provider alongside with a vision-capable model: dsh can hold several providers at once, and Gonka network models are text-only.

DeepSeek Harness isn't the only agent the model lab itself ships: Z.ai, the team behind GLM, has the ZCode environment, and MiniMax has the terminal-based MiniMax Code. Both connect to the same gateway with the same key.

DeepSeek Harness is an open agentic harness from DeepSeek AI in developer preview: a Web UI, a desktop app, one-off runs, ACP and an SDK on top of a plugin architecture. Wiring in your own endpoint is standard: Settings → Models → Add model provider → Custom model API, address https://gate.joingonka.ai/v1, OpenAI Chat Completions protocol, key jg-…; the Fetch available models button pulls in GLM-5.3 Flash, DeepSeek V4 Flash and MiniMax M2.7 along with their limits. The same thing can be written as a single llm-pi-ai block in ~/.dsh/profiles/web/cordis.patch.yml. For GLM-5.3 Flash, declare the levels off: low and high: high, and for DeepSeek V4 Flash — off: none and high: high — and reasoning becomes toggleable. Run the harness in an isolated environment and pin the version while the format is still settling.

Want to learn more?

Explore other sections or start earning GNK right now.

Get key and free tokens →