Connect DeepSeek Harness to ModelGo: Setup & Troubleshooting
DeepSeek Harness (DSH) is DeepSeek AI's open-source agent framework. A custom provider connects it to ModelGo's OpenAI-compatible API. Before you start, have Node.js 22+ and pnpm installed, create an API key in the ModelGo console, and pick a logical model name your key can call from the Model Catalog.
1. Install and start
git clone https://github.com/deepseek-ai/deepseek-harness.git
cd deepseek-harness
pnpm install
pnpm run build
pnpm dsh web
The terminal prints the Web UI address (http://127.0.0.1:3080 by default; if the port is taken, use the address the terminal prints).
2. Configure ModelGo
Open the Web UI, click the sidebar button in the upper-left corner, go to Settings → Models, and click Add custom provider:


| Setting | Value for ModelGo |
|---|---|
| Provider ID | modelgo |
| API URL | https://api.modelgo.ai/v1 |
| API protocol | openai-completions |
| API key | Your ModelGo API key |
| Model ID | A logical model name from the Model Catalog |

Click Create provider to save. Do not append /chat/completions to the API URL.
3. Start a session
Back on the main screen, choose a workspace and the ModelGo model you added, then send a simple task.

To check the key and the models it can call:
export MODELGO_API_KEY="mgk_your_api_key"
curl https://api.modelgo.ai/v1/models \
-H "Authorization: Bearer $MODELGO_API_KEY"Troubleshooting
- Web UI does not open: make sure
pnpm dsh webis still running and open the port the terminal printed. - 401: check that the API key is complete with no extra spaces.
- 403 / model unavailable: the model ID must be a logical model name your key can call.
- 404: the API URL must be
https://api.modelgo.ai/v1, with theopenai-completionsprotocol.