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

bash
git clone https://github.com/deepseek-ai/deepseek-harness.git
cd deepseek-harness
pnpm install
pnpm run build
pnpm dsh web
Start DeepSeek Harness from source

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:

Open DeepSeek Harness settings
Add a custom provider
SettingValue for ModelGo
Provider IDmodelgo
API URLhttps://api.modelgo.ai/v1
API protocolopenai-completions
API keyYour ModelGo API key
Model IDA logical model name from the Model Catalog
Fill in the ModelGo custom provider

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.

Select the ModelGo model

To check the key and the models it can call:

bash
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 web is 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 the openai-completions protocol.

Related docs