Connect CheapLLM to Pi
Minimal agent in the terminal. Step-by-step CheapLLM API setup for Pi to run Claude, GPT-6, Gemini, and DeepSeek up to 70% cheaper.
1. Create a CheapLLM API key
Create a CheapLLM account and generate an API key (sk-clm-YOUR_API_KEY). One key unlocks all 49+ OpenAI, Anthropic, Google, and DeepSeek models at up to 70% off official API rates.
Base URL (OpenAI-compatible)
https://api.cheapllm.app/v12. Install the CLI
Install Pi coding agent via npm.
Terminal
npm install -g @mariozechner/pi-coding-agent3. Point it at CheapLLM
Register CheapLLM in ~/.pi/agent/models.json:
~/.pi/agent/models.json
{
"providers": {
"cheapllm": {
"baseUrl": "https://api.cheapllm.app/v1",
"apiKey": "sk-clm-YOUR_API_KEY",
"api": "openai-completions",
"models": [
{
"id": "claude-opus-5-5",
"name": "Claude Opus 5.5",
"contextWindow": 1000000,
"maxTokens": 128000
}
]
}
}
}4. Run it
Start Pi pointing at any frontier model.
Start session
pi --provider cheapllm --model claude-opus-5-5Top models to run in Pi
All 49+ models →| Model | Official (in / out) | CheapLLM (in / out) | Savings |
|---|---|---|---|
| Claude Opus 5.5 | $2.80 / $14.00 | −30% | |
| GPT-6.1 Sol | $1.40 / $7.00 | −30% | |
| Gemini 4 Argon | $1.40 / $7.00 | −30% | |
| DeepSeek V4 Pro 0813 | $0.078 / $3.11 | −30% |