DeepSeek Harness
Set up DeepSeek Harness with the llmbox API — API key, Custom model API, the OpenAI Chat Completions protocol, desktop and web UI configuration.
DeepSeek Harness (dsh) is DeepSeek's open-source coding agent (MIT license,
developer preview). Connect it to the llmbox API as a Custom model API with the
OpenAI Chat Completions protocol — requests go to /v1/chat/completions, and one
key gives access to DeepSeek, GPT, Gemini and Qwen models from the
catalog. For an overview and model pricing, see
DeepSeek Harness with llmbox.
Install
- Desktop app for macOS (Apple Silicon) and Windows x64 — installers at deepseek.com/harness.
- Web UI on any system with Node.js — start it with the command below; it
opens in the browser at
http://127.0.0.1:3080:
npx @deepseek-ai/dsh web
The desktop app and the Web UI share the same model settings.
Quick start
- Open Settings → Models and click Add model provider.
- Switch the card to Custom model API.
- Provider ID —
llmbox. It cannot be changed after saving: sessions and model defaults refer to it. - Base URL:
https://llmbox.cc/v1 - API protocol — OpenAI Chat Completions.
- API key — your key from the cabinet.
- Under Model catalog, click Fetch available models, tick the text
models you need and click Update list. You can also add a model by hand
with an ID from the model catalog, e.g.
openai/gpt-5.6-sol. - Save the provider and pick a model in the model picker above the composer.
The key is stored in $DSH_HOME/.credentials.yaml; the settings keep only a
reference to it.
Configure with a file
You can also define the provider in $DSH_HOME/profiles/web/cordis.patch.yml
(web is the standard launch profile; use your own profile's name if you
started another one). Save your key from the cabinet in the LLMBOX_API_KEY
environment variable — the config reads it from there:
export LLMBOX_API_KEY="your-key"
- id: llm-pi-ai
config:
providers:
llmbox:
apiKeyEnv: LLMBOX_API_KEY
api: openai-completions
baseURL: https://llmbox.cc/v1
models:
- id: openai/gpt-5.6-sol
The llm-pi-ai entry replaces the whole config: if the file already lists
other providers, add llmbox next to them rather than instead of them. No
restart is needed — the file is re-read on the next request.
Image input
Models added manually accept text input only by default. If a model supports images (check the catalog), tick Image under Input types in Customized settings → Model options, or set it in the file:
models:
- id: openai/gpt-5.6-sol
input: [text, image]
Reasoning effort
The Effort menu appears in the picker only for a model that declares
reasoning levels. Turn on Reasoning levels in Model options — the
default rows off, low, medium and high work as they are: the chosen level is
sent to the gateway as reasoning_effort.
How it works
- Harness sends requests to
/v1/chat/completionswith streaming and your key; usage shows up in the cabinet. - The agent's tools (reading and editing files, running commands, the plan) are your functions; the gateway passes them to the model as is.
- Every agent step is a separate request with the full session history, so long tasks use noticeably more input tokens than a chat.
Troubleshooting
| Symptom | Cause and fix |
|---|---|
| Fetch available models returns 401 | The key is wrong or revoked — check it in the cabinet. |
MISSING_CREDENTIAL | The key is not saved in the provider card, or LLMBOX_API_KEY is not set where dsh runs. |
UNKNOWN_MODEL | The model is not in the provider's list — add its ID under Model catalog. |
404 model_not_found | A typo in the model ID — check against GET/v1/models. |
| Only reasoning models fail | Harness sends their system prompt with the developer role. Add compat: { supportsDeveloperRole: false } to the provider in cordis.patch.yml. |
| No Effort menu | The model declares no levels — turn on Reasoning levels in Model options. |
| An image is rejected before the request is sent | The Image input type is not enabled for the model — see “Image input”. |