dsh-commandcode
DSH-Desktop LLM provider plugin for Command Code with model catalog sync, request retry, multi-credential support, and a settings UI.
安装
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:wjf1/dsh-commandcode说明文档
阅读完整 README ↗Configuration
API Key
Three ways to configure, in order of precedence:
- Settings Page — Go to Settings → Command Code, paste your API key, click Save
- Environment Variable — Export
COMMANDCODE_API_KEYin the shell that launches DSH - CLI Auth File — Run
command-code loginto write~/.commandcode/auth.json - Built-in Login — Click "Login with Browser" in the settings page for OAuth flow
Settings Reference
| Field | Type | Default | Description |
|---|---|---|---|
apiKeyEnv | string | COMMANDCODE_API_KEY | Environment variable name for the API key |
apiBase | string | https://api.commandcode.ai | Command Code Provider API base URL |
workingDir | string | process.cwd() | Working directory reported to the API |
modelsCachePath | string | ~/.commandcode/models-cache.json | Model catalog cache file path |
requestTimeoutMs | number | 60000 | Time to wait for first response byte |
streamIdleTimeoutMs | number | 300000 | Max stall allowed during streaming |
filterModelsByPlan | boolean | true | Hide models unavailable on current plan |
accounts | array | [] | Extra accounts for multi-account rotation |
activeAccount | string | — | Manually selected active account slot id |
lang | 'zh' | 'en' | 'zh' | Language for the /commandcode terminal command |
Multi-Account Configuration
### Multi-Account Configuration
```yaml
## Usage
### Selecting a Model
1. Open any conversation in DSH-Desktop
2. Click the model selector
3. Find the "Command Code" group
4. Select any available model (marked with `(CC)` suffix)
### Viewing Usage
- **Settings Page** — Go to Settings → Command Code → Usage & Plan card
- **Terminal Command** — Type `/commandcode` in the DSH terminal to see per-account usage, plan, and credit limits
### Login Flow
1. Go to Settings → Command Code
2. Click "Login with Browser"
3. Authorize in the opened browser tab
4. The API key is saved automatically — no restart needed
---
### Viewing Usage
- **Settings Page** — Go to Settings → Command Code → Usage & Plan card
- **Terminal Command** — Type `/commandcode` in the DSH terminal to see per-account usage, plan, and credit limits