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

패키지
dsh-openai-api
호환성
미검증
버전
0.3.0
라이선스
MIT
최근 업데이트
2026. 10. 28.

설치

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:huyang2024/dsh-openai-api

Configuration

All keys optional; created sessions fall back to the host defaults.

keydefaultwhat it does
modeldefaultModel 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.
providerhost defaultProvider route for created sessions.
apiKeysunset (= [])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.
cwdthe dsh web process's cwdAbsolute working directory for created sessions. POSIX starts with /; Windows accepts D:/dir or D:\dir.
pathPrefix/v1Route prefix for all three endpoints.
sessionMapPath$DSH_HOME/openai-api/session-map.jsonWhere 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.
maxBodyBytes33554432Maximum accepted JSON request body in bytes.
allowedOriginsunsetExtra browser origins allowed to call cross-origin (exact origin strings).