jasonxu114514/opencode2api
A Go-based OpenCode Zen / Zen Go API proxy with OpenAI & Anthropic API compatibility, key/proxy pooling, automatic routing, and WebUI.
Build with Backblaze B2
SDKs, agent skills, IDE extensions, and reference pipelines from Backblaze Labs. All open source.
Loading star history...
Where it stands
Rank, growth pace and release cadence relative to everything GStars tracks.
Ranks #112 of 3,103 repositories GStars tracks this week (top 4%).
5 releases in the last 90 days, the latest 3 days ago, with 20 contributors on GitHub.
Use Cases & Benefits
- Implements a Go-based API gateway proxy that translates and routes requests between OpenCode Zen, Zen Go, OpenAI, and Anthropic APIs with key and proxy pooling.
- Provides seamless protocol translation, automatic routing, and integrated WebUI without requiring Node.js or a database, simplifying multi-provider AI API management.
- Use for consolidating multiple AI model APIs into a single unified endpoint with automatic key and proxy management for scalable inference.
- Use for deploying a self-hosted AI API proxy with real-time diagnostics, quota dashboards, and configuration hot reload for operational control.
- Use for enabling anonymous or authenticated access to free and paid AI models with dynamic model discovery and fallback routing across providers.
Should you depend on it?
License terms, project hygiene and risks, from GitHub metadata and GStars' snapshots.
License
GPL 3.0
Copyleft: distributing software that includes it generally requires releasing your source under the same license.
Community files
- README: present
Watch-outs
- GPL-style copyleft: including it in distributed software generally requires releasing your source under the same license.
General guidance from repository metadata, not legal advice. How we score
From the README
A Go gateway for OpenCode Zen and Zen Go. It exposes Chat Completions, Responses, and Anthropic Messages endpoints, translates between their native protocols, and manages upstream keys and proxies.
The executable includes the WebUI. Running the service requires no Node.js runtime or database.
See the management console guide (Chinese) for the new pages and configuration.
Download a binary from GitHub Releases, or build with Go 1.24 or newer:
On Windows, use
Copy-Item config.example.json config.json, build withgo build -o opencode2api.exe ./cmd/opencode2api, then run.\opencode2api.exe -config config.json.The example listens on
127.0.0.1:8080for the API and0.0.0.0:8081for the WebUI. Openhttp://localhost:8081locally. Restrict management access and use an HTTPS reverse proxy when accessing it over a network.The configuration directory must be writable for password migration, configuration saves, and model caches.
Daily snapshots
Stars gained per day, and how forks and open issues moved, from GStars' daily snapshots
+357 stars over 7 days across 4 snapshot days; best day +103 on Oct 18.
Forks
219+54
Open issues
18+11
Compared with peers in API
Fastest-growing repositories GStars tracks in this cohort for the week of Oct 18, by 7-day star growth
| Repository | Stars | +7d | Health | Last release |
|---|---|---|---|---|
| vxcontrol/pentagi | 32.2K | +1.5K | 75 | 18 days ago |
| fastapi/fastapi | 104.1K | +1.0K | 40 | today |
| jasonxu114514/opencode2api | 1.3K | +386 | 53 | 3 days ago |
| mudler/LocalAI | 49.9K | +345 | 75 | today |
| Mag1cFall/AIStudio2API | 423 | +166 | 42 | 1 day ago |
| jellyfin/jellyfin | 58.3K | +0 | 64 | 15 days ago |
| Category median | 49.9K | +345 | 64 | — |
Discover Repositories
Search across tracked repositories by name or description