@dsh-external/dsh-web-service
将DSH能力开放为REST和SSE接口 适合需要将DSH集成至第三方控制台、客户端或外部Agent的开发者。
安装
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:toddpan/dsh-webapi说明文档
阅读完整 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 |