OpenAI-compatible · bearer-gated · https://llm.pq.io
Get a bearer token from matthew@pq.io, then:
curl https://llm.pq.io/main/v1/chat/completions \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{
"model": "qwen3-coder-next",
"messages": [{"role": "user", "content": "hello"}]
}'
Swap "model" for any model below. Add "stream": true for SSE.
/main/v1Two concurrent lanes, each with full 192K context. One request runs at ~28 tok/s; two at once share to ~17 each (decode is RAM-bandwidth-capped — lanes buy concurrency, not more total throughput). A third simultaneous request queues until a lane frees. Decode rates are fresh-context.
qwen3-coder-nextdefaultLegacy names qwen3-coder, qwen3.6, qwen3.5 are aliases that all route to qwen3-coder-next (the three separate lanes were retired 2026-09-15).
/small/v1qwen2.5-coderbge-m3curl https://llm.pq.io/small/v1/embeddings \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{"model": "bge-m3", "input": "hello world"}'
Drop into ~/.config/opencode/opencode.json. Replace <your-token> with your bearer.
{
"$schema": "https://opencode.ai/config.json",
"provider": {
"pq.io": {
"npm": "@ai-sdk/openai-compatible",
"name": "pq.io",
"options": {
"baseURL": "https://llm.pq.io/main/v1",
"headers": {
"Authorization": "Bearer <your-token>"
}
},
"models": {
"qwen3-coder-next": { "name": "Qwen3-Coder-Next", "limit": { "context": 196608, "input": 188416, "output": 8192 } }
}
}
},
"model": "pq.io/qwen3-coder-next",
"compaction": {
"auto": true,
"prune": true,
"reserved": 17000,
"tail_turns": 2,
"preserve_recent_tokens": 8000
}
}
Explicit limit.input is required (upstream bug #13980 silently no-ops reserved without it). The trigger formula is limit.input - reserved — that's where the per-model compaction points above come from.
| OpenAI SDK | OpenAI(base_url="https://llm.pq.io/main/v1", api_key=TOKEN) |
| Aider | --openai-api-base https://llm.pq.io/main/v1 --openai-api-key $TOKEN --model openai/qwen3-coder-next |
| Cline / Continue / Roo | OpenAI-compatible provider, model qwen3-coder-next |
Per Qwen team recommendations. Already applied server-side; override per-request via standard OpenAI sampling fields.
| model | temperature | top_p | top_k | min_p | repeat_penalty | thinking |
|---|---|---|---|---|---|---|
qwen3-coder-next | 1.0 | 0.95 | 40 | 0.01 | — | no |