wjf1/dsh-commandcode0

dsh-commandcode

适用于 Command Code 的 DSH-Desktop LLM 服务商插件,支持模型目录同步、请求重试、多凭据支持及设置 UI。

AI 分析

核心用途是为 Command Code 提供 DSH 桌面端的大模型服务接入。适合需要同步模型目录、管理 API 密钥和配置重试策略的用户,要求 DSH-Desktop >= 0.7.1。

包名
dsh-commandcode
版本
1.0.0
许可证
MIT
最近更新
2026年8月30日

安装

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:wjf1/dsh-commandcode

Configuration

API Key

Three ways to configure, in order of precedence:

  1. Settings Page — Go to Settings → Command Code, paste your API key, click Save
  2. Environment Variable — Export COMMANDCODE_API_KEY in the shell that launches DSH
  3. CLI Auth File — Run command-code login to write ~/.commandcode/auth.json
  4. Built-in Login — Click "Login with Browser" in the settings page for OAuth flow

Settings Reference

FieldTypeDefaultDescription
apiKeyEnvstringCOMMANDCODE_API_KEYEnvironment variable name for the API key
apiBasestringhttps://api.commandcode.aiCommand Code Provider API base URL
workingDirstringprocess.cwd()Working directory reported to the API
modelsCachePathstring~/.commandcode/models-cache.jsonModel catalog cache file path
requestTimeoutMsnumber60000Time to wait for first response byte
streamIdleTimeoutMsnumber300000Max stall allowed during streaming
filterModelsByPlanbooleantrueHide models unavailable on current plan
accountsarray[]Extra accounts for multi-account rotation
activeAccountstringManually 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