pi 0.87 made the session transcript canonical for provider context: the
context handed to a custom provider's stream no longer carries
`systemPrompt` and `tools`; they live on the leading system message
(`sections` + `toolsAdded`). streamQoder still read the removed fields,
so every request went out with `system: ""` and `tools: []` - the model
saw no prompt and no tools and answered that it cannot access files.
- resolve the prompt with getCurrentSystemPrompt(messages) and the tool
list with getCurrentTools(messages)
- give tool parameters a root `type: "object"`: Qoder's upstream rejects
a union root ("schema must be a JSON Schema of 'type: \"object\"', got
'type: null'"), e.g. the agent-browser Electron tool, which failed the
whole request with a 400
- bump the pi-ai / pi-coding-agent devDependencies to ^0.87.1 and cover
the transcript prompt/tools path with a regression test
pi-provider-qoder
A pi extension that connects pi to Qoder.
pi install npm:pi-provider-qoder
# or: omp install npm:pi-provider-qoder
pi --provider qoder --model Lite
pi --provider qoder-cn --model Qwen3.7-Plus
Inside pi:
/login qoder
/model Qwen3.8-Max
Providers
Both providers register together.
qoder (global)
https://api3.qoder.sh/- Login:
/login qoder(browser OAuth or PAT) - PAT page: https://qoder.com/account/integrations
- Env (first match):
QODER_API_KEY,QODER_PERSONAL_ACCESS_TOKEN,QODER_PAT
qoder-cn (China)
https://gateway.qoder.com.cn/- Login:
/login qoder-cn(PAT only) - PAT page: https://qoder.com.cn/account/integrations
- Env (first match):
QODERCN_API_KEY,QODERCN_PERSONAL_ACCESS_TOKEN,QODERCN_PAT
A PAT (pt-...) is exchanged for a job token. Setting any of those env vars logs the provider in at startup.
Models
Model IDs are the catalog display_name with whitespace stripped. After login, /model lists what that region offers.
Examples: Lite, Qwen3.8-Max, Qwen3.7-Plus, Qwen3.8-Flash.
Qoder's /model/list groups one account catalog by UI scenario (chat, assistant, quest, qwork, experts, …). pi registers the union of those groups, so the picker matches the models your Qoder IDE shows instead of the old chat-only CLI subset (e.g. GLM-5.3, GLM-5.2, DeepSeek-V4-Pro appear only under experts/qwork). Duplicate upstream keys keep the chat entry.
Context uses the largest live catalog option (often 1M). Output is 128K.
Endpoints
Global (qoder) |
China (qoder-cn) |
|
|---|---|---|
| PAT exchange | https://openapi.qoder.sh/api/v1/jobToken/exchange |
https://openapi.qoder.com.cn/api/v1/jobToken/exchange |
| User info | https://openapi.qoder.sh/api/v1/userinfo |
https://openapi.qoder.com.cn/api/v1/userinfo |
| Usage | https://openapi.qoder.sh/api/v2/quota/usage |
https://openapi.qoder.com.cn/api/v2/quota/usage |
| Chat gateway | https://api3.qoder.sh/ |
https://gateway.qoder.com.cn/ |
License
MIT