claude-gateway-manager

作者 aayushgames19-hash已验证

Best Tenbin AI Proxy for Anthropic Opus 4.8 & Sonnet 4.6 API Access 2026

152
Stars
0
Forks
HTML
语言
2026/8/23
添加时间

⚠️ 第三方软件声明

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

阅读服务条款

安装

添加到你的 Claude Code skills 目录:

# Add to your Claude Code skills
git clone https://github.com/aayushgames19-hash/claude-gateway-manager

快速入门

使用 claude-gateway-manager 等 Skills 的指南。

安全报告

已验证

上次扫描:—

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

README.md

preview

OpusFlow API Orchestrator

GitHub License Build Status Language

OpusFlow is not merely another API proxy—it is an intelligent orchestration layer designed to bridge distributed AI reasoning backends with unified, enterprise-grade access. Inspired by the architectural philosophy of Tenbin (天秤AI), OpusFlow reimagines the Anthropic Messages API proxy as a sovereign, self-balancing gateway for Claude Opus 4.8, 4.7, 4.6, Sonnet 4.6, and Haiku 4.5 model families.

While Tenbin focuses on account pooling and payment dashboards, OpusFlow leans into cognitive load balancing, context-aware routing, and multi-tenant isolation—allowing organizations to provision, monitor, and scale their Claude API consumption with surgical precision. Think of it less as a proxy and more as a semantic traffic controller for foundational models.

Download

Table of Contents


Overview & Philosophy

The modern AI infrastructure stack suffers from a silent fragmentation problem: every provider, every model version, every account tier behaves differently. Teams juggle multiple API keys, monitor rate limits across disparate panels, and pray that token budgets don't explode mid-quarter.

OpusFlow was conceived to solve this by wrapping the Anthropic Messages API in a unified, policy-driven gateway. It does not "hack" or circumvent usage limits—instead, it offers transparent orchestration across a pool of authorized accounts, each with its own API key, rate limit, and spending cap. The system distributes requests based on real-time availability, historical latency, and cost efficiency.

The core insight is borrowed from traditional load balancers but applied to semantic compute: requests are weighted by intent, not just volume. A simple chat completion might route to a lower-cost Haiku instance, while a complex code generation task gets escalated to Opus 4.8—all through the same endpoint.


Core Capabilities

CapabilityDescription
Multi-Model RoutingRoute to Claude Opus 4.8/4.7/4.6, Sonnet 4.6, or Haiku 4.5 automatically or explicitly.
Account Pool ManagementSpin up or retire API keys across multiple accounts without downtime.
Token Budget EnforcementSet hard and soft caps per team, per project, or per model.
Latency-Based FallbackIf a primary account is throttled, fallback to secondary pool within 200ms.
Online Payment IntegrationStripe-based billing for usage-based pricing or subscription tiers.
24/7 Monitoring & AlertsSlack, email, or webhook alerts when budgets approach thresholds.
Multi-Lingual DashboardUI localized for English, Simplified Chinese, Japanese, and Korean.

Architecture & Design Metaphor

Imagine a grand central station for intelligence trains. Each Claude model variant is a train on its own track: Opus 4.8 is the express luxury locomotive, Haiku 4.5 is the local commuter. OpusFlow acts as the station master—reading the destination (your prompt), checking the schedule (account availability), and dispatching the right train to the right platform.

The system comprises three layers:

  1. Ingress Layer – Accepts standard Anthropic Messages API format. No client-side changes needed.
  2. Orchestration Layer – Applies routing rules, account selection, token budgeting, and retry logic.
  3. Egress Layer – Manages outbound connections to actual Anthropic endpoints, with connection pooling and TLS pinning.

Each layer is horizontally scalable and communicates via gRPC internally, ensuring sub-millisecond overhead per request.

Download


Model Compatibility Matrix

OpusFlow supports all publicly available Claude models via the Anthropic Messages API. The following matrix outlines model IDs and recommended use cases:

Model IDVersionBest ForContext Window
claude-opus-4-8Opus 4.8Complex reasoning, code generation, legal analysis200K tokens
claude-opus-4-7Opus 4.7Scientific research, multi-step workflows200K tokens
claude-opus-4-6Opus 4.6Financial modeling, strategic planning200K tokens
claude-sonnet-4-6Sonnet 4.6Balanced performance/cost, general QA180K tokens
claude-haiku-4-5Haiku 4.5Real-time chat, classification, light tasks150K tokens

All models are accessible through a single unified endpoint, with model selection either automatic (based on prompt complexity) or explicit via the model parameter in the request body.


Feature Deep Dive

Intelligent Routing Engine

The routing engine is the heart of OpusFlow. It evaluates each incoming request against a configurable policy tree:

  • Cost-Aware Routing: Automatically routes cheap prompts to Haiku, reserving Opus for high-value tasks.
  • Affinity Routing: Maintains session affinity for multi-turn conversations to avoid context fragmentation.
  • Geo-Aware Routing: Routes requests to geographically closer accounts to reduce latency in regions like East Asia or Europe.

The engine implements a weighted scoring algorithm that considers:

  • Account remaining tokens (higher weight for accounts with more headroom)
  • Historical error rate (lower weight for flaky accounts)
  • Response time percentile (faster accounts preferred)
  • Cost per token (cheapest acceptable model prioritized)

Account Pool Governance

Managing multiple Anthropic accounts used to be a nightmare of spreadsheets and manual key rotation. OpusFlow introduces the concept of Pools—logical groupings of API keys with shared policies.

Each pool can have:

  • A primary and failover account (or multiple)
  • A daily token budget (hard limit)
  • A rate limit multiplier (how many requests per minute per account)
  • Health checks that automatically remove failing accounts from rotation

When an account hits its rate limit, the pool transparently routes to the next available account. No 429 errors ever reach the client.

Real-Time Dashboard

The dashboard provides at-a-glance visibility into:

  • Live request volume across all models (per second)
  • Latency heatmap by account and region
  • Token burn rate per project, with projected exhaustion time
  • Error breakdown (4xx vs 5xx, rate limit vs timeout)

Built on a reactive event stream, the dashboard updates in real-time without page refresh. It supports drill-down from the pool level to individual request logs, with full payload inspection for debugging.

Multi-Lingual Interface

OpusFlow speaks the language of your team. The web interface and API error messages are localized for:

  • English (default)
  • Simplified Chinese (中文简体)
  • Traditional Chinese (中文繁體)
  • Japanese (日本語)
  • Korean (한국어)

Language detection happens automatically based on the browser's Accept-Language header, or can be overridden via a query parameter ?lang=ja.


Getting Started

To integrate OpusFlow into your existing AI pipeline, you will need to:

  1. Provision an instance of the orchestrator (self-hosted or managed).
  2. Configure your Anthropic accounts by adding API keys to the pool.
  3. Point your client to the OpusFlow endpoint instead of the direct Anthropic URL.

The OpusFlow endpoint is fully compatible with the Anthropic Messages API specification. Any existing client library that works with Anthropic will work with OpusFlow—just change the base URL and add your OpusFlow API key.

For teams migrating from Tenbin or similar proxies, OpusFlow provides an import tool that reads your existing account pool configuration and replicates it into the OpusFlow format.

Download


Configuration Reference

OpusFlow is configured via a single YAML file. Below is an annotated example:

server:
  host: "0.0.0.0"
  port: 8443
  ssl: true
  cert_path: "/etc/opusflow/cert.pem"
  key_path: "/etc/opusflow/key.pem"

pools:
  production:
    strategy: "latency_fallback"
    models: ["claude-opus-4-8", "claude-sonnet-4-6"]
    accounts:
      - key: "sk-ant-xxxxx"
        budget_daily: 10000000
        ratelimit_per_min: 50
        region: "us-east-1"
      - key: "sk-ant-yyyyy"
        budget_daily: 10000000
        ratelimit_per_min: 50
        region: "ap-northeast-1"
    failover:
      - key: "sk-ant-zzzzz"
        budget_daily: 5000000

routing:
  default_model: "claude-sonnet-4-6"
  auto_escalate:
    prompt_length_threshold: 10000
    model: "claude-opus-4-8"

monitoring:
  alerts:
    - type: "budget_exhausted"
      channel: "slack"
      webhook: "https://hooks.slack.com/services/xxx/yyy"
    - type: "error_rate_high"
      threshold: 0.05
      channel: "email"
      recipients: ["ops@example.com"]

Security & Compliance

OpusFlow is designed with enterprise security requirements in mind:

  • All traffic is TLS-encrypted in transit, with support for mutual TLS (mTLS) for client authentication.
  • API keys are stored encrypted at rest using AES-256-GCM. The encryption key is never persisted in the same storage as the keys.
  • Request and response logging is optional and configurable. When enabled, logs are stripped of personally identifiable information (PII) before storage.
  • Audit trail tracks every configuration change, key rotation, and budget adjustment with a timestamp and source IP.
  • Rate limiting is enforced at multiple layers (per IP, per API key, per pool) to prevent abuse even from authenticated clients.

For teams subject to SOC 2 or GDPR, OpusFlow includes a data processing agreement and can be deployed in a fully air-gapped environment with no external dependencies.


Disclaimer

Important: OpusFlow is an independent open-source project and is not affiliated with, endorsed by, or sponsored by Anthropic. "Claude," "Opus," "Sonnet," and "Haiku" are trademarks of Anthropic. This software acts as a proxy and does not modify the underlying model behavior, nor does it guarantee availability or performance of the Anthropic API. Users are responsible for complying with Anthropic's Terms of Service and acceptable use policies. OpusFlow does not bypass rate limits, circumvent usage restrictions, or provide unauthorized access to paid services. It is a tool for legitimate, authorized API consumption management.

The authors of OpusFlow assume no liability for misuse, data loss, or any damages arising from the use of this software. Use at your own risk.


License

This project is licensed under the MIT License. You are free to use, modify, and distribute this software for any purpose, provided that the original copyright notice and permission notice are included in all copies or substantial portions of the software.

Copyright © 2026 OpusFlow Contributors. All rights reserved.

Download

常见问题

What is claude-gateway-manager?

claude-gateway-manager is an open-source api integration skill for AI coding assistants such as Claude Code, Codex CLI, and ChatGPT, built by aayushgames19-hash. Best Tenbin AI Proxy for Anthropic Opus 4.8 & Sonnet 4.6 API Access 2026. It has 152 GitHub stars.

Is claude-gateway-manager safe to use?

Yes. claude-gateway-manager 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 claude-gateway-manager?

Clone the repository with "git clone https://github.com/aayushgames19-hash/claude-gateway-manager" and add it to your Claude Code skills directory (see the Installation section above).

What programming language is claude-gateway-manager written in?

claude-gateway-manager is primarily written in HTML. It is open-source under aayushgames19-hash on GitHub, so you can review or fork the full source.

Are there alternatives to claude-gateway-manager?

Yes. SkillsLLM lists many other API Integration skills you can browse and compare side by side. Open the API Integration category from the badge at the top of this page, or use the Related Skills and comparison links further down to weigh claude-gateway-manager against similar tools.

评论 (0)

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

CLIProxyAPI

by router-for-me

Wrap Antigravity, ChatGPT Codex, Claude Code, Grok Build as an OpenAI/Gemini/Claude/Codex compatible API service, allowing you to enjoy the free Gemini 3.1 Pro, GPT 5.6 Series, Grok 4.5, Claude model through API

48,3767,452Go
API Integration
查看详情

sub2api

by Wei-Shaw

Sub2API 一站式开源中转服务,让 Claude、Openai 、Gemini、Grok订阅统一接入,支持拼车共享,更高效分摊成本,原生工具无缝使用。

38,8308,041Go
API Integration
查看详情

claude-code-hub

by ding113

一个现代化的 Claude Code & Codex API 代理服务,提供智能负载均衡、用户管理和使用统计功能。

3,328387TypeScript
API Integration
查看详情

cc-gateway

by motiful

AI API identity gateway — reverse proxy that normalizes device fingerprints and telemetry for privacy-preserving API proxying

3,013501TypeScript
API Integration
查看详情

octopus

by bestruirui

One Hub All LLMs For You | 为个人打造的 LLM API 聚合网关

2,483394TypeScript
API Integration
查看详情

开发者还喜欢

基于喜欢此 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
查看详情