Skip to content

rainforest888/dsh-plugins-raincode

30Last commit Aug 15, 2026

dsh-plugins-raincode DSH plugin

dsh-raincode makes raincode the model layer of DeepSeek Harness. It provides a cheap model pool with StablePrefix prompt caching, retries, and failover, driven by a local OpenAI-compatible gateway. The plugin translates dsh's GenerateOptions to OpenAI wire format and streams chunks back, while the raincode gateway handles profile selection, caching, and retries.

How to install the dsh-plugins-raincode DSH plugin

dsh plugin --profile web add dsh-plugins-raincode

Copying does not run this command. Review the repository and version before installing the dsh-plugins-raincode DSH plugin.

dsh-plugins-raincode DSH plugin data source

dsh-plugins-raincode DSH plugin snapshot date: Aug 16, 2026

discovered

What the dsh-plugins-raincode DSH plugin can do

  • Model selection from raincode pool (fetched from gateway's /v1/models)
  • /skills browsing to list and read raincode skill library
  • Prompt caching via sessionId (gateway-side)
  • Retry and failover per profile (gateway-side)
  • Parallel tool calls with separate blocks keyed by call index

Where the dsh-plugins-raincode DSH plugin fits

  • Use raincode as a cost-effective model pool for dsh
  • Browse and load skills from the raincode skill library
  • Leverage StablePrefix caching to reduce API costs
  • Configure failover across multiple models via raincode profiles

Who the dsh-plugins-raincode DSH plugin is for

  • DSH users who want to use raincode as a model backend
  • Developers who want to combine dsh with a local model gateway

dsh-plugins-raincode DSH plugin limitations

  • Requires raincode gateway to be installed and running (>=0.1.0)
  • The plugin itself holds no model logic; all intelligence is in the gateway
  • API key is a formality for loopback; remote gateway requires proper credential
  • Models are only available if the gateway is running and configured

dsh-plugins-raincode DSH plugin: from the repository README

Quoted from the rainforest888/dsh-plugins-raincode README, the upstream source of the dsh-plugins-raincode DSH plugin. Copyright remains with the original authors.

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 1. **Install raincode** (`>= 0.1.0` with gateway `/v1/models` and `/skills`): ```bash cd raincode cargo install --path crates/rc-cli # or use ./install.sh ``` 2. **Configure profiles** (your model pool): ```bash raincode setup # writes ~/.raincode/profiles.toml ``` 3. **Start the gateway** (keep it running): ```bash raincode proxy --port 8787 ``` Verify: `curl http://127.0.0.1:8787/health` → `{"ok":true,"service":"raincode-gateway"}`. ## Install in dsh ```bash dsh plugin --profile web add dsh-plugins-raincode ``` Then add the row to the profile's patch layer (`~/.dsh/profiles/

Read the full READMERepository license: MIT

dsh-plugins-raincode DSH plugin questions

Gateway not running?

You'll see TRANSPORT-style errors from the model call. Make sure the gateway is running with `raincode proxy --port 8787` and verify it with `curl http://127.0.0.1:8787/health`.

Why is the API key a formality?

A loopback gateway trusts the machine and resolves real upstream keys from `~/.raincode/profiles.toml` (inline, key file, or env). The plugin only demands a credential when `baseURL` points at a remote gateway. If you leave `apiKeyEnv` unset, loopback still works.

How do I add a model?

Run `raincode setup` to configure profiles interactively, or directly edit `~/.raincode/profiles.toml` and restart the gateway. The plugin will automatically pick up new models from the gateway's `/v1/models` endpoint.

How to install the plugin in dsh?

Run `dsh plugin --profile web add dsh-plugins-raincode`. Then add the appropriate row to the profile's patch layer (e.g., `~/.dsh/profiles/web/cordis.patch.yml`). After that, restart `dsh web` to load the plugin.

What if I don't set the RAINCODE_API_KEY environment variable?

Missing credentials don't block the gateway because it's loopback. The plugin only checks for the credential when the gateway is remote. For remote gateways, you must set the environment variable specified in `apiKeyEnv`.