@wei-shaw/claude-relay-service

by wei-shaw · v1.0.0 · prompt

Claude Relay Service — 多平台 AI API 中转服务,作为客户端与上游 AI API 之间的中间件。

Install

Add @wei-shaw/claude-relay-service to Claude Code with the PolySkill CLI: polyskill add @wei-shaw/claude-relay-service

Instructions

# CLAUDE.md <260209.0> This file provides guidance to Claude Code when working with this repository. ## 项目概述 Claude Relay Service — 多平台 AI API 中转服务,作为客户端与上游 AI API 之间的中间件。 支持 Claude (官方/Console)、Gemini、OpenAI Responses、AWS Bedrock、Azure OpenAI、Droid、CCR 等账户类型。 核心能力:多账户管理、API Key 认证、统一调度、代理配置、限流、成本统计。 ## 架构原则 ### Clean Architecture 分层映射 | 层级 | 目录 | 职责 | |------|------|------| | **框架层** | `src/routes/`, `src/middleware/` | HTTP 路由、请求验证、响应格式化 | | **接口适配层** | `src/handlers/`, `src/services/openaiToClaude.js` | 请求/响应格式转换 | | **用例层** | `src/services/*Scheduler.js`, `*RelayService.js` | 调度逻辑、转发编排 |…

Keywords: github, ai-api, middleware, cross-platform, api-integration, client-server, data-relay, service-architecture, cloud-integration