DeepSeek Harness (dsh) setup with Claude & GPT

DeepSeek Harness (the dsh command) is DeepSeek’s open-source AI agent. It supports Anthropic and OpenAI protocols natively — add one custom provider and it runs on TokenMilo’s Claude and GPT.

Updated 2026-11-16

1. Get an API key

Sign up in the TokenMilo console, top up and create a key under API Keys.

2. Install DSH

# Requires Node.js 24.9+
# Option 1: start the web UI (opens http://127.0.0.1:3080)
npx @deepseek-ai/dsh web

# Option 2: install globally
npm i -g @deepseek-ai/dsh

3. Add TokenMilo as a provider

Open Settings → Models → Add custom provider and fill in:

FieldFor ClaudeFor GPT
Provider IDtokenmilotokenmilo-gpt
Protocolanthropic-messagesopenai-completions
Base URLhttps://api.tokenmilo.comhttps://api.tokenmilo.com/v1
API keyYour TokenMilo key
Modelsclaude-sonnet-5-5, claude-opus-5-5gpt-6.1-sol

The Provider ID can’t be changed later. Each provider uses one protocol, so add two if you want both Claude and GPT. Then pick the model from the model menu in the chat box.

4. Config file (optional)

# ~/.dsh/profiles/web/cordis.patch.yml (optional; not needed if you used the UI)
- id: llm-pi-ai
  config:
    providers:
      tokenmilo:
        api: anthropic-messages
        baseURL: https://api.tokenmilo.com
        apiKeyEnv: TOKENMILO_API_KEY   # the NAME of an env var, not the key itself
        models:
          - id: claude-sonnet-5-5
          - id: claude-opus-5-5

A new llm-pi-ai block replaces the existing provider list, so copy your other providers in too. Restart DSH afterwards. See the model list for other IDs.

FAQ

Does DSH support third-party APIs?

Yes. DSH natively speaks Anthropic Messages, OpenAI Chat Completions and OpenAI Responses. Add a custom provider under Settings → Models.

Should the Anthropic base URL include /v1?

No. Use https://api.tokenmilo.com; DSH appends /v1/messages itself (https://api.tokenmilo.com/v1 also works on TokenMilo). For the OpenAI protocol use https://api.tokenmilo.com/v1.

Web search says no API key for "DEEPSEEK_API_KEY"

DSH’s built-in web search uses DeepSeek’s own search service and needs a DeepSeek platform key. It is unrelated to TokenMilo and doesn’t affect chat or coding.

Web fetch says a host "resolves to a non-public IP address"

Your local proxy is in TUN / fake-IP mode, so domains like github.com resolve to 198.18.x.x and DSH blocks them. Switch the proxy DNS to redir-host, add the domains to fake-ip-filter, or turn off TUN, then restart DSH.

tool_choice … not supported for this model

Claude 5 models don’t allow forcing a specific tool. DSH uses automatic tool choice by default, so you normally won’t see this.

Related guides

Need an API key?

Sign up at TokenMilo, top up, and create a key in the console in under a minute.

Get API key See all models