backrooms-yrc/dsh-openai-gateway1

dsh-openai-gateway

Expose DeepSeek Harness as an OpenAI-compatible API server: /v1/chat/completions (stream + non-stream) and /v1/models, each API call backed by a real agent session with tools and a workspace.

AI 分析

核心用途是将 DSH 的 Agent 能力封装为标准的 OpenAI 接口,供外部客户端调用。适合需要将 DSH 接入现有第三方生态或工具链的开发者。

パッケージ
dsh-openai-gateway
バージョン
0.1.1
ライセンス
MIT
最終更新
2026/08/23

インストール

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:backrooms-yrc/dsh-openai-gateway

ドキュメント

README 全文を読む ↗

配置参考

patch 层条目(- id: openai-gateway + config:),未写的键用默认值:

默认说明
enabledtrue总开关
host127.0.0.1只绑回环最安全,对外走反代
port41540端口;0 = 随机(实际值写入 state.json
apiKeys[]留空自动生成并落盘(0600);填数组则只用你给的
sessionModebothboth / stateless(后者拒绝粘性会话请求)
maxSessions16粘性会话簿记上限(LRU)
timeoutSeconds300单轮超时:取消 Agent 并返回 504
defaultModel''请求未指定 model 时的兜底;空 = dsh 默认
workspace.cwd''Agent 工作目录;空 = $DSH_HOME/openai-gateway/workspace