AGENT INTEGRATIONS

Pi

Use DeepSeekSub models in the Pi terminal coding agent.

On this pageAdd the DeepSeekSub providerStart Pi with your keyVerify the connection
Connection details · Use the key, base URL and model ID from your account. Base URL: https://api.deepseeksub.com/v1.

Add the DeepSeekSub provider#

Install Pi and create a DeepSeekSub API key. Open ~/.pi/agent/models.json or the models.json in your configured Pi agent directory. If the file already has providers, add the deepseeksub entry inside the existing providers object.

json
{
  "providers": {
    "deepseeksub": {
      "baseUrl": "https://api.deepseeksub.com/v1",
      "api": "openai-completions",
      "apiKey": "DSSUB_API_KEY",
      "models": [
        { "id": "deepseek-flash", "name": "DeepSeek Flash" },
        { "id": "deepseek-v4-pro", "name": "DeepSeek V4 Pro" }
      ]
    }
  }
}

Start Pi with your key#

Set DSSUB_API_KEY in the same terminal session that starts Pi. Replace your-api-key with the key you created.

macOS or Linux

sh
export DSSUB_API_KEY="your-api-key"
pi --provider deepseeksub --model deepseek-flash

Windows PowerShell

powershell
$env:DSSUB_API_KEY = "your-api-key"
pi --provider deepseeksub --model deepseek-flash

Verify the connection#

Send “Reply with hello” and check Usage for your request. Use /model in Pi to switch to deepseek-v4-pro if your key allows it. If the model is missing, check the active agent directory and the JSON syntax. For authentication errors, check that DSSUB_API_KEY is set in the shell that launched Pi.

See the Pi installation instructions and custom models reference.

Guide updated November 11, 2026 · All tutorials