← Integrations · Terminal agents

DeepSeek Harness setup via the Kiree gateway

Connect DeepSeek Harness to kiree.net: patch llm-pi-ai.providers with the gateway baseURL and apiKeyEnv, set agent-default-model to kiree/gpt-4o-mini; check with dsh --profile headless.

Why the gateway

Why the direct setup does not cover every case

Harness normally routes to the official provider. A patch defines a kiree provider pointing at the gateway baseURL; the agent runs headless through kiree.net with catalog models.

Setup

Steps to your first request

·

Install with a pinned version

npm i -g @deepseek-ai/dsh@0.2.2-rc.1: some mirrors lack the latest tag, so an explicit version installs everywhere.

·

Describe the provider in a patch

~/.dsh/cordis.patch.yml: llm-pi-ai.providers.kiree (baseURL, api openai-completions, apiKeyEnv, models) and agent-default-model provider kiree.

·

Set the key and check

export KIREE_KEY=sk-…; dsh --profile headless "reply ok": one turn, print the reply, exit.

export KIREE_KEY="sk-…"
dsh --profile headless "reply with exactly one word: ok"

The key is read from the variable named in apiKeyEnv (KIREE_KEY), not from a file. Besides headless there is a web profile (dsh web) with the same patch.

Check: KIREE_KEY=sk-… dsh --profile headless "Reply with exactly one word: ok" prints ok and exits with code 0.

Models

What to connect in DeepSeek Harness

Any text model from the catalog works on one key. Below are popular options to start.

Diagnostics

Common errors

!

npm ETARGET on install

Mirrors lack the latest prerelease tag: install an explicit version, e.g. @deepseek-ai/dsh@0.2.2-rc.1.

!

Credential not found

The variable from apiKeyEnv is not exported into the environment running dsh.

!

Model not found

The ID must be in the patch models[] list and match the kiree catalog; agent-default-model references the kiree provider.

FAQ

Frequently asked questions

How do I connect Harness through the gateway?+

The kiree provider in the llm-pi-ai patch goes to the gateway directly.

Do I need a DeepSeek account?+

No: the official provider is replaced via the agent-default-model patch with kiree; usage is billed by tokens from the balance.

What is a headless profile?+

dsh --profile headless "task" runs one fresh session, prints the final reply and exits; convenient for checks and scripts.

How stable is the project?+

It is a developer preview with breaking changes: pin the CLI version and review the patch schema on updates.

Get a key for DeepSeek Harness

Create a key in a couple of minutes; pay only for actual usage, no subscription required.