Files
proxycast/docs/content/03.providers/1.overview.md
T
coso a504ec88fb chore: bump version to v0.12.0
- 迁移 Vertex AI 和 Amp CLI 到凭证池页面
- 删除高级 Provider 导航和相关功能
- 支持编辑 API Key 凭证的 api_key 和 base_url
- 修复凭证卡片标签排版问题
- 移除硬编码的 OAuth 凭证,改为环境变量
2025-12-18 01:01:13 +08:00

3.3 KiB
Raw Blame History

title, description, navigation
title description navigation
Provider 概述 支持的 AI 服务提供商
icon
i-heroicons-squares-2x2

Provider 概述

ProxyCast 支持多种 AI 服务提供商(Provider),每种 Provider 有不同的认证方式和特点。

Provider 类型

OAuth 类型

通过 OAuth 协议认证,支持自动刷新 Token:

Provider 说明
Kiro Claude AWS Kiro IDE 的 Claude 凭证
Gemini CLI Google Gemini CLI 凭证
Qwen 阿里云通义千问凭证
Codex OpenAI Codex OAuth 凭证
iFlow iFlow OAuth 凭证(也支持 Cookie)

API Key 类型

使用 API Key 认证,需要手动配置:

Provider 说明
OpenAI Custom 自定义 OpenAI 兼容服务
Claude Custom 自定义 Claude 兼容服务
Gemini API Key Gemini API Key 多账号负载均衡
Vertex AI Google Cloud Vertex AI 服务

选择指南

根据使用场景选择

场景 推荐 Provider
已有 Kiro 订阅 Kiro Claude
已有 Google AI 订阅 Gemini CLI
已有阿里云订阅 Qwen
有 OpenAI API Key OpenAI Custom
有 Anthropic API Key Claude Custom

根据模型需求选择

模型系列 Provider
Claude 系列 Kiro Claude, Claude Custom
Gemini 系列 Gemini CLI
Qwen 系列 Qwen
GPT 系列 OpenAI Custom

Provider 特性对比

特性 Kiro Gemini Qwen Codex iFlow Gemini API Key Vertex AI
自动刷新 Token ✅ ✅ ✅ ✅ ✅ ❌ ❌
流式响应 ✅ ✅ ✅ ✅ ✅ ✅ ✅
工具调用 ✅ ✅ ✅ ✅ ✅ ✅ ✅
视觉能力 ✅ ✅ ✅ ✅ ✅ ✅ ✅
自定义 Base URL ❌ ❌ ❌ ❌ ❌ ✅ ✅
多账号负载均衡 ✅ ✅ ✅ ✅ ✅ ✅ ✅
模型排除 ❌ ❌ ❌ ❌ ❌ ✅ ❌
模型别名 ❌ ❌ ❌ ❌ ❌ ❌ ✅
Per-Key 代理 ✅ ✅ ✅ ✅ ✅ ✅ ✅

配置流程

OAuth Provider

  1. 确保已安装对应的 AI 客户端
  2. 在客户端中完成登录
  3. ProxyCast 自动检测凭证文件
  4. 在凭证池中确认凭证状态

API Key Provider

  1. 获取 API Key
  2. 在 ProxyCast 中添加凭证
  3. 配置 Base URL(如需要)
  4. 测试凭证有效性

多 Provider 配置

负载均衡

配置多个 Provider 实现负载均衡:

providers:
  - name: kiro-1
    type: kiro
    priority: 1
  - name: kiro-2
    type: kiro
    priority: 2
  - name: gemini-backup
    type: gemini
    priority: 10

故障转移

主 Provider 失败时自动切换:

failover:
  enabled: true
  order:
    - kiro-claude
    - claude-custom
    - gemini-cli

下一步

选择你要配置的 Provider:

OAuth Provider

API Key Provider