HN 표시: Claude Code가 OSS 모델을 사용할 수 있게 해주는 오픈 소스 프록시인 Oc-go-cc

hackernews | | 📦 오픈소스
#anthropic #claude #openai #오픈소스
원문 출처: hackernews · Genesis Park에서 요약 및 분석

요약

Claude Code와 OpenCode Go 사이에서 작동하는 오픈 소스 프록시 툴인 oc-go-cc가 공개되었습니다. 이 도구는 Anthropic API 요청을 가로채 OpenAI 형식으로 변환해 OpenCode Go의 엔드포인트로 전송합니다. 월 5달러부터 이용 가능한 오픈 소스 모델을 Claude Code 인터페이스에서 패치나 포크 없이 환경 변수 설정만으로 사용할 수 있게 합니다.

본문

A Go CLI proxy that lets you use your OpenCode Go subscription with Claude Code. oc-go-cc sits between Claude Code and OpenCode Go, intercepting Anthropic API requests, transforming them to OpenAI format, and forwarding them to OpenCode Go's endpoint. Claude Code thinks it's talking to Anthropic — but your requests go to affordable open models instead. OpenCode Go gives you access to powerful open coding models for $5/month (then $10/month). This proxy makes those models work seamlessly with Claude Code's interface — no patches, no forks, just set two environment variables and go. - Transparent Proxy — Claude Code sends Anthropic-format requests, proxy transforms to OpenAI format and back - Model Routing — Automatically routes to different models based on context (default, thinking, long context, background) - Fallback Chains — If a model fails, automatically tries the next one in your configured chain - Circuit Breaker — Tracks model health and skips failing models to avoid latency spikes - Real-time Streaming — Full SSE streaming with live OpenAI -> Anthropic format transformation - Tool Calling — Proper Anthropic tool_use/tool_result OpenAI function calling translation - Token Counting — Uses tiktoken (cl100k_base) for accurate token counting and context threshold detection - JSON Configuration — Flexible config file with environment variable overrides and ${VAR} interpolation - Hot Reload — Watch config file for changes and reload automatically (off by default) - Background Mode — Run as daemon detached from terminal - Auto-start on Login — Launch on system startup via launchd (macOS) # macOS / Linux brew tap samueltuyizere/tap && brew install oc-go-cc # Windows scoop bucket add oc-go-cc https://github.com/samueltuyizere/scoop-bucket && scoop install oc-go-cc Or see INSTALLATION.md for more options. oc-go-cc init Creates a default config at ~/.config/oc-go-cc/config.json . Edit it to add your API key, or set the environment variable: export OC_GO_CC_API_KEY=sk-opencode-your-key-here oc-go-cc serve export ANTHROPIC_BASE_URL=http://127.0.0.1:3456 export ANTHROPIC_AUTH_TOKEN=unused claude oc-go-cc serve Start the proxy server oc-go-cc serve -b Start in background (detached from terminal) oc-go-cc serve --port 8080 Start on a custom port oc-go-cc stop Stop the running proxy server oc-go-cc status Check if the proxy is running oc-go-cc init Create default configuration file oc-go-cc validate Validate configuration file oc-go-cc models List available OpenCode Go models oc-go-cc autostart enable Enable auto-start on login oc-go-cc autostart disable Disable auto-start on login oc-go-cc autostart status Check autostart status oc-go-cc --version Show version | Document | Description | |---|---| | INSTALLATION.md | Homebrew, Scoop, build from source, release binaries | | CONFIGURATION.md | Config file reference, env vars, model routing, fallback chains | | MODELS.md | Model capabilities, costs, and routing recommendations | | CONTRIBUTING.md | Development setup, architecture, how it works | | TROUBLESHOOTING.md | Common issues and debug mode |

Genesis Park 편집팀이 AI를 활용하여 작성한 분석입니다. 원문은 출처 링크를 통해 확인할 수 있습니다.

공유

관련 저널 읽기

전체 보기 →