Skip to content

Use OpenCode with WebikAI

OpenCode loads custom providers through the AI SDK's OpenAI-compatible adapter, so the WebikAI edge drops into opencode.json as one provider block.

Setup

  1. Get a beta account and copy your wk_live_... key.
  2. Add the provider to opencode.json:
json
{
  "$schema": "https://opencode.ai/config.json",
  "provider": {
    "webik": {
      "npm": "@ai-sdk/openai-compatible",
      "name": "WebikAI",
      "options": {
        "baseURL": "https://api.webik.ai/v1",
        "apiKey": "wk_live_..."
      },
      "models": {
        "kwaipilot/kat-coder-v2.5-dev": { "name": "KAT-Coder V2.5" }
      }
    }
  }
}
  1. Pick webik/kwaipilot/kat-coder-v2.5-dev from OpenCode's model list and go — tool calling and streaming work out of the box.

Full reference: docs · the model: KAT-Coder V2.5 · apply for the beta