← Setup guides

Use Kimi K3.1 Pro and GLM-5.3 in OpenCode

Point OpenCode at ParamHub with the setup below. You pay per token from prepaid credits; there is no subscription.

What you need

  • OpenCode installed:npm install -g @opencode/cli
  • A ParamHub API key with credits on the account.Create a key →

Set it up

OpenCode has two release lines with different config formats: 2.x (npm @opencode/cli) and 1.x (npm opencode-ai). Use the tab that matches yours, put your key in PARAMHUB_API_KEY, then start OpenCode.

{
  "$schema": "https://opencode.ai/config.json",
  "model": "paramhub/kimi-k3.1-pro",
  "providers": {
    "paramhub": {
      "name": "ParamHub",
      "env": [
        "PARAMHUB_API_KEY"
      ],
      "package": "@opencode/ai/providers/openai-compatible",
      "settings": {
        "baseURL": "https://api.paramhub.com/v1"
      },
      "models": {
        "kimi-k3.1-pro": {
          "name": "Kimi K3.1 Pro"
        },
        "GLM-5.3": {
          "name": "GLM-5.3"
        },
        "GLM-5.2": {
          "name": "GLM-5.2"
        }
      }
    }
  }
}

Check that it works

  1. 1Run a one-off task: opencode run --auto --model paramhub/kimi-k3.1-pro "say hello".
  2. 2Send any prompt. The request appears under Usage in your ParamHub console with its token counts and cost.

Which model to pick

We ran OpenCode 2.3.2 through ParamHub on one task: fix 4 planted bugs and add a feature in a 6-file Python library, graded by 11 hidden tests.

ModelPassedTimeInputCachedOutputCost
kimi-k3.1-pro2/23.2 min114,00082%7,100$0.11
GLM-5.32/27.1 min347,00092%19,400$0.14
GLM-5.21/13.3 min120,00080%11,600$0.07

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

  • The numbers below are from 2.3.2. Version 1.19.6 also passed on kimi-k3.1-pro and GLM-5.3 with the 1.x config.
  • A 1.x install silently ignores the 2.x config: the provider just does not appear. If your models are missing, check which version you have.
  • 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 model providers located in China. Read the Privacy Policy before sending confidential code. Privacy Policy →

If something goes wrong

Authentication error (401)

The key is wrong or disabled. Copy it again from API Keys.

Balance error (403)

The account has no credits. Add credits on the Billing page.

Model not available (503, model_not_found)

Check the spelling and case of the model name.

Switch back

Delete the paramhub provider and the model line from the config file.

Try it on your own repo

Create an account, add credits from $5, and paste your key into the setup above.

Get started

Other tools

OpenCode belongs to its respective owner. ParamHub is an independent service and is not affiliated with or endorsed by it.