jasonxu114514

    jasonxu114514/opencode2api

    #112 this week

    A Go-based OpenCode Zen / Zen Go API proxy with OpenAI & Anthropic API compatibility, key/proxy pooling, automatic routing, and WebUI.

    api
    Go
    GPL-3.0
    1.3K stars
    219 forks
    1.3K GitHub watchers
    Updated Oct 23, 2026
    View on GitHub

    Build with Backblaze B2

    SDKs, agent skills, IDE extensions, and reference pipelines from Backblaze Labs. All open source.

    Explore Backblaze Labs

    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 with go build -o opencode2api.exe ./cmd/opencode2api, then run .\opencode2api.exe -config config.json.

    The example listens on 127.0.0.1:8080 for the API and 0.0.0.0:8081 for the WebUI. Open http://localhost:8081 locally. 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.

    Excerpt from the jasonxu114514/opencode2api README on GitHub (GPL-3.0 license). © its authors.Read the full README on GitHub

    Daily snapshots

    Stars gained per day, and how forks and open issues moved, from GStars' daily snapshots

    Oct 18: +103Oct 19: +53

    +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

    jasonxu114514/opencode2api compared with API repositories by stars, 7-day star growth, health score and last release
    RepositoryStars+7dHealthLast release
    vxcontrol/pentagi32.2K+1.5K7518 days ago
    fastapi/fastapi104.1K+1.0K40today
    jasonxu114514/opencode2api1.3K+386533 days ago
    mudler/LocalAI49.9K+34575today
    Mag1cFall/AIStudio2API423+166421 day ago
    jellyfin/jellyfin58.3K+06415 days ago
    Category median49.9K+34564—

    Discover Repositories

    Search across tracked repositories by name or description