← Help Center· Desktop/Terminal
Pi is an open source terminal coding Agent (@earendil-works/pi-coding-agent).
It supports custom OpenAI compatible suppliers, and you can use our gear by adding a configuration.
Add a provider entry to Pi's configuration:
Pi's supplier wrote on itmodels.jsonhere (in the Pi configuration directory):
{
"providers": {
"newcclm": {
"type": "openai-compatible",
"baseURL": "https://sccclm.com/v1",
"apiKeyEnv": "NEWCCLM_API_KEY",
"models": [
{ "id": "newcclm", "name": "Newcclm 日常" },
{ "id": "newcclm-fast", "name": "Newcclm Quick" },
{ "id": "newcclm-coding", "name": "Newcclm 增强" },
{ "id": "newcclm-free", "name": "Newcclm 免费" }
],
"compat": {
"maxTokensField": "max_tokens"
}
}
}
}
export NEWCCLM_API_KEY="YOUR_API_KEY"
On Windows, useset NEWCCLM_API_KEY=..., or write it into the system environment variable.
Switch to our gear in the Pi. For specific commands, see Pi’s own help (/modelor startup parameters).
| Model Name | When to use |
|---|---|
newcclm-coding | It is recommended to use this for coding—— Adjusted for long files and tool calls |
newcclm-fast | Quick Tasks, Batch Processing |
# Wrong
https://sccclm.com
https://sccclm.com/v1/v1
https://sccclm.com/v1/chat/completions
# Correct
https://sccclm.com/v1
Pi supports multiple protocols, but we only offer OpenAI compatibility. Anthropic won't connect.
# Wrong
gpt-4o
glm-5.3-flash
# Correct
newcclm
newcclm-fast
newcclm-coding
newcclm-free
The one used above isapiKeyEnv(reading from environment variables) is safer than writing directly to the file.
If the version of Pi only supports writing keys in plain text, remember not to submit that file to git.
Before configuring, use this to confirm that the interface is not working:
curl https://sccclm.com/v1/chat/completions \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model":"newcclm-coding","messages":[{"role":"user","content":"Hello"}]}'
1. Your Pi version number (pi --version)
2. Complete error reported
3. The output of curl above