backrooms-yrc/dsh-openai-gateway
backrooms-yrc★ 2JavaScriptLast synced: 2026-08-23
Expose DeepSeek Harness (dsh) as an OpenAI-compatible API server — /v1/chat/completions + /v1/models, backed by real agent sessions with tools and workspaces. 把 DeepSeek Harness 暴露为 OpenAI 兼容 API 服务端。
README excerpt
dsh-openai-gateway Expose DeepSeek Harness (dsh) as an OpenAI-compatible API server — POST /v1/chat/completions (stream + non-stream) and GET /v1/models . Every API call is backed by a real agent session with tools and a workspace, so any OpenAI client (SDK, Raycast, scripts, IDE plugins…) can drive your agent by just filling in a base URL and an API key. 把 DeepSeek Harness 暴露为 OpenAI 兼容 API 服务端:每次 API 调用背后是带工具、带工作区的真实 Agent 会话。 工作原理 dsh 共享 Web 服务器的路由会被登录门插件(如 @xgone/dsh-remote )整体包装,纯 Bearer 的 API 客户端拿不到浏览器会话。因此本插件 自建独立监听 、鉴权完全自理——API 流量与 Web UI 的登录门互不干扰,可分别暴露。 安装(完整流程) 1. 安装插件 2. 重启 dsh web 首次新增包需要重启一次: 3. 找到你的端口和 API key 端口 :默认 127.0.0.1:41540 (这只是本插件的默认值,与 dsh 本身的端口无关,完全可以改)。权威查询方式——监听成功后插件会把实际地址写进状态文件, port: 0 (随机端口)场景同样适用: API key :未配置时首次启动自动生成一个,0600 权限落盘: 自检 : 4. 发起第一次调用 DSH HOME 默认是 /.dsh ;用环境变量 DSH HOME 自定义过的以实际为准。 端口说明(重要) - 41540 是 本插件的默认端口 ,不是 dsh 官方约定。它被占用时插件不会启动 dsh 崩溃,但会记录 FATAL: port ... already in use 日志,且 state.json 不会更新、 /healthz 不通——此时换一个端口即可; - 修改端口(在 profile 的 cordis.patch.yml 或 $DSH HOME/cordis.patch.yml 中): 改完重启 dsh web 生效。 会话模型 - 无状态(默认) : messages 全量拼为一条 prompt,回合结束即销毁会话,零残留。任何 OpenAI 客户端即插即用。 - 粘性会话(扩展) :首次请求带 X-DSH-Session: new 头(或 body 扩展字段 "dsh sessio…
View full README on GitHub →Category
🌊 The original agent meta-harness. Deploy intelligent multi-player swarms, coordinate autonomous workflows, and build conversational AI systems. Features adaptive memory, self-learning intelligence, RAG integration, and native Claude Code / Codex / Hermes and many more Integrated
★ 69,644
volcengine/OpenVikingSelf-evolving Context Database for AI Agents. Unify Agent Memory, Knowledge RAG and Skills.
★ 34,132
tt-a1i/archifyAgent skill for beautiful, verifiable architecture, workflow, sequence, data-flow, and lifecycle diagrams—self-contained HTML with motion and crisp export.
★ 27,048