ocgo
A small Go CLI that starts a local proxy so Claude Code and Codex CLI can run against an OpenCode Go subscription instead of their usual providers, in one command.
ocgo starts a local compatibility proxy that translates Claude Code's Anthropic Messages API requests and exposes OpenAI-compatible endpoints for Codex CLI, then launches either tool already pointed at the proxy, so no manual proxy setup is needed. After a one-time setup step that stores an OpenCode Go API key, a single command such as launching Claude Code or Codex with a chosen model is enough to start coding through the subscription.
It can also list known OpenCode Go model IDs, map Claude Code or Codex model names to OpenCode Go models for transparent routing, and start, stop or inspect the local proxy server, which listens on a local port by default. It supports streaming text responses and basic tool-call translation, and installs through Homebrew or by building from source with Go 1.22 or newer.