Unquant

Opening your workspace…

Unquant

How to use the Pi coding agent with Unquant

Pi supports OpenAI-compatible providers natively. One entry in its models file and Pi runs on Unquant.

Setup guide2 min readUpdated 1 October 2026
  1. 1

    Set your key

    export UNQUANT_API_KEY=your-unquant-key
  2. 2

    Add the provider

    Edit ~/.pi/agent/models.json:

    {
      "providers": {
        "unquant": {
          "baseUrl": "https://api.unquant.io/v1",
          "api": "openai-completions",
          "apiKey": "$UNQUANT_API_KEY",
          "models": [
            { "id": "glm-5.3-flash", "name": "GLM-5.3-Flash", "contextWindow": 262144 },
            { "id": "qwen-3.8-flash-next", "name": "Qwen 3.8 Flash Next", "contextWindow": 262144 }
          ]
        }
      }
    }
  3. 3

    Run Pi

    pi --model unquant/glm-5.3-flash

Keep reading