jasonxu114514/opencode2api
App
Can I trust it?
Worth a closer look before you use it.
Stars from real accounts No data
We haven't checked its stars for fakes yet.
Active OK
Last change yesterday.
Licence Check
GPL-3.0: free to use. If you distribute software that includes it, you must publish your code under the same licence.
Quick checks from public data. They help, but they are no guarantee.
What it is
A Go gateway that exposes OpenAI Chat Completions, Responses and Anthropic Messages endpoints in front of OpenCode Zen and Zen Go. It translates between protocols and manages upstream API keys and proxies, with routing, retries, a WebUI and token statistics.
Who it's for
Developers who want to call OpenCode Zen or Zen Go models through OpenAI- or Anthropic-compatible clients and need key and proxy pooling
How to use it
Install
go build -o opencode2api ./cmd/opencode2apiFrom its README. Check it there before running it.
Ready-made installers, when the project publishes them, are on its latest release.
Ask your AI to set it up
Paste this into Claude, ChatGPT or your coding assistant.
Help me install and set up jasonxu114514/opencode2api in my project. Follow its README: https://github.com/jasonxu114514/opencode2api. Explain each step and check it is safe before running anything.
Star curve
Get alerts for repos like this
We'll email you when something in Models & inference starts rising. Free, once a week, only what matches.
What arrives: one email on Mondays with the repos that match, never more. See last week's. Privacy
For maintainers
Add this badge to your README. It shows the repo's place on the radar, updates every hour and links back to this page.
[](https://repoalerts.com/repo/jasonxu114514/opencode2api?ref=badge)Similar repos
- 7sen1ot/zcode2api
A Go gateway that pools the user's own ZCode / Z.ai / BigModel accounts and exposes them behind one local address and gateway key, compatible with OpenAI Chat Completions, Responses and Anthropic Mess
- misakano7545/workbuddy2api-panel
A self-hosted Go gateway that wraps Tencent CodeBuddy accounts into an OpenAI-compatible API (chat completions, Responses and Anthropic Messages endpoints). It pools multiple accounts with rotation, c
- www222fff/muse2api
A Python async gateway that exposes the muse.ai web app through OpenAI-compatible endpoints for chat, images and videos. It uses pluggable drivers (mock, browser over CDP, and a reserved HTTP driver)
- linguo2625469/workbuddy2api-panel
Go gateway that exposes CodeBuddy accounts as an OpenAI-compatible /v1/chat/completions endpoint. It rotates across a pool of accounts, applies cooldowns and circuit breaking on upstream errors, keeps
- yang0/chatgpt2api-dsh
A DSH plugin that runs a local pool of ChatGPT accounts and exposes an OpenAI-compatible API on the user's machine. It supports chat, responses, models and image generation/editing endpoints, and incl
- MyAPIsAI/starhub
Self-hosted LLM API gateway in Go that exposes OpenAI- and Claude-style endpoints and routes requests across multiple upstream channels with failover. It includes user, token, channel and quota manage