订阅、官方 API 与 QCode Key
Claude Pro/Max、ChatGPT Plus 订阅、官方 API Key 与 QCode 的 cr_ 密钥分别是什么、怎么计费、在哪里用,三者互不互通也互不冲突
本页目录
一句话版本:订阅是官方客户端的会员,官方 API Key 是开发者平台的按量凭证,QCode Key(cr_ 开头)是一把打通四种协议的网关密钥。 三者互相独立、互不抵扣,也可以并存。
三样东西分别是什么¶
| 是什么 | 怎么计费 | 在哪里用 | |
|---|---|---|---|
| 订阅(Claude Pro / Claude Max、ChatGPT Plus 等) | 官方聊天客户端与官方编码产品的会员 | 按月订阅费(价格以 claude.com/pricing / chatgpt.com/pricing 为准) | Claude / ChatGPT 官方应用;Claude Code 的订阅登录 |
| 官方 API Key | Anthropic Console / OpenAI Platform 的开发者密钥 | 按 token 计费,在官方平台充值 | 直连官方 API 的程序 |
QCode Key(cr_ 开头) |
本站网关密钥,一把 Key 四协议(Anthropic / OpenAI Chat / Responses / Gemini) | 按 token 计费,单价见 qcode.cc/models;套餐有日限额 | Claude Code、Codex、各家 IDE / CLI / 聊天客户端 |
两家官方都写明订阅不含 API:
"A paid Claude subscription enhances your chat experience but doesn't include access to the Claude API or Console." —— Claude Help Center(2026-09-18 查阅)
"Not included: API usage is separate and billed independently." —— OpenAI Help Center「What is ChatGPT Plus?」(2026-09-18 查阅)
所以:你在 Anthropic / OpenAI 的订阅不能在 QCode 使用,也不会被 QCode 消耗;反过来说,QCode 的用量也不影响你官方订阅的额度。两套是平行系统。
常见组合问题¶
我有 Claude Pro / ChatGPT Plus,能用在 QCode 或第三方工具里吗?¶
不能。 订阅只覆盖官方应用内体验和官方直连渠道(比如 Claude Code 用 Pro / Max 登录),不包含任何可转授的 API 额度。在 QCode 上用 Claude / GPT 模型,走的是我们自己按 token 计费的套餐,与你的订阅无关。
两者可以并存:同一个 Claude Code,既可以用订阅登录,也可以用 ANTHROPIC_BASE_URL + cr_ 密钥指向 QCode——取决于哪个凭证当前生效。来回切换推荐用 CC Switch。
Claude Desktop 能用我的 GPT 订阅吗?¶
不能。 Claude Desktop 的第三方推理只接受实现了 Anthropic Messages API 的网关——官方原文:"The gateway must implement the Anthropic Messages API: POST /v1/messages with streaming and tool use is required."(官方文档)。OpenAI 协议不在它的识别范围里,GPT 订阅更接不进去。要在桌面端用 GPT / 国产模型,选支持 OpenAI 协议的客户端(见 工具兼容总览)。
我在 Claude Code 里设了 ANTHROPIC_API_KEY 环境变量会怎样?¶
它会覆盖订阅登录,改按 API 计费。 Anthropic Help Center 原文:
"Important: If you have an ANTHROPIC_API_KEY environment variable set on your system, Claude Code will use this API key for authentication instead of your Claude subscription (Pro, Max, Team, or Enterprise plans), resulting in API usage charges rather than using your subscription's included usage." —— Use Claude Code with your Pro or Max plan(2026-09-18 查阅)
这就是「昨天还能用、今天突然要扣费」或「明明登录了订阅却报 401」的最常见原因:shell 配置里残留的旧 Key 抢了认证路径。按 故障排查 第 2 步检查环境变量即可。
我该用哪个?¶
- 只在官方 App 里聊天、写文档:订阅就够了,不需要 QCode。
- 只在自己的脚本里调 API:官方 API Key 或 QCode Key 都行;QCode 一把 Key 覆盖四协议、含国产模型。
- 在 Claude Code / Codex / IDE 插件里同时用 Claude、GPT、GLM、Kimi 等:QCode Key,协议与 Base URL 对照见 接入点与 API 格式。
- 订阅和网关想随时切:CC Switch。