dsh-http
Run the following command in DeepSeek Harness:
dsh plugin install ZhijiangTang/dsh-http
Paste the following prompt into your AI chat to install this plugin:
Run dsh plugin install ZhijiangTang/dsh-http in the DeepSeek Harness terminal to install dsh-http; the source repository is hosted at https://github.com/ZhijiangTang/dsh-http
About this plugin
In DSH workflows, both the model and Code Mode frequently need to make HTTP calls—hitting external APIs, pulling data, debugging endpoints. Ad-hoc approaches either drag in heavy dependencies or return loosely formatted responses that are hard for code to consume reliably. dsh-http collapses all of this into a single zero-dependency http_request tool built on Node's built-in fetch. Every response is normalized into a clean, predictable JSON structure, so the model and calling code can read status codes, timing, and response bodies with a consistent field shape.
Core capabilities span all six HTTP methods (GET/POST/PUT/PATCH/DELETE/HEAD), with support for custom headers, raw body or auto-serialized JSON payloads, convenient Bearer and Basic auth parameters, and configurable timeout plus response-body truncation. The tool is designed to never throw: network errors, timeouts, and parameter conflicts all fold into { ok: false, error: { stage, message } }, while success returns status, durationMs, sizeBytes, and either a parsed json or truncated text field. Callers simply branch on ok—no try-catch needed.
If you want your model to call external REST APIs directly, or you are writing Code Mode scripts that need cross-service communication, dsh-http offers a lightweight, build-free, pure-ESM entry point. It does not include SSRF interception and only validates that the URL scheme is http/https, so use it only in trusted, single-user environments. Where intranet isolation matters, layer a tools/pre-execute upstream policy to gate URLs.
Use Cases
- Model calls external REST APIs directly to fetch data
- Code Mode scripts performing cross-service calls and status checks
- Debugging endpoints with normalized timing, body, and redirect info
Best For
- DSH users who want the model to autonomously call external APIs
- Developers writing Code Mode scripts for inter-service communication
- Teams preferring a zero-dependency, build-free toolchain
Related Plugins
Free web search plugin for DeepSeek Harness with web search, X search, and page fetch; no signup or API key required, with automatic multi-engine failover.
AnySearch-powered web and vertical search plugin for DeepSeek Harness, offering real-time search, cleaned URL content, concurrent batch search via native web_search/web_fetch, no API key required.
Pixel-perfect webpage clone tool that uses an agent harness to turn any webpage into a scored, full-page React replica.
A bilingual cost-tracking plugin for DeepSeek Harness with session/daily cost, budget, official & custom provider balance, coding plan quotas, peak/off-peak pricing alerts, and history stats.