Ai Sdk Provider Dsh
krislavten/ai-sdk-provider-dsh · model-adapters
AI SDK provider that drives a DeepSeek Harness (dsh) runtime as a LanguageModelV3 — works on AI SDK v6 and v7.
★ 3GitHub stars
0Forks
2026-08-27Last updated
TypeScriptLanguage
MITLicense
Key features
- bash (foreground), read/write/edit (fs), subagent, todo_write — tools execute inside the harness
- Each provider instance spawns (lazily) one dsh runtime subprocess speaking stdio JSON-RPC (the dsh SDK protocol).
- JSONL session persistence with automatic context compaction
- $DSH_SYSTEM_PROMPT selects the deployment persona
- doGenerate / doStream translate AI SDK LanguageModelV3CallOptions into a dsh prompt, then map the runtime's session.event stream back into AI SDK stream parts (text-start/delta/end, reasoning-start/delta/end, tool-input-start/delta/end, tool-call, finish).
Requirements
- This provider implements the LanguageModelV3 specification (specificationVersion: 'v3'), the interface shared across AI SDK majors.
- A single build serves both
Install command
dsh plugin --profile web add github:krislavten/ai-sdk-provider-dsh