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/dsh3. Add TokenMilo as a provider
Open Settings → Models → Add custom provider and fill in:
| Field | For Claude | For GPT |
|---|---|---|
| Provider ID | tokenmilo | tokenmilo-gpt |
| Protocol | anthropic-messages | openai-completions |
| Base URL | https://api.tokenmilo.com | https://api.tokenmilo.com/v1 |
| API key | Your TokenMilo key | |
| Models | claude-sonnet-5-5, claude-opus-5-5 | gpt-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-5A 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
- CC Switch one-click setup (Claude Code & Codex) — The easiest way: import TokenMilo into Claude Code and Codex with one click.
- Codex CLI setup — Use OpenAI Codex CLI and the Codex IDE extension with GPT-6 via a custom provider.
- Claude Code setup — Run Claude Code with a TokenMilo key on macOS, Linux and Windows.
- OpenCode setup — Add TokenMilo as a custom provider in the OpenCode terminal agent.
- OpenClaw setup — Run the OpenClaw personal agent on Claude and GPT via TokenMilo.
- Aider setup — Pair-program in your terminal with Claude or GPT via TokenMilo.
Need an API key?
Sign up at TokenMilo, top up, and create a key in the console in under a minute.