明廷盛 嘻嘻😁

支持多模态的模型

原文: https://github.com/deepseek-ai/deepseek-harness/blob/master/docs/user/guide/providers.zh.md

npm install -g @deepseek-ai/dsh
nohup dsh web > /tmp/dsh.log 2>&1 &

思考强度

llamacpp:
apiKeyEnv: LLAMACPP_API_KEY
api: openai-completions
baseURL: http://100.85.98.34:8000/v1
compat:
supportsDeveloperRole: false
maxTokensField: max_tokens
defaultInput:
- text
- image
models:
- id: /home/xi/models/Qwen3.8-27B-GPTQ-W4A16-nomtp
contextWindow: 204800
maxTokens: 131072
reasoningEfforts:
off: none
low: low
medium: medium
high: high
xhigh: xhigh

更新dsh配置文件

pkill -f '\.local/bin/dsh'; sleep 1; dsh --profile web --no-open
  • 位置: /Users/xi/.dsh/profiles/web/cordis.patch.yml
  • 做什么: 直接替换为这个
- insert:
- id: mcp-exa
name: '@deepseek-ai/dsh-mcp-client'
config:
serverName: exa
transport: streamable-http
url: https://mcp.exa.ai/mcp
headers:
x-api-key: 'YOUR_EXA_API_KEY'

其他MCP

# ~/.dsh/cordis.patch.yml  (全 profile 生效)
- insert:
# ① Exa:stdio 本地 npx,只开最便宜的 search
- id: mcp-exa
name: '@deepseek-ai/dsh-mcp-client'
config:
serverName: exa
transport: stdio
command: npx
args: ['-y', 'exa-mcp-server']
env:
EXA_API_KEY: 'YOUR_EXA_API_KEY'
ENABLED_TOOLS: 'web_search_exa'

# ② GitHub:stdio,key 从环境变量注入(不把密钥写进文件)
- id: mcp-github
name: '@deepseek-ai/dsh-mcp-client'
config:
serverName: github
transport: stdio
command: npx
args: ['-y', '@modelcontextprotocol/server-github']
env:
GITHUB_PERSONAL_ACCESS_TOKEN: !!js process.env.GITHUB_TOKEN

# ③ 任意远程 streamable-http server,带 Bearer 鉴权
- id: mcp-remote-api
name: '@deepseek-ai/dsh-mcp-client'
config:
serverName: remoteapi
transport: streamable-http
url: https://api.example.com/mcp
headers:
Authorization: !!js '`Bearer ${process.env.REMOTE_API_TOKEN}`'

列出插件

dsh plugin --profile web ls --depth 0
code --list-extensions --show-versions

带代理

https_proxy=http://127.0.0.1:7897
http_proxy=http://127.0.0.1:7897
ALL_PROXY=http://127.0.0.1:7897 \

更新

npm i -g @deepseek-ai/dsh@latest

billion context

启动带bil

# 一行:清掉旧 dsh + 旧 bili 代理,再带 bili 启动(代理自动落 8787)
lsof -ti tcp:3080 | xargs kill 2>/dev/null; lsof -ti tcp:8787 | xargs kill 2>/dev/null
nohup bili dsh -- --profile web --no-open >> ~/.dsh/review/dsh-restart.log 2>&1 &

检测bil状态

curl -s http://127.0.0.1:8787/__bili/health   # {"ok":true,...}
curl -s http://127.0.0.1:8787/__bili/stats # 你的 session-xxxx,发消息 requests +1

OpenCode

1.代理动启

open -a OpenCode --env HTTP_PROXY=http://127.0.0.1:7897 --env HTTPS_PROXY=http://127.0.0.1:7897

PI

列出插件 pi list
卸载 web-ui 扩展 pi remove npm:pi-web-ui
  • Title:
  • Author: 明廷盛
  • Created at : 2026-08-31 16:35:16
  • Updated at : 2026-08-31 16:35:16
  • Link: https://blog.20040424.xyz/2026/08/31/⏸️VibeCoding/3. dsh/
  • License: All Rights Reserved © 明廷盛