huyang2024/dsh-openai-api ↗★ 3
dsh-openai-api
OpenAI-compatible HTTP surface backed by DSH agent sessions: POST /v1/chat/completions, POST /v1/responses, GET /v1/models over the harness webServer + agents services, plus a sidebar panel showing the base URL
インストール
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:huyang2024/dsh-openai-apiドキュメント
README 全文を読む ↗Configuration
All keys optional; created sessions fall back to the host defaults.
| key | default | what it does |
|---|---|---|
model | default | Model id advertised at /v1/models. A request's model (absent, or this id) uses the host default selection; any other id is passed to the session as the model. |
provider | host default | Provider route for created sessions. |
apiKeys | unset (= []) | Per-client keys. Each distinct key is a separate tenant — one session per (key, preset, session). When set, a request must present one (Authorization: Bearer ); otherwise it is a 401. Unset, the surface is a single keyless tenant restricted to loopback callers. |
cwd | the dsh web process's cwd | Absolute working directory for created sessions. POSIX starts with /; Windows accepts D:/dir or D:\dir. |
pathPrefix | /v1 | Route prefix for all three endpoints. |
sessionMapPath | $DSH_HOME/openai-api/session-map.json | Where the role-session map is written (absolute). Keyed by the SHA-256 of (tenant, preset, session) — never the key itself — written 0600, atomically, capped at 200 entries. |
maxBodyBytes | 33554432 | Maximum accepted JSON request body in bytes. |
allowedOrigins | unset | Extra browser origins allowed to call cross-origin (exact origin strings). |