Use Kimi K3.1 Pro and GLM-5.3 in Pi
Point Pi at ParamHub with the setup below. You pay per token from prepaid credits; there is no subscription.
What you need
- Pi installed:
npm install -g --ignore-scripts @earendil-works/pi-coding-agent - A ParamHub API key with credits on the account.Create a key →
Set it up
npx paramhub setupSets up Pi and any other agents it finds on your machine. You pick which ones before anything is written. Needs Node.js 18 or later.
Or install the Pi package. It adds ParamHub to Pi's /login and model list, and your key is kept in Pi's own credential file.
pi install npm:pi-paramhub-provider- 1In Pi, run /login, choose “Sign in with an API key”, pick ParamHub and paste your key.
- 2Run /model and pick a model.
Or set it up by hand. Create ~/.pi/agent/models.json with the provider below, put your key in PARAMHUB_API_KEY, then start pi with the model you want.
{
"providers": {
"paramhub": {
"baseUrl": "https://api.paramhub.com/v1",
"api": "openai-completions",
"apiKey": "$PARAMHUB_API_KEY",
"models": [
{
"id": "kimi-k3.1-pro"
},
{
"id": "GLM-5.3"
},
{
"id": "GLM-5.2"
}
]
}
}
}Reasoning effort
With the package, --thinking works without editing anything. With the by-hand config, add "reasoning": true to each model entry to use --thinking low, medium or high, for example { "id": "GLM-5.3", "reasoning": true }. Without it pi does not send the thinking level.
Check that it works
- 1Run a one-off task: pi -p --model paramhub/kimi-k3.1-pro "say hello".
- 2Send any prompt. The request appears under Usage in your ParamHub console with its token counts and cost.
Which model to pick
We ran Pi 1.6.0 through ParamHub on one task: fix 4 planted bugs and add a feature in a 6-file Python library, graded by 11 hidden tests.
| Model | Passed | Time | Input | Cached | Output | Cost |
|---|---|---|---|---|---|---|
| kimi-k3.1-pro | 2/2 | 3.8 min | 96,000 | 68% | 9,200 | $0.14 |
| GLM-5.3 | 2/2 | 3.1 min | 96,000 | 82% | 7,400 | $0.05 |
| GLM-5.2 | 1/1 | 5.3 min | 140,000 | 74% | 16,500 | $0.09 |
Passed is how many runs of the task passed every hidden test, out of how many we made: 4/5 means 5 runs, 4 passed. Time, input and output are medians per task; output includes thinking. Tested on November 23, 2026 on a small task with few runs, so read the numbers as rough. Cost is per task, calculated from those medians at the current prices. Pricing →
Good to know
- Pi runs its tools without asking for approval first.
- With the by-hand config, Pi caps each response at 16,384 tokens, thinking included. Set maxTokens on a model entry to change it. The package and npx paramhub setup set it to 131,072.
- Thinking is on by default and is billed as output tokens.
- Model names are case-sensitive. Use them exactly as listed on the pricing page.
- Requests are processed by inference providers mostly in Asia, including China and Singapore, and some may be processed in other countries. Read the Privacy Policy before sending confidential code. Privacy Policy →
If something goes wrong
The key is wrong or disabled. Copy it again from API Keys.
The account has no credits. Add credits on the Billing page.
Check the spelling and case of the model name.
Switch back
Delete the paramhub provider from models.json. If you installed the package, run pi remove npm:pi-paramhub-provider.
Every coding agent has its own post in #agent-setup. Reply there with your Pi version, the model name and the full error text, with your API key removed.
Create an account, add credits from $5, and paste your key into the setup above.
Other tools
Pi belongs to its respective owner. ParamHub is an independent service and is not affiliated with or endorsed by it.