@dsh-external/dsh-web-service
Expose DSH over HTTP: 47 REST + SSE routes for workspaces, sessions (streaming, history, stats, todos, cancel), models, settings, skills and files, plus an OpenAI-compatible /chat/completions. · 把 DSH 的能力开放成 REST + SSE 接口与 OpenAI 兼容端点,供三方控制台、客户端与 Agent 集成。 适合需要将DSH集成至第三方控制台、客户端或外部Agent的开发者。
Install
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:toddpan/dsh-webapiREADME
Read the full README ↗Configuration
All fields are optional; they live in the plugin row's config in your profile patch (defaults in
src/index.ts):
| Field | Default | Meaning |
|---|---|---|
pathPrefix | /api/v1 | Route prefix |
apiKey | '' | Non-empty enables auth; requests must carry this key |
standalonePort | 0 | >0 also listens on its own port; 0 means host webserver only |
cors | true | Allow cross-origin requests |
defaultCwd | '' | Default working directory; empty means process.cwd() |
maxUploadBytes | 2 GiB | Upload size limit; use the chunked endpoints for bigger files |