rainforest888/dsh-plugins-raincode ↗★ 1
dsh-plugins-raincode
Use raincode's model layer (cheap model pool, prompt caching, retry) and skill library inside DeepSeek Harness (dsh)
安装
此插件尚未提供可验证的 bundle,或兼容性检查未通过。请先阅读仓库说明。 阅读完整 README ↗
说明文档
阅读完整 README ↗dsh-plugins-raincode
Make raincode the model layer of DeepSeek Harness (dsh): a cheap model pool
with StablePrefix prompt caching, retries, and failover, driven by a local
OpenAI-compatible gateway. Inside dsh you can pick any model from your raincode
pool and browse the raincode skill library with /skills.
The plugin is the "mouth" — it translates dsh's GenerateOptions to the OpenAI
wire format and streams chunks back — while the raincode gateway (Rust) is the
"brain" that owns profile selection, caching, and retries. The plugin holds no
model logic.
Prerequisites
-
Install raincode (
>= 0.1.0with gateway/v1/modelsand/skills):cd raincode cargo install --path crates/rc-cli # or use ./install.sh -
Configure profiles (your model pool):
raincode setup # writes ~/.raincode/profiles.toml -
Start the gateway (keep it running):
raincode proxy --port 8787Verify:
curl http://127.0.0.1:8787/health→{"ok":true,"service":"raincode-gateway"}.
Install in dsh
npm i dsh-plugins-raincode
Add the plugin to your dsh cordis.yml:
- id: raincode
name: dsh-plugins-raincode
config:
baseURL: http://127.0.0.1:8787
apiKeyEnv: RAINCODE_API_KEY
Configuration
| Field | Default | Meaning |
|---|---|---|
baseURL | http://127.0.0.1:8787 | raincode gateway address |
apiKeyEnv | RAINCODE_API_KEY | dsh credential seam only; the local gateway does not verify keys |
models | [] | optional static catalog override; the pool is served by the gateway |