Skip to content
CheapLLM

Connect CheapLLM to llm

AI models from the command line. Step-by-step CheapLLM API setup for llm 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. One key unlocks all 48+ OpenAI, Anthropic, Google, and DeepSeek models at up to 70% off official API rates.

Base URL (OpenAI-compatible)
https://api.cheapllm.com/v1

2. Install the CLI

Install Simon Willison’s llm CLI.

Terminal
uv tool install llm

3. Point it at CheapLLM

Define CheapLLM models in extra-openai-models.yaml:

Environment / config
# ~/.config/io.datasette.llm/extra-openai-models.yaml
- model_id: cheap-opus
  model_name: anthropic/claude-opus-5.5
  api_base: "https://api.cheapllm.com/v1"
  api_key_name: cheapllm

4. Run it

Save your key once and query from any shell pipeline.

Start session
llm keys set cheapllm --value "sk-clm-8a4f9e2b4d1c7a609c21"
llm -m cheap-opus "Summarize this diff"

Top models to run in llm

All 48+ 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 54 setup guides