wjf1/dsh-commandcode0

dsh-commandcode

DSH-Desktop LLM provider plugin for Command Code with model catalog sync, request retry, multi-credential support, and a settings UI.

包名
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