logologo
Document Center
文档中心
Quick StartKwaiKAT Model Development Tool Integration Guide

KwaiKAT Model Development Tool Integration Guide


Use the correct API URL for your billing model: one for "Coding Plan" and a different one for "Pay-as-you-go":

For Coding Plan Subscribers

For Pay-As-You-Go Users

openai:

https://vanchin.streamlake.ai/api/gateway/coding/v1

claude:

https://vanchin.streamlake.ai/api/gateway/coding/kat-coder-pro-v2.5/claude-code-proxy

Billing method: Each request consumes the quota included in your subscription.

openai:

https://vanchin.streamlake.ai/api/gateway/v1/endpoints

claude:

https://vanchin.streamlake.ai/api/gateway/v1/endpoints/kat-coder-pro-v2.5/claude-code-proxy

Billing method: You only pay for the tokens you actually use.


Claude Code

Before configuration, make sure to remove the following Anthropic-related environment variables:

  • ANTHROPIC_AUTH_TOKEN
  • ANTHROPIC_BASE_URL


1. Install

Refer to the official Claude Code documentation.

  • Install via npm:
npm install -g @anthropic-ai/claude-code


2. Configure API Settings

Create the Claude Code settings file at ~/.claude/settings.json and add the following configuration.


{
"env": {
"ANTHROPIC_BASE_URL": "https://vanchin.streamlake.ai/api/gateway/coding/kat-coder-pro-v2.5/claude-code-proxy",
"ANTHROPIC_AUTH_TOKEN": "YOUR_API_KEY",
"API_TIMEOUT_MS": "3000000",
"ANTHROPIC_MODEL": "kat-coder-pro-v2.5",
"ANTHROPIC_SMALL_FAST_MODEL": "kat-coder-pro-v2.5",
"ANTHROPIC_DEFAULT_SONNET_MODEL": "kat-coder-pro-v2.5",
"ANTHROPIC_DEFAULT_OPUS_MODEL": "kat-coder-pro-v2.5",
"ANTHROPIC_DEFAULT_HAIKU_MODEL": "kat-coder-pro-v2.5"
}
}


3. Switch Model and Start Using

  • Enter your project directory and start Claude Code:
cd /path/to/your/project

claude


Cline

1. Install

  • Search and Install Cline in VS Code Extensions Market.


2. Configure API Settings

1) Choose API Key Option

2) Fill in Configuration Details

Please fill in the following information:


3. Start Using

  • After configuration, switch the model in the chat panel to kat-coder-pro-v2.5 and start using it.


Kilo Code

1. Install

  • Search and Install Kilo Code in VS Code Extensions Market.


2. Configuring API Settings

1) Choose API Key Option

2) Fill in Configuration Details

Please fill in the following information:


3. Start Using

  • After configuration, switch the model in the chat panel to kat-coder-pro-v2.5 and start using it.


Roo Code

1. Install

  • Search and Install Roo Code in VS Code Extensions Market.


2. Configure API Settings

Fill in the configuration as follows:


3. Start Using

  • After configuration, switch the model in the chat panel to kat-coder-pro-v2.5 and start using it.


OpenCode

1. Install

Refer to the official OpenCode documentation.

  • Install via curl:
curl -fsSL https://opencode.ai/install | bash
  • Install via npm:
npm i -g opencode-ai


2. Configure API Settings

Create theOpenCode settings file at ~/.config/opencode/opencode.json and add the following configuration.

{
"$schema": "https://opencode.ai/config.json",
"provider": {
"streamlake": {
"npm": "@ai-sdk/openai-compatible",
"options": {
"baseURL": "https://vanchin.streamlake.ai/api/gateway/coding/v1",
"apiKey": "YOUR_API_KEY"
},
"models": {
"kat-coder-pro-v2.5": {
"name": "kat-coder-pro-v2.5"
}
}
}
}
}


3. Switch Model and Start Using

  1. Enter your project directory and start OpenCode:
cd /path/to/your/project

opencode
  1. Use the `/models` command and select kat-coder-pro-v2.5 .


Droid

1. Install

Refer to the official Droid documentation.

  • Mac / Linux:

curl -fsSL https://app.factory.ai/cli | sh

  • Windows:

irm https://app.factory.ai/cli/windows | iex

2. Configure API Settings

Create the Droid settings file at ~/.factory/settings.json and add the following configuration.

{
"customModels": [
{
"model": "kat-coder-pro-v2.5",
"displayName": "kat-coder-pro-v2.5",
"baseUrl": "https://vanchin.streamlake.ai/api/gateway/coding/v1",
"apiKey": "YOUR_API_KEY",
"provider": "generic-chat-completion-api",
"maxOutputTokens": 128000
}
]
}


3. Switch Model and Start Using

  1. Enter your project directory and start Droid:
cd /path/to/your/project

droid
  1. Use the /models command and select kat-coder-pro-v2.5 .


Cursor

Cursor supports custom model configuration **only for Pro Plan or higher subscriptions**.

1. Install

Download and install from the Cursor official website.


2. Configure Custom Model

Go to Settings → Models and enter the following:

Click View All Models, then Add Custom Model, and enter: kat-coder-pro-v2.5


3. Start Using

  • After configuration, switch the model in the chat panel to kat-coder-pro-v2.5 and start using it.




上一篇:-下一篇:Models Overview
该篇文档内容是否对您有帮助?
有帮助没帮助