citydirector/deepinfra-fusion-proxy ↗★ 1

deepinfra-fusion-proxy

Local reverse proxy for the DeepInfra API (injects service_tier/fail_fast, falls back between Standard and Flex with per-session cooldown locks), shipped as a DSH profile bundle with a per-session composer toggle, a status-first configuration page.

Package
deepinfra-fusion-proxy
Compatibility
Unverified
Harness peer range
>=0.2.1-rc.2 <0.3.0 || >=0.2.2-alpha.2 <0.3.0
Version
2.2.2
License
MIT
Last updated
Nov 1, 2026

Install

$npx -p @deepseek-ai/dsh dsh plugin --profile web add deepinfra-fusion-proxy

Configuration

State lives in config.json (auto-created with defaults on first boot):

{
  "defaultMode": "standard",        // "standard" | "flex"
  "coolLockRounds": 4,              // 0-99: cooldown length after a 429 fallback
  "sessions": { "": "flex" },   // per-session mode override
  "fallbackAction": "stay",         // "stay" | "cooldown"
  "defaultWait": "failfast",        // "failfast" | "wait"
  "waitModes": { "": "wait" }   // per-session wait override
}
  • Mode resolution: a cooldown lock for the session (→ standard) > sessions[id] > defaultMode.
  • Wait resolution: waitModes[id] > defaultWait.
  • standard never injects anything. flex injects service_tier: "flex" and fail_fast per the wait policy (failfast → true, wait → false).
  • Unknown modes normalize to standard (forward-compatible).