oc-go-cc

作者 samueltuyizere已验证

Use your OpenCode Go subscription with Claude Code.

711
Stars
102
Forks
Go
语言
2026/8/23
添加时间

⚠️ 第三方软件声明

本 Skill 为第三方开源软件,独立托管于 GitHub。SkillTip 仅为信息目录,不控制或维护底层仓库。所显示的安全检查为自动化且范围有限,安装前请自行审查源码。

阅读服务条款

安装

添加到你的 Claude Code skills 目录:

# Add to your Claude Code skills
git clone https://github.com/samueltuyizere/oc-go-cc

快速入门

使用 oc-go-cc 等 Skills 的指南。

安全报告

已验证

上次扫描:—

{
  "status": "PASSED",
  "issues": []
}

README.md

routatic-proxy

Go Version License

Join us on Discord

English | 中文

Supported Providers

OpenCode Go OpenCode Zen AWS Bedrock OpenRouter Anthropic

ProviderDescriptionBest For
OpenCode GoHigh-performance open-source coding models with flat-rate pricingDaily coding, complex reasoning, cost-effective workloads
OpenCode ZenCurated, tested models with pay-as-you-go pricingClaude/GPT/Gemini access without multiple API keys
AWS BedrockEnterprise-grade models on your own AWS infrastructureEnterprises needing data sovereignty and compliance
OpenRouterUnified API for 100+ LLMs with automatic failoverExperimenting with models from multiple providers
AnthropicNative Claude models with anthropic-first failover modeClaude-first workflows with OpenCode fallback

A Go CLI proxy that lets you route Claude Code requests through multiple upstream providers with automatic model selection and format transformation.

routatic-proxy sits between Claude Code and your chosen providers, intercepting Anthropic API requests, transforming them to the appropriate format (OpenAI, Anthropic, Responses, or Gemini), and forwarding them upstream. Claude Code thinks it's talking to Anthropic — but your requests go to the models and providers you configure.

oc-go-cc remains available as a compatibility alias, and existing OC_GO_CC_* environment variables and ~/.config/oc-go-cc/config.json files are still recognized.


Why?

OpenCode Go gives you access to powerful open coding models for $5/month (then $10/month). OpenCode Zen provides curated, tested models with pay-as-you-go pricing. AWS Bedrock lets you run models on your own AWS infrastructure. OpenRouter gives you unified access to 100+ models. This proxy makes all of them work seamlessly with Claude Code's interface — no patches, no forks, just set two environment variables and go.

Features

  • Multi-Provider — Route through OpenCode Go, OpenCode Zen, AWS Bedrock, or OpenRouter from a single config
  • Transparent Proxy — Claude Code sends Anthropic-format requests, proxy transforms to provider-native format and back
  • Model Routing — Automatically routes to different models based on context (default, thinking, long context, background)
  • Streaming Scenario Routing — Configurable routing for streaming requests (see CONFIGURATION.md)
  • Fallback Chains — If a model fails, automatically tries the next one in your configured chain
  • Anthropic-First Failover — Keep Claude on Anthropic and use OpenCode only during rate limits or outages
  • Circuit Breaker — Tracks model health and skips failing models to avoid latency spikes
  • Real-time Streaming — Full SSE streaming with live format transformation
  • Tool Calling — Proper Anthropic tool_use/tool_result ↔ OpenAI/Gemini function calling translation
  • Hot Reload — Watch config file for changes and reload automatically
  • Self-Update — Check and install the latest release with one command

See docs/architecture.md for system design and request flow details.

GUI Version

This repository provides a cross-platform GUI for routatic-proxy:

  • macOS — Native Cocoa window with system tray integration (requires CGO). Download the .dmg from the Releases page.
  • Linux — Browser-based GUI via xdg-open (default, no CGO required). For system tray: build with CGO_ENABLED=1 and install libappindicator-gtk3-devel (Fedora) or libayatana-appindicator3-dev (Ubuntu/Debian).
  • Windows — GUI not supported (CLI only).

Dashboard tabs: Overview (real-time metrics & model distribution), History (last 1000 requests with filters), Settings (edit config with hot-reload).

routatic-proxy ui

On macOS, this opens a native window. On Linux, it opens your default browser.

Quick Start

# 1. Install
brew tap routatic/tap && brew install routatic-proxy

# 2. Initialize configuration
routatic-proxy init

# 3. Set your API key
export ROUTATIC_PROXY_API_KEY=sk-opencode-your-key-here

# 4. Start the proxy
routatic-proxy serve

# 5. Configure Claude Code
export ANTHROPIC_BASE_URL=http://127.0.0.1:3456
export ANTHROPIC_AUTH_TOKEN=unused

# 6. Run Claude Code
claude

Fedora / RHEL: each release ships x86_64 and aarch64 RPMs — sudo dnf install https://github.com/routatic/proxy/releases/download/vX.Y.Z/routatic-proxy-X.Y.Z-1.x86_64.rpm. See docs/fedora-setup.md for package contents and the systemd user service.

See INSTALLATION.md for Homebrew, Scoop, Docker, and build-from-source options.

Prefer a GUI for switching providers? routatic-proxy works with CC-Switch — see Using with CC-Switch.

CLI Commands

routatic-proxy serve              Start the proxy server
routatic-proxy serve -b           Start in background (detached from terminal)
routatic-proxy stop               Stop the running proxy server
routatic-proxy status             Check if the proxy is running
routatic-proxy init               Create default configuration file
routatic-proxy validate           Validate configuration file
routatic-proxy models             List all available models
routatic-proxy ui                 Launch the GUI dashboard
routatic-proxy autostart enable   Enable auto-start on login
routatic-proxy update             Update to the latest release on your channel
routatic-proxy update check       Check for a newer release without installing
routatic-proxy update-channel     Show or switch release channel (stable|beta)
routatic-proxy --version          Show version

Documentation

DocumentDescription
MODELS.mdModel reference across all providers — capabilities, costs, endpoints, routing recommendations
docs/openrouter.mdOpenRouter provider setup and configuration
CONFIGURATION.mdConfig file reference, env vars, model routing, fallback chains
INSTALLATION.mdHomebrew, Scoop, build from source, Docker
CONTRIBUTING.mdDevelopment setup, architecture
TROUBLESHOOTING.mdCommon issues and debug mode
docs/architecture.mdSystem design and request flow
docs/fedora-setup.mdFedora 44 setup (systemd, SELinux)
docs/reference-api.mdHTTP API reference
docs/howto-add-model.mdAdding new models (zero code changes)
docs/howto-custom-routing.mdCustomizing scenario detection and routing
docs/howto-debug-routing.mdDebugging routing issues

Release Channels

This project ships on two channels. Stable is the default; beta gets you the newest features early.

routatic-proxy update-channel beta     # opt in to betas
routatic-proxy update                  # install the newest beta
routatic-proxy update-channel stable   # back to stable releases

See Beta Releases for the full walkthrough (Docker beta tag, installing a specific prerelease, returning to a stable build) and RELEASE_PROCESS.md for how releases are built.

Beta Channel (Automatic)

  • Trigger: Every push to main branch
  • Version format: v{UPCOMING}-beta.{N} (e.g., v0.6.4-beta.1), where {N} is a sequential counter that restarts once that version ships as stable
  • GitHub release: Marked as prerelease
  • Docker tags: beta (rolling), plus the exact v{UPCOMING}-beta.{N}
  • Use case: Get the latest features and bug fixes immediately; ideal for testing

Production Channel (Manual)

  • Trigger: Manual workflow_dispatch on releases branch
  • Version format: vX.Y.Z (semantic versioning)
  • GitHub release: Marked as stable
  • Docker tags: vX.Y.Z, vX.Y, vX, latest
  • Use case: Stable, tested releases for production use

Contributing

We welcome contributions! Please see CONTRIBUTING.md for development setup, architecture overview, and how to submit pull requests.

License

AGPL-3.0

常见问题

What is oc-go-cc?

oc-go-cc is an open-source cli tools skill for AI coding assistants such as Claude Code, Codex CLI, and ChatGPT, built by samueltuyizere. Use your OpenCode Go subscription with Claude Code. It has 711 GitHub stars.

Is oc-go-cc safe to use?

Yes. oc-go-cc passed SkillsLLM's automated security scan — a dependency vulnerability audit plus prompt-injection heuristics — with no high-severity issues. You can read the full report in the Security Report section on this page.

How do I install oc-go-cc?

Clone the repository with "git clone https://github.com/samueltuyizere/oc-go-cc" and add it to your Claude Code skills directory (see the Installation section above).

What programming language is oc-go-cc written in?

oc-go-cc is primarily written in Go. It is open-source under samueltuyizere on GitHub, so you can review or fork the full source.

Are there alternatives to oc-go-cc?

Yes. SkillsLLM lists many other CLI Tools skills you can browse and compare side by side. Open the CLI Tools category from the badge at the top of this page, or use the Related Skills and comparison links further down to weigh oc-go-cc against similar tools.

评论 (0)

暂无评论,成为第一个分享想法的人!

ui-ux-pro-max-skill

by nextlevelbuilder

12

An AI skill that provides design intelligence for building professional UI/UX across multiple platforms.

119,92012,870Python
CLI 工具ai-skillsantigravity
查看详情

happy

by slopus

Mobile and Web client for Codex and Claude Code, with realtime voice, encryption and fully featured

23,4501,980TypeScript
CLI 工具
查看详情

claudecodeui

by siteboon

Use Claude Code, OpenCode, Cursor CLI, and Codex on mobile and web with CloudCLI (aka Claude Code UI). CloudCLI is a free open source webui/GUI that helps you manage your Claude Code session and projects remotely.

13,3941,866TypeScript
CLI 工具
查看详情

CRS-自建Claude Code镜像,一站式开源中转服务,让 Claude、OpenAI、Gemini、Droid 订阅统一接入,支持拼车共享,更高效分摊成本,原生工具无缝使用。

12,5471,869JavaScript
CLI 工具
查看详情

ccstatusline

by sirmalloc

🚀 Beautiful highly customizable statusline for Claude Code CLI with powerline support, themes, and more.

12,508545TypeScript
CLI 工具
查看详情

开发者还喜欢

基于喜欢此 Skill 的开发者投票和收藏

ECC

by affaan-m

10

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

242,21936,702JavaScript
AI 智能体ai-agentsanthropicclaude-code
查看详情
15

An agentic skills framework & software development methodology that works.

234,96620,863Shell
AI 智能体ai-agentsbrainstorming
查看详情

hermes-agent

by NousResearch

10

The agent that grows with you

234,43747,175Python
AI 智能体ai-agentsagent-orchestration
查看详情

n8n

by n8n-io

12

Fair-code workflow automation platform with native AI capabilities. Combine visual building with custom code, self-host or cloud, 400+ integrations.

201,88160,308TypeScript
MCP 服务器apisai-tools
查看详情

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

185,94028,768JavaScript
AI 智能体ai-agentsanthropicclaude-code
查看详情

cc-switch

by farion1231

3

A cross-platform desktop All-in-One assistant for Claude Code, Codex, OpenCode, OpenClaw, Grok Build & Hermes Agent. Only official website: ccswitch.io

128,8688,826Rust
AI 智能体claude-codeai-tools
查看详情