{"repo":"6Kmfi6HP/opencode2api","free":true,"listed":false,"github":"https://github.com/6Kmfi6HP/opencode2api","clone":"git clone https://github.com/6Kmfi6HP/opencode2api.git","description":"OpenCode zen/go to OpenAI Codex/Anthropic Claude Code API proxy","language":"Go","stars":29,"topics":["claude","claude-code","codex","openai","opencode"],"license":null,"category":"ai-agents","readme_excerpt":"opencode2api English · 简体中文 opencode2api is a local-first HTTP proxy that forwards OpenAI Chat Completions, OpenAI Responses, and Anthropic Messages–style requests to the OpenCode upstream. It adds model aliases, reasoning/thinking compatibility, SOCKS5 proxying, token usage accounting, and a lightweight admin panel — so any OpenAI/Anthropic-compatible client can talk to OpenCode without changes. This project is not affiliated with OpenAI, Anthropic, or OpenCode. Respect the upstream terms of service and only run it in environments you are authorized to use. Features - OpenAI-compatible endpoints: /v1/chat/completions , /v1/models - OpenAI Responses compatible endpoint: /v1/responses - Anthropic Messages compatible endpoint: /v1/messages - Streaming SSE conversion with token usage accounting - Model aliases, reasoning-effort mapping, and force-disable-thinking - Multi-tier auth routing: public / auto / zen: / go: prefixes - SOCKS5 support: direct, fixed proxy, or round-robin - Web admin panel: edit config, view stats, reload upstream sessions - GitHub Actions: multi-platform release binaries (Linux / macOS / Windows / FreeBSD) - GitHub Actions: multi-arch Docker image published to GHCR ( linux/amd64 , linux/arm64 ) - Single Go dependency ( lumberjack ); ships as one static binary Project layout Build locally: Quick start Health check: List models: Authentication modes - No Authorization , or Bearer public → OpenCode public tier; only the -free Zen models are reachable. - Bear","default_branch":null,"files":null,"tree":[],"storefront":"/r/6Kmfi6HP","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/6Kmfi6HP/opencode2api/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}