dsh-llamacpp
DeepSeek Harness LLM 适配器插件:通过兼容 OpenAI 的 /v1/chat/completions API 连接本地 llama.cpp 服务器。
AI 分析
核心用途是让 DSH 能够接入并使用本地 llama.cpp 运行的大语言模型。适合希望在本地离线部署和运行 LLM 的用户。必要条件是需运行本地 llama.cpp 服务。
安裝
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:jwilson411/dsh-llamacpp說明文件
閱讀完整 README ↗Configuration
| Key | Env fallback | Default |
|---|---|---|
baseURL | DSH_LLAMACPP_BASE_URL | http://127.0.0.1:8080/v1 |
model | DSH_LLAMACPP_MODEL | qwen |
apiKey | DSH_LLAMACPP_API_KEY | (unset — no Authorization header is sent) |
provider | — | ['llamacpp'] |
The patch row wins over the environment; the environment fills in whatever the row leaves out. An exported-but-empty variable counts as unset.
baseURL already includes /v1, and requests go to ${baseURL}/chat/completions — the /v1 is
never doubled. If your server sits behind a proxy that strips the prefix, set baseURL to the base
the proxy actually serves.
Cordis overlay
To point the plugin at a different server, model, or credential, target the llamacpp id in your
profile overlay. An id-targeted patch replaces the whole config object, so repeat every field
you want, not just the one you are changing:
- id: llamacpp
config:
baseURL: http://127.0.0.1:9090/v1
model: qwen3-coder
apiKey: change-me