快速了解
它能做什么
通过本地兼容 OpenAI 的 API 将 Open WebUI 模型接入 DSH,并提供应用内代理控制和用量报告。
本站提供的是中文说明,不代表该项目或 Plugin 自身提供中文界面;语言支持请以上游文档为准。
桌面端 Profile, Web Profile
Not declared in supplied evidence
证据已验证
核对日期 2026/9/15 UTC 14:24
选择前先看
此 DSH Bundle 将 chat2api 打包为本地反向代理,连接 DSH(或其他兼容 OpenAI 的客户端)与您的 Open WebUI 实例。其 OWUI 面板可配置 Open WebUI 地址及本地主机/端口、启动或停止代理、检查环境、同步模型和推理等级、查看进程日志,以及查看基于 token 的用量和成本估算。
适合谁
已使用 Open WebUI,并希望通过本地兼容 OpenAI 的 /v1 端点使用其中模型的 DSH Desktop 或原版 Web UI 用户。
常见任务
- 将 DSH 连接到您的 Open WebUI 中可用的模型。
- 从 DSH 启动并监控本地 Open WebUI 代理。
- 将发现的模型及其支持的推理强度等级同步到 DSH。
- 通过手动维护的价格表查看按模型划分的 token 用量和成本估算。
权限与数据
该 Bundle 运行本地代理,并需要访问本机上的 Open WebUI 登录会话。
权限- 运行内置的本地反向代理。
- 首次使用时打开浏览器窗口以登录 Open WebUI。
- README 声明代理仅监听 127.0.0.1。
- 将 Open WebUI 浏览器配置、令牌数据和用量数据库保留在本机。
- 将用量数据和代理配置存储在 ~/.dsh 中,因此插件更新后仍会保留。
- README 声明会话文件不进入 Git,也不包含在安装包中。
- 连接到您配置的 Open WebUI 地址。
- 需要通过浏览器登录 Open WebUI;登录后的会话会被复用。
局限
- 代理运行前可能需要安装 Python、requests 和 Playwright。
- 必须将默认占位地址替换为真实的 Open WebUI 地址。
- 模型可用性可能需要在面板中执行同步操作并重启 DSH。
- 提供的证据中未找到 0.9.0 版本的 npm 分发包。
DSHub 已核对
- 已验证包清单、DSH Bundle patch 和不可变 Git 分发路径。
- 清单声明包版本为 0.9.0,许可证为 MIT。
- 提供的 README 记录了 desktop 与 web profile 安装方式、本地代理行为和 OWUI 面板。
DSHub 未核对
- 尚未实际执行安装、代理启动、Open WebUI 登录、模型同步或仪表盘行为。
- 提供的证据未声明 DSH Harness 版本范围。
- 未测试其与特定 Open WebUI 部署或模型提供方的兼容性。
固定版本安装
安装 Open WebUI chat2api for DSH
这个Plugin Bundle没有 DSH Plugin 安装操作,请根据源码文档使用真实交付方式。
维护者原文
项目 README
English | 简体中文
dsh-owui-chat2api
An adapter that exposes the models in your Open WebUI as a standard
OpenAI-compatible /v1 API for DSH
(DSH Desktop or the stock web UI), plus a usage dashboard that lives inside DSH.
It bundles chat2api, runs it as a local reverse proxy, and adds a control panel to the DSH web shell:
DeepSeek Harness (or any OpenAI-compatible client)
│ standard /v1 API → http://127.0.0.1:8000
▼
dsh-owui-chat2api (local reverse proxy, keeps its own login)
▼
your Open WebUI (browser sign-in once, session reused afterwards)
<p align="center">
<img width="690" height="560" alt="The dsh-owui-chat2api control panel inside DSH: status, config, usage dashboard and process log" src="https://github.com/user-attachments/assets/65cd7151-bf5a-4a4c-aaca-85f5ab7f0043" />
</p>Features ✨
- ▶️ Start / stop the proxy from the panel
- 🩺 Environment check: is Python available, are the dependencies installed?
- ⚙️ Configure your Open WebUI URL, host and port
- 📊 Usage dashboard: today / yesterday / month / total, ranked per model with colorful share bars — plus a manual price table (per 1M tokens, cached tokens priced separately) that turns the stats into a cost estimate
- 🧠 One-click model and reasoning-level sync (see Reasoning effort)
- 📜 Process log with error highlighting, follow mode and copy
- 🎨 Color-coded sections with inline Tabler icons that follow the DSH theme (dark / light), zero external requests
Install 📦
Pick one of three ways: A is a single command, B needs no git, C
lets your DSH assistant do the whole thing.
⚡ Option A — one command (recommended)
The dsh CLI ships a plugin manager. One command installs the plugin and
registers it in your profile (dependencies + bundles). Pick the profile that
matches your setup — desktop for DSH Desktop, web for the stock web UI:
dsh plugin --profile desktop add github:Wecury/dsh-owui-chat2api#v0.8.0
dsh plugin --profile web add github:Wecury/dsh-owui-chat2api#v0.8.0
#v0.8.0pins the release tag — use the version you want (omit it to followmain).- Requires
giton PATH (pnpm clones the repo). Behind a proxy? Exporthttp_proxy/https_proxyfirst. - Restart DSH when it finishes. Later updates (same
--profileas install):dsh plugin --profile <desktop|web> update dsh-owui-chat2api.
📦 Option B — from the release tarball (no git needed)
From Releases → Assets, download
dsh-owui-chat2api-<version>.tgz. (The Source code (zip) button is the development tree — for contributing, not for installing.)Unpack it into the plugins folder. The tarball extracts to a
package/directory — move and rename it (tarships with Windows 10+):tar -xzf dsh-owui-chat2api-0.8.0.tgz Move-Item package "$env:USERPROFILE\.dsh\plugins\dsh-owui-chat2api-0.8.0"Register it in
%USERPROFILE%\.dsh\profiles\<desktop|web>\package.json(desktopfor DSH Desktop,webfor the stock web UI):"dependencies": { "dsh-owui-chat2api": "link:%USERPROFILE%\\.dsh\\plugins\\dsh-owui-chat2api-0.8.0" }, "dsh": { "profile": { "bundles": [ /* ... */ "dsh-owui-chat2api" ] } }Match the folder name to the version you downloaded.
🤖 Option C — let your DSH install it
Paste this to your DSH assistant and it will do the rest:
请帮我安装 DSH 插件 dsh-owui-chat2api(GitHub 仓库 Wecury/dsh-owui-chat2api)。
步骤:
1. 执行:dsh plugin --profile desktop add github:Wecury/dsh-owui-chat2api#v0.8.0
(用原版 web 界面就把 --profile desktop 换成 --profile web。需要本机有 git。
如果 dsh plugin 不可用,改用手动方式:从仓库 Releases 的 Assets 下载
dsh-owui-chat2api-<版本>.tgz,解压得到 package/ 文件夹,移动并改名为
%USERPROFILE%\.dsh\plugins\dsh-owui-chat2api-<版本>;然后在
%USERPROFILE%\.dsh\profiles\<desktop|web>\package.json 的 dependencies 里加
"dsh-owui-chat2api": "link:<该目录的绝对路径>",并把 "dsh-owui-chat2api"
加进 dsh.profile.bundles 数组)
2. 重启 DSH。
3. 验证:DSH 页面右上角出现 OWUI 圆标;点开面板,Status 区能显示状态即成功。
Quick start 🚀
- Restart DSH (after any install option above). The OWUI pill appears in the top-right corner.
- Open the panel and set your Open WebUI URL (the default is a placeholder).
- Click Start. The first run opens a browser window for a one-time sign-in; the session is reused afterwards.
Troubleshooting 🔧
| Symptom | What to do |
|---|---|
| Diagnostics shows Attention | Install the dependencies: pip install requests playwright, then playwright install |
| Login fails / asks to sign in again | Click Login in the panel and sign in once in the window |
| Models missing from the DSH picker | Click Sync models & reasoning levels, then restart DSH |
The URL is your-open-webui.example.com |
That's the placeholder — set your real address, then Start |
Reasoning effort 🧠
Reasoning models (e.g. served behind a vLLM gateway) honour reasoning_effort,
so DSH's model picker can show Off / Low / Medium / High.
The easiest way is the Sync models & reasoning levels button in the Configuration section: it probes your models, declares the supported level for each, and writes a backup first. When your backend gains a model, click it again — already-probed models hit the cache.
For manual declaration or using chat2api.py standalone, see
DEVELOPMENT.md.
Data & security 🔒
- Your Open WebUI session (
.chrome-profile,token.json, the usage database) stays on this machine and is excluded from git and from the package. - The usage database and the proxy config live under
~/.dsh, outside the plugin directory, so they survive plugin updates. - The proxy listens on
127.0.0.1only.
Development 🛠️
See DEVELOPMENT.md for the code layout, conventions and how to test a change locally.
License ⚖️
- Plugin code (outside
chat2api/): MIT — see LICENSE. - The bundled
chat2api/proxy: MIT © openwebui-chat2api contributors — see THIRD_PARTY_NOTICES.md and Sozbo-Tang/openwebui-chat2api.
有意识地管理
安装与管理
前置条件与目标 Profile
目标: 桌面端 Profile, Web Profile
交付方式: Git Bundle — Wecury/dsh-owui-chat2api#95e73934a52ff7552d882b06c477a416d7e9e638。
验证、更新与移除
显示生命周期命令
dsh plugin --profile desktop list兼容性与访问范围
Targets DSH Desktop and stock DSH web UI profiles: Not declared in supplied evidence。
风险事实
证据与编辑审查Manifest、Bundle patch、分发与新鲜度
不可变证据
审查状态与源码活动
请使用固定提交的 Git Bundle 源安装,不要假设可通过 npm 安装。
AI 审查于 2026/9/15 UTC 14:25。GitHub 事实核对日期: 2026/9/15 UTC 14:25。
自当前证据基线以来,没有记录到重要源码变化。