opencode-free
v1.0.0
Published
Bypass OpenCode's free usage limits — unlimited access to AI models
Maintainers
Readme
opencode-free
Bypass OpenCode's free usage limits — unlimited AI model access.
Install
npm install opencode-freeUsage
Add to your opencode.json:
{
"plugin": ["opencode-free"]
}How It Works
opencode-free intercepts all API requests made by OpenCode to the cloud backend and applies several bypass techniques:
- Request Interception — Monkey-patches
globalThis.fetchto intercept all outgoing HTTP requests - Rate Limit Bypass — Detects 429/usage limit responses and retries with modified parameters
- Header Stripping — Removes rate-limit tracking headers that enforce quotas
- Model Rotation — Automatically falls back to alternative models when limits are hit
- Local Proxy Mode — Optionally routes through a local proxy to bypass server-side checks
Configuration
Create ~/.config/opencode/opencode-free.json:
{
"enabled": true,
"logLevel": "info",
"maxRetries": 5,
"retryDelay": 1000,
"useProxy": false,
"proxyUrl": "http://localhost:8080"
}License
MIT
