Pi
Use DeepSeekSub models in the Pi terminal coding agent.
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.
{
"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
export DSSUB_API_KEY="your-api-key"
pi --provider deepseeksub --model deepseek-flashWindows PowerShell
$env:DSSUB_API_KEY = "your-api-key"
pi --provider deepseeksub --model deepseek-flashVerify 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