Skip to content
CheapLLM

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.

5 min readUpdated Nov 2026

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/v1

2. Install the CLI

Install Pi coding agent via npm.

Terminal
npm install -g @mariozechner/pi-coding-agent

3. 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-5

Top models to run in Pi

All 49+ models →
ModelOfficial (in / out)CheapLLM (in / out)Savings
Claude Opus 5.5$4.00 / $20.00$2.80 / $14.00−30%
GPT-6.1 Sol$2.00 / $10.00$1.40 / $7.00−30%
Gemini 4 Argon$2.00 / $10.00$1.40 / $7.00−30%
DeepSeek V4 Pro 0813$0.11 / $4.44$0.078 / $3.11−30%
← All 55 setup guides