OrcAI 文档OrcAI Documentation

所有 CLI 工具的配置指南Setup guides for all supported CLI tools.

获取 API KeyGet Your API Key

  1. 前往 注册 创建账号Go to Register and create an account
  2. 前往 充值 购买额度Go to Top Up and buy quota
  3. 前往 API 密钥 创建密钥Go to API Keys and create a key

选择配置方式Choose Setup Method

最简单Easiest: 安装 CC-Switch,添加 OrcAI 为 Provider,启用即可。Install CC-Switch, add OrcAI as provider, enable it. Done.

或手动配置各工具:Or configure each tool manually:

工具Tool指南Guide适用场景Best For
CC-Switch配置指南Setup Guide可视化配置,一次搞定所有工具Visual config, all tools at once
Claude Code配置指南Setup GuideAnthropic 模型 (Opus, Sonnet)Anthropic models (Opus, Sonnet)
Codex CLI配置指南Setup GuideOpenAI 模型 (GPT-5, o3)OpenAI models (GPT-5, o3)
Gemini CLI配置指南Setup GuideGoogle 模型 (Gemini 2.5 Pro)Google models (Gemini 2.5 Pro)

API Base URL

https://api.orcai.cc

接口端点Endpoints

格式Format端点Endpoint适用Used By
Anthropic/v1/messagesClaude Code
OpenAI Chat/openai/v1/chat/completionsChatGPT clients
OpenAI Responses/openai/v1/responsesCodex CLI
Gemini/gemini/v1beta/models/{model}:generateContentGemini CLI

FAQ

401 Unauthorized

检查 API Key 是否正确且已激活: 控制台Check API key is correct and active in Dashboard.

402 Insufficient Quota

点此充值Top up here.

CC-Switch health check 400

正常现象。探针格式不匹配,实际调用不受影响。Normal. Probe format mismatch. Actual calls work fine.

需要帮助?Need help?

Telegram: t.me/orcAiAPI