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
- Get a beta account and copy your
wk_live_...key. - 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" }
}
}
}
}- Pick
webik/kwaipilot/kat-coder-v2.5-devfrom 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