跳至主要內容
所有用戶端
VS Code & JetBrains Orchestrator1M Context · ZDR

Kilo Code

Open-source VS Code and JetBrains AI coding orchestrator wired directly to bf16.ai 1M-context uncensored models.

基礎網址
https://api.bf16.ai/v1
協定
openai-completions

適用對象
Engineers using Kilo Code in VS Code or JetBrains IDEs who want transparent USD per-token billing and uncensored security/systems coding.

架構原理與接入優勢

Kilo Code Orchestrator in VS Code / JetBrains connected to https://api.bf16.ai/v1
Kilo Code connects directly to https://api.bf16.ai/v1 via OpenAI Compatible provider profiles across VS Code and JetBrains.

Kilo Code combines Cline and Roo Code capabilities into a polished VS Code and JetBrains agent extension with Orchestrator workflows, inline code actions, and per-profile provider routing.

Connecting Kilo Code to `https://api.bf16.ai/v1` bypasses platform markup and moderation bottlenecks, giving Orchestrator subtasks direct access to 1M-context `zai-org/glm-5.3-uncensored`, `moonshotai/kimi-k3.1-pro-uncensored`, and `deepseek/deepseek-v4.1-flash-uncensored`.

指令預設顯示 $BF16_API_KEY。登入並建立金鑰後會自動填入你的真實金鑰。

一鍵快速配置

One-Command Kilo Code Endpoint Smoke Test

Verifies your bf16.ai API key and lists live model IDs ready to select in Kilo Code’s OpenAI Compatible dropdown.

export BF16_API_KEY="sk-bf16-v1-..."
curl https://api.bf16.ai/v1/models -H "Authorization: Bearer $BF16_API_KEY"
  1. 1

    Configure OpenAI Compatible Provider in Kilo Code

    Open Kilo Code Settings → Providers, switch API Provider to "OpenAI Compatible", enter Base URL https://api.bf16.ai/v1, paste your API key, and select zai-org/glm-5.3-uncensored from the fetched model list.

    API Provider: OpenAI Compatible
    Base URL:     https://api.bf16.ai/v1
    API Key:      $BF16_API_KEY
    Model:        zai-org/glm-5.3-uncensored
  2. 2

    Confirm 1M Context Window & Prompt Caching

    Verify Context Window reads 1048576 under Model Configuration so large monorepo files are never truncated early.

Kilo Code — Settings → Providers → OpenAI Compatible
介面與設定檔欄位對照
Kilo Code / Providers / Custom OpenAI-Compatible Profile

關鍵參數核對清單

API Provider
OpenAI Compatible
Base URL
https://api.bf16.ai/v1
API Key
sk-bf16-v1-••••••••••••
Model
zai-org/glm-5.3-uncensored

Context Window: 1,048,576 · Enable R1/Reasoning format if prompted.

Use a second profile pointed at deepseek/deepseek-v4.1-flash-uncensored for high-frequency Code/Autocomplete turns.

推薦模型分層配置

架構規劃使用旗艦模型,高頻子任務與螢幕截圖使用 Flash 模型以節省開銷。

工作流角色模型 ID選型說明USD / 1M Tokens
Orchestrator & Architectzai-org/glm-5.3-uncensoredAccurate task decomposition and multi-file edits.$1.35 in / $0.25 cached / $4.20 out
Fast Code & Screenshot Tasksdeepseek/deepseek-v4.1-flash-uncensoredLow-latency execution + native image input.$0.26 in / $0.045 cached / $1.00 out

如何確認設定成功

  • Model dropdown in Kilo Code populates automatically from GET /v1/models.
  • First task streams reasoning + tool calls and logs in bf16.ai/dashboard/logs.
  • curl https://api.bf16.ai/v1/models -H "Authorization: Bearer $BF16_API_KEY"

生產環境護欄與預算隔離

  • Pin auto-execution terminal whitelists to test runners (`pnpm test`, `pytest`, `cargo check`) rather than wildcard shell commands.

常見錯誤

現象
404 error when fetching models or starting a task.
原因
Trailing /chat/completions was pasted into Base URL, or /v1 was omitted.
解法
Set Base URL strictly to https://api.bf16.ai/v1.