docs: 优化自定义 CLI 注册说明

- 明确通过 Dashboard 界面注册
- 简化配置说明为表格形式
- 强调注册一次永久语义调用
This commit is contained in:
catlog22
2026-01-17 11:05:30 +08:00
parent 10b3ace917
commit fd145c34cd
2 changed files with 22 additions and 30 deletions

View File

@@ -185,23 +185,19 @@ User: "Use Gemini to plan the refactoring, then Codex to implement it"
### Custom CLI Registration
Register **any API as a custom CLI** via Dashboard API Settings:
Register **any API as a custom CLI** via Dashboard interface:
```json
// Example: Register "deepseek" as custom CLI
{
"tools": {
"deepseek": {
"enabled": true,
"type": "api-endpoint",
"endpoint": "https://api.deepseek.com/v1/chat",
"apiKey": "your-api-key"
}
}
}
```bash
ccw view # Open Dashboard → Status → API Settings → Add Custom CLI
```
After registration, use it semantically:
| Field | Example |
|-------|---------|
| **Name** | `deepseek` |
| **Endpoint** | `https://api.deepseek.com/v1/chat` |
| **API Key** | `your-api-key` |
After registration, use it semantically like built-in CLIs:
```text
User: "Use DeepSeek to analyze this algorithm complexity"
@@ -211,7 +207,7 @@ User: "Let DeepSeek and Gemini compare their analysis results"
→ System auto-calls: deepseek + gemini in parallel
```
> ⚙️ **Dashboard**: `ccw view` → Status → API Settings to manage custom CLIs.
> ⚙️ Register once, invoke semantically forever - no code changes needed.
---