toddpan/dsh-webapi
Drives DSH over HTTP: 60 REST and SSE routes for workspaces, sessions, models, settings, skills and files, plus an OpenAI-compatible /chat/completions.
Turns the workspaces, sessions, models, settings, skills and files already inside DSH into plain REST endpoints and SSE streams — 60 routes, documented by a built-in OpenAPI 3.0 spec and a request page. The OpenAI-compatible /chat/completions endpoint means an existing OpenAI client can talk to DSH without changes, which is what makes a self-hosted console, a mobile client, CI automation or another agent calling DSH as a tool practical. A bilingual skill file teaches a DSH agent how to drive the same API.
Install
dsh plugin --profile web add github:toddpan/dsh-webapiREADME install line alongside the recommended prebuilt tarball; this GitHub form is documented as the source option. The plugin adds no new dependencies — it injects the host's webServer and tools and rides the DSH webserver, with an optional standalone port. An API key settings page and an OpenAPI 3.0 spec ship with it.
Compatibility
Peer ranges span DSH 0.1.0 to 0.2.x; the README records verification on 0.1.7-rc.2 and assembly verification on 0.2.0-rc.2. Routes ride the DSH host webserver unless a standalone port is configured, so whatever exposes DSH also exposes the API.
Details
- Repo: toddpan/dsh-webapi
- Category: Infrastructure & Deployment
- Stars: 3
- Version: Requires DSH 0.1.0–0.2.x (verified on 0.1.7-rc.2, type-checked on 0.2.0-rc.2); BSD-3-Clause
Alternatives
xiaohanqing/dsh-relay · dataelement/dsh-desktop · dsh-pub/dsh-pub