← Help Center· Desktop/Terminal

Connect Newcclm with Pi

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.

Just choose one of the two paths:
· Manage with magpie——Click a link to configure it, and you can manage other Agents at the same time →magpie access
· Direct Pi- this is the description below

1. Add a custom supplier

Add a provider entry to Pi's configuration:

Fill in these values

Provider IDnewcclm
Base URLhttps://sccclm. com/v1
ProtocolOpenAI compatible
Modelsnewcclm · newcclm-fast · newcclm-coding · newcclm-free

2. Write 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"
      }
    }
  }
}
Field names may vary with Pi version. The above is the general writing method. If your Pi version reports an invalid configuration, See the "custom provider" section in its own documentation. Or directly in ourmagpie access pageRibbon - that way you don't have to write the file by hand.

3. Set environment variables

export NEWCCLM_API_KEY="YOUR_API_KEY"

On Windows, useset NEWCCLM_API_KEY=..., or write it into the system environment variable.

4. Select Model

Switch to our gear in the Pi. For specific commands, see Pi’s own help (/modelor startup parameters).

Model NameWhen to use
newcclm-codingIt is recommended to use this for coding—— Adjusted for long files and tool calls
newcclm-fastQuick Tasks, Batch Processing

5. Don't match it like this

Don't miss/v1 or overlay the Base URL

# Wrong
https://sccclm.com
https://sccclm.com/v1/v1
https://sccclm.com/v1/chat/completions

# Correct
https://sccclm.com/v1

Do not select the Anthropic protocol

Pi supports multiple protocols, but we only offer OpenAI compatibility. Anthropic won't connect.

Do not enter the real model name

# Wrong
gpt-4o
glm-5.3-flash

# Correct
newcclm
newcclm-fast
newcclm-coding
newcclm-free

Do not write the key into the profile text

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.

6. Take a test

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"}]}'

Still not working

1. Your Pi version number (pi --version)
2. Complete error reported
3. The output of curl above

Back to Help Center · magpie access →