kelemiao / dsh-api

목록에 있음

Local HTTP API for DeepSeek Harness: let other agents control DSH sessions through official ApiProxy routes.

main세션 소스 보기

설치

npx -y @deepseek-ai/dsh plugin --profile web add github:kelemiao/dsh-api

이 설치 명령은 GitHub 저장소 주소에서 생성된 확인되지 않은 시작점입니다.

README

유지 관리자가 작성한 문서 스냅샷입니다.

GitHub에서 보기 ↗
커밋 0b7bc59동기화 2026. 8. 18.

dsh-api

Local HTTP API for DeepSeek Harness (DSH). Other AI agents use it to control DSH through plain HTTP instead of the GUI.

Milestone one covers session control: list and create sessions, read history, send prompts, stream replies, and cancel turns. Everything else remains available through the raw /api/* passthrough.

Install

Install the plugin into a DSH web profile:

dsh plugin --profile web add link:C:/path/to/dsh-api

The package declares dsh.bundle.patch, so dsh plugin registers it in the profile's dsh.profile.bundles automatically. No manual cordis patch is needed. Once published, install from the registry with dsh plugin --profile web add dsh-api.

Settings live in the GUI Settings page under dsh-api and apply immediately.

Settings

FieldTypeDefaultNotes
enabledbooltrueserver on/off
portint47771-65535, loopback only
tokensecretgenerated on first runfixed bearer token

Endpoints

MethodPathPurpose
GET/healthPublic health check.
GET/api/sessionsList sessions: { items: SessionSummary[] }.
POST/api/sessionsCreate session; body { cwd?, workspaceId?, agentPreset? }.
GET/api/sessions/:id/historyRead history; query beforeSeq?, maxMessages?.
POST/api/sessions/:id/promptSend prompt; body { content, mode? }.
POST/api/sessions/:id/cancelCancel the running turn.
GET/api/sessions/:id/streamSSE stream filtered to this session.
POST/api/*Raw official ApiProxy JSON RPC passthrough.
GET/api/events.muxRaw official aggregated SSE stream.

Convenience routes win over the passthrough; any other request whose path starts with /api/ is forwarded verbatim to the official ApiProxy transport.

Authentication

All routes except /health require Authorization: Bearer <token>. The server binds 127.0.0.1 only. Missing or wrong tokens get 401.

SSE

curl -N -H "Authorization: Bearer $DSH_API_TOKEN" \
  http://127.0.0.1:4777/api/sessions/<sessionId>/stream

Frames are official MuxFrame objects, filtered by session id. A prompt whose single text block starts with / runs as a slash command, like the GUI.

Smoke test

With the plugin enabled in a running DSH:

DSH_API_TOKEN=<token> node scripts/smoke.mjs

DSH_API_URL defaults to http://127.0.0.1:4777.

Scope

Out of milestone one: ergonomic wrappers for approvals, subagents, goals, jobs, settings, credentials, and workspace mutation; TLS; remote bind; multi-user tokens.

프로젝트 파일 및 신호

표시된 항목은 디렉터리 스냅샷에서 감지된 공개 저장소 신호입니다.

테스트감지됨
문서감지됨

저장소 정보

언어
JavaScript
라이선스
보고되지 않음
최신 릴리스
v0.1.0
마지막 업데이트
2026. 8. 18. 오전 9:02

신중하게 설치하기

소스 코드, 권한, 수명 주기 스크립트, 의존성 및 네트워크 접근을 검토하고 신뢰하지 않는 플러그인은 격리 환경에서 테스트하세요.