Repository navigation
Releases
Releases · TianYa-DAO/dsh-opencode-go-pool
v0.1.0
Pools several OpenCode Go subscriptions (one API key each) behind the single provider route the agent already uses.
- The route's
apiKeyEnvpoints at a pool-owned credential reference; the plugin writes the healthiest key into it before each request. - Health comes from the gateway usage endpoint (5-hour / weekly / monthly windows): a spent key never reaches the wire, and a stale reading refreshes in the background.
- On
HTTP 429+GoUsageLimitErrorit cools that key for the window reset and re-dispatches the same frozen request against the next key - only while the request has produced no token yet. - Misconfiguration fails loud at activation and names the offending field.
Install: dsh plugin add dsh-opencode-go-pool (npm) or the tarball asset below.