azrinaldi / opencode-free-bridge
OpenAI-compatible bridge for OpenCode free-tier models — no account required
Why this job: says: openai compatible; topics: proxy
What it does
- Self-healing client identity. Derives the OpenCode CLI wire identity at the current release commit SHA and updates automatically when upstream tightens the gate.
- Live catalog discovery. Reads models.opencode.ai/api.json (and /v1/models) to expose only active free-tier models (cost.input === 0, non-deprecated) and reject retired or paid model IDs locally with a clear error.
- Dual-protocol support. Routes requests to /inference/openai/v1/chat/completions or /inference/openai/v1/responses based on catalog metadata and automatic protocol-mismatch detection.
- Reasoning-aware token budgeting. Applies an additive token floor (max(requested, 1024) + 4096) for reasoning models (determined from catalog reasoning: true metadata) so short prompts do not return empty content with finish_reason: "length"
- Reasoning stream normalization. Emits thinking tokens under reasoning_content for both streaming SSE and non-streaming JSON responses, and forwards client tool calls with automatic name de-collision (read -> read_client upstream, restored t
Get started
curl -fsSL https://raw.githubusercontent.com/azrinaldi/opencode-free-bridge/main/install.sh | bash - Maintenance
- Active
- Last commit yesterday
- Stars
- 105
- +17 this week
- Licence
- MIT
- Allows business use
- Downloads for
- None listed
- No release files
- Latest version
- None yet
- No releases
- Built with
- JavaScript
- 94% of the code
Is it looked after?
- Contributors
- 5
- Last 90 days
- Issues
- 100% closed
- 0 still open
- Pull requests
- 4 merged
- 1 waiting
- Releases
- None
- Never published
- No contributing guide
- No security policy
- No code of conduct
Similar repos
| Repo | Stars | Last commit | Licence | Downloads for |
|---|---|---|---|---|
| jwadow / kiro-gateway | 2,353 | 5 months ago | AGPL-3.0 | No downloads |
| lidge-jun / opencodex | 18,366 | today | MIT | Mac, Windows, Linux |
| ajsai47 / backdoor | 302 | 5 months ago | MIT | No downloads |
More: languages, topics and project record
Languages
- JavaScript 94%
- Shell 6%
- Dockerfile <1%
Topics
- ai
- bridge
- deepseek
- free
- llm
- muse-spark
- nodejs
- openai
- opencode
- proxy
Project record
- JobModel gateways
- StatusNew to our list
- Commits102
- Forks20
- Watching0
- Stars in 28 days+91
- CreatedOct 13, 2026
- First seen by usNov 11, 2026
- CheckedNov 11, 2026
