跳到正文
dsh-market 浏览插件 GitHub EN

173787247/dsh-wsl-ollama

本机 Ollama:status / list / chat / embed(不可达时给出 Windows/WSL 网关提示)。

Star 数 ★ 1 分类 WSL 与 Windows 互操作 收录于 2026-09-24

安装

在 DeepSeek Harness 里通过 dsh-market 安装

dsh plugin --profile web add dshmarket

或使用命令行

dsh plugin --profile web add github:173787247/dsh-wsl-ollama

装任何插件都等于在你的机器上跑第三方代码,权限和你本人一样大——能读你的文件、用你的凭据、访问网络。请先审阅源码,并尽量锁定 commit(github:owner/repo#sha)。

README

语言: 中文(本页) · English

在 WSL 上给 DeepSeek Harness 接本地 Ollama:ollama_status / list / chat / embed。

可选插件,不在 install.sh。

最短上手

dsh plugin --profile web add github:173787247/dsh-wsl-ollama
# 或本机 path 链进 web profile 后 restart

Ollama 需已在跑。默认基址 http://127.0.0.1:11434。

若 Ollama 装在 Windows、dsh 在 WSL:localhost 常会 503。可:

  • 让 Ollama 监听 0.0.0.0:11434,或
  • 设 DSH_OLLAMA_BASE=http://<Windows主机IP>:11434(插件也可在 baseUrl 为空时尝试从 /etc/resolv.conf 推主机)

工具

工具 作用
ollama_status 基址、连通性、默认模型
ollama_list 已拉取模型列表
ollama_chat 本地对话
ollama_embed 向量(给 vecmem 等用)

配置

config:
  enabled: true
  baseUrl: ""              # 空 = 自动探测
  defaultModel: ""         # 或环境变量 DSH_OLLAMA_MODEL
  timeoutMs: 120000
  maxPromptChars: 32000

环境变量:DSH_OLLAMA_BASE / OLLAMA_HOST、DSH_OLLAMA_MODEL。

兼容性

字段 值
插件 dsh-wsl-ollama 0.2.0
最低 dsh ≥ 0.1.2(Web UI 一次性 ?token=,Windows 中继 :3081)
最新验证 以 dsh-wsl-kit 兼容性 为准(当前 0.2.0-rc.2)— 套件唯一真源
套件档位 可选(默认不在 install.sh / KIT_SET=daily)

License

MIT

内容来自项目 README(GitHub)↗

评论

评论存放在 GitHub Discussions。用 GitHub 账号登录后可发表评论或点表情。