Cline 設定
Cline 是一款流行的 VS Code AI 編碼插件(前身為 Claude Dev)。透過 OfoxAI 接入,可以使用多種模型。
設定步驟
1. 安裝 Cline
在 VS Code 擴充市集搜尋 Cline 並安裝。
2. 選擇 API Provider
- 開啟 Cline 側邊欄
- 點選設定圖示
- 在 API Provider 選擇 OpenAI Compatible
3. 填寫設定
| 設定項 | 值 |
|---|---|
| Base URL | https://api.ofox.ai/v1 |
| API Key | 你的 OfoxAI API Key |
| Model ID | anthropic/claude-sonnet-4.5 |
也可以選擇 Anthropic 作為 Provider,將 Base URL 設定為 https://api.ofox.ai/anthropic。這樣可以使用 Anthropic 原生協議的全部功能。
使用 Anthropic Provider(推薦)
如果主要使用 Claude 模型,推薦選擇 Anthropic Provider:
| 設定項 | 值 |
|---|---|
| API Provider | Anthropic |
| Base URL | https://api.ofox.ai/anthropic |
| API Key | 你的 OfoxAI API Key |
| Model | anthropic/claude-sonnet-4.5 |
推薦模型
| 場景 | 模型 | 說明 |
|---|---|---|
| 日常編碼 | anthropic/claude-sonnet-4.5 | 程式碼能力均衡 |
| 複雜重構 | anthropic/claude-opus-4.6 | 深度理解和推理 |
| 快速問答 | openai/gpt-4o-mini | 快速回應 |
| 長文件分析 | google/gemini-3-flash-preview | 大上下文窗口 |
常見問題
Q: 提示模型不支援
確認模型 ID 格式正確,包含 provider/ 前綴。
Q: 無法使用 Tool Use 功能
使用 Anthropic Provider 設定可以獲得完整的 Tool Use 支援。
Last updated on