diff --git a/website/docs/getting-started/quickstart.md b/website/docs/getting-started/quickstart.md index 390cdba2ac0c8..73c63a7e7ee6c 100644 --- a/website/docs/getting-started/quickstart.md +++ b/website/docs/getting-started/quickstart.md @@ -110,7 +110,7 @@ Good defaults: | Provider | What it is | How to set up | |----------|-----------|---------------| | **Nous Portal** | Subscription-based, zero-config | OAuth login via `hermes model` | -| **OpenAI Codex** | ChatGPT OAuth, uses Codex models | Device code auth via `hermes model` | +| **OpenAI Codex** | ChatGPT or Codex subscription, uses Codex models | Device code auth via `hermes model` → **ChatGPT or Codex Subscription** | | **Anthropic** | Claude models directly — Max plan + extra usage credits (OAuth), or API key for pay-per-token | `hermes model` → OAuth login (requires Max + extra credits), or an Anthropic API key | | **OpenRouter** | Multi-provider routing across many models | Enter your API key | | **Fireworks AI** | Direct OpenAI-compatible model API | Set `FIREWORKS_API_KEY` | diff --git a/website/docs/integrations/providers.md b/website/docs/integrations/providers.md index a5b81f5660c6c..549c93049f6d2 100644 --- a/website/docs/integrations/providers.md +++ b/website/docs/integrations/providers.md @@ -15,7 +15,7 @@ You need at least one way to connect to an LLM. Use `hermes model` to switch pro | Provider | Setup | |----------|-------| | **Nous Portal** | `hermes model` (OAuth, subscription-based) | -| **OpenAI Codex** | `hermes model` (ChatGPT OAuth, uses Codex models) | +| **OpenAI Codex** | `hermes model` → **ChatGPT or Codex Subscription** (ChatGPT OAuth, uses Codex models) | | **GitHub Copilot** | `hermes model` (OAuth device code flow, `COPILOT_GITHUB_TOKEN`, `GH_TOKEN`, or `gh auth token`) | | **GitHub Copilot ACP** | `hermes model` (spawns local `copilot --acp --stdio`) | | **Anthropic** | `hermes model` (Claude Max + extra usage credits via OAuth; also supports Anthropic API key or manual setup-token — see note below) | @@ -84,7 +84,7 @@ Don't have a subscription yet? Get one at [portal.nousresearch.com/manage-subscr :::info Codex Note The OpenAI Codex provider authenticates via device code (open a URL, enter a code). Hermes stores the resulting credentials in its own auth store under `~/.hermes/auth.json` and can import existing Codex CLI credentials from `~/.codex/auth.json` when present. No Codex CLI installation is required. -If a token refresh fails with a terminal error (HTTP 4xx, `invalid_grant`, revoked grant, etc.), Hermes marks the refresh token as dead and stops replaying it so you don't see a flood of identical auth failures. The next request surfaces a typed re-auth message instead. Run `hermes auth add openai-codex` (or `hermes model` → OpenAI Codex) to start a fresh device-code login; the quarantine clears on the next successful exchange. +If a token refresh fails with a terminal error (HTTP 4xx, `invalid_grant`, revoked grant, etc.), Hermes marks the refresh token as dead and stops replaying it so you don't see a flood of identical auth failures. The next request surfaces a typed re-auth message instead. Run `hermes auth add openai-codex` (or `hermes model` → **ChatGPT or Codex Subscription**) to start a fresh device-code login; the quarantine clears on the next successful exchange. ::: :::warning @@ -117,7 +117,7 @@ Several providers let you sign in to Hermes with a **consumer subscription** (Cl |---|---|---|---|---| | **Anthropic — Claude Max + OAuth** | ✅ Yes — `hermes model` → Anthropic OAuth. Requires Max **and** purchased extra usage credits | The **extra/overage credits** you've added on top of the Max plan | The **base Max plan allowance** (the usage included in Claude Code by default) | All Hermes usage bills as "extra usage" even while your included Max allowance sits untouched | | **Anthropic — Claude Pro** | ❌ No — Pro subscribers cannot use the OAuth path | Nothing (path unavailable) | Your Pro subscription | Pro looks like it should work; it doesn't. Use an `ANTHROPIC_API_KEY` instead (pay-per-token, independent of any Claude subscription) | -| **OpenAI Codex — ChatGPT plan OAuth** | ✅ Yes — `hermes model` → OpenAI Codex (ChatGPT OAuth device-code login, uses Codex models) | *Not currently documented* | *Not currently documented* | Docs cover auth and token refresh only; plan-quota semantics are not yet documented | +| **OpenAI Codex — ChatGPT plan OAuth** | ✅ Yes — `hermes model` → **ChatGPT or Codex Subscription** (ChatGPT OAuth device-code login, uses Codex models) | *Not currently documented* | *Not currently documented* | Docs cover auth and token refresh only; plan-quota semantics are not yet documented | | **xAI — SuperGrok / X Premium+ OAuth** | ✅ Yes — browser OAuth, no API key needed | Your **subscription quota** (documented explicitly for X Search: OAuth is preferred over an API key and "uses your subscription quota instead of API spend"). Inference quota semantics beyond that: *not currently documented* | `XAI_API_KEY` / pay-per-token API spend, when OAuth credentials are configured and preferred | `HTTP 403` after a successful login — xAI has restricted OAuth API access to specific SuperGrok tiers despite an active in-app subscription | | **Google — Gemini consumer plan (Google AI Pro / Ultra)** | ❌ No documented path — the `gemini` provider is API-key only (`GOOGLE_API_KEY` / `GEMINI_API_KEY`); Vertex AI uses GCP billing | Your **API key's quota** (free tier or billing-enabled Google Cloud project) — *consumer-plan consumption not currently documented* | *Not currently documented* | Free-tier keys can be exhausted after a handful of agent turns, because Hermes may make several model calls per user turn | diff --git a/website/docs/user-guide/configuration.md b/website/docs/user-guide/configuration.md index 7be3fdbc335cd..423dfc7b73954 100644 --- a/website/docs/user-guide/configuration.md +++ b/website/docs/user-guide/configuration.md @@ -1423,7 +1423,7 @@ These options apply to **auxiliary task configs** (`auxiliary:`, `compression:`) | `"auto"` | Best available (default). Vision tries OpenRouter → Nous → Codex. | — | | `"openrouter"` | Force OpenRouter — routes to any model (Gemini, GPT-4o, Claude, etc.) | `OPENROUTER_API_KEY` | | `"nous"` | Force Nous Portal | `hermes auth` | -| `"codex"` | Force Codex OAuth (ChatGPT account). Supports vision (gpt-5.3-codex). | `hermes model` → Codex | +| `"codex"` | Force Codex OAuth (ChatGPT account). Supports vision (gpt-5.3-codex). | `hermes model` → ChatGPT or Codex Subscription | | `"minimax-oauth"` | Force MiniMax OAuth (browser login, no API key). Uses MiniMax-M2.7-highspeed for auxiliary tasks. | `hermes model` → MiniMax (OAuth) | | `"xai-oauth"` | Force xAI Grok OAuth (browser login for SuperGrok or X Premium+ subscribers, no API key). Same OAuth token covers chat, TTS, image, video, and transcription. | `hermes model` → xAI Grok OAuth (SuperGrok / Premium+) | | `"main"` | Use your active custom/main endpoint. This can come from `OPENAI_BASE_URL` + `OPENAI_API_KEY` or from a custom endpoint saved via `hermes model` / `config.yaml`. Works with OpenAI, local models, or any OpenAI-compatible API. **Auxiliary tasks only — not valid for `model.provider`.** | Custom endpoint credentials + base URL | diff --git a/website/docs/user-guide/features/fallback-providers.md b/website/docs/user-guide/features/fallback-providers.md index b44b882f59d63..0e083ee078dff 100644 --- a/website/docs/user-guide/features/fallback-providers.md +++ b/website/docs/user-guide/features/fallback-providers.md @@ -50,7 +50,7 @@ Each entry requires both `provider` and `model`. Entries missing either field ar | AI Gateway | `ai-gateway` | `AI_GATEWAY_API_KEY` | | OpenRouter | `openrouter` | `OPENROUTER_API_KEY` | | Nous Portal | `nous` | `hermes setup --portal` (fresh) or `hermes auth add nous` (OAuth) | -| OpenAI Codex | `openai-codex` | `hermes model` (ChatGPT OAuth) | +| OpenAI Codex | `openai-codex` | `hermes model` → **ChatGPT or Codex Subscription** (ChatGPT OAuth) | | GitHub Copilot | `copilot` | `COPILOT_GITHUB_TOKEN`, `GH_TOKEN`, or `GITHUB_TOKEN` | | GitHub Copilot ACP | `copilot-acp` | External process (editor integration) | | Anthropic | `anthropic` | `ANTHROPIC_API_KEY` or Claude Code credentials | @@ -291,7 +291,7 @@ These options apply to `auxiliary:`, `compression:`, and `fallback_providers:` e | `"auto"` | Try providers in order until one works (default) | At least one provider configured | | `"openrouter"` | Force OpenRouter | `OPENROUTER_API_KEY` | | `"nous"` | Force Nous Portal | `hermes auth` | -| `"codex"` | Force Codex OAuth | `hermes model` → Codex | +| `"codex"` | Force Codex OAuth | `hermes model` → ChatGPT or Codex Subscription | | `"main"` | Use whatever provider the main agent uses (auxiliary tasks only) | Active main provider configured | | `"anthropic"` | Force Anthropic native | `ANTHROPIC_API_KEY` or Claude Code credentials | diff --git a/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/getting-started/quickstart.md b/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/getting-started/quickstart.md index b7734879300ff..135e5ee57979b 100644 --- a/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/getting-started/quickstart.md +++ b/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/getting-started/quickstart.md @@ -102,7 +102,7 @@ hermes setup --portal | Provider | 说明 | 配置方式 | |----------|-----------|---------------| | **Nous Portal** | 订阅制,零配置 | 通过 `hermes model` 进行 OAuth 登录 | -| **OpenAI Codex** | ChatGPT OAuth,使用 Codex 模型 | 通过 `hermes model` 进行设备码认证 | +| **OpenAI Codex** | ChatGPT 或 Codex 订阅,使用 Codex 模型 | 通过 `hermes model` → **ChatGPT or Codex Subscription** 进行设备码认证 | | **Anthropic** | 直接使用 Claude 模型——Max 计划 + 额外用量积分(OAuth),或按 token 付费的 API key | `hermes model` → OAuth 登录(需要 Max + 额外积分),或 Anthropic API key | | **OpenRouter** | 跨多个 provider 的多模型路由 | 输入 API key | | **Z.AI** | GLM / Zhipu 托管模型 | 设置 `GLM_API_KEY` / `ZAI_API_KEY` | diff --git a/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/integrations/providers.md b/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/integrations/providers.md index e64be9ca2b397..e65738b72ba22 100644 --- a/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/integrations/providers.md +++ b/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/integrations/providers.md @@ -15,7 +15,7 @@ sidebar_position: 1 | 提供商 | 配置方式 | |----------|-------| | **Nous Portal** | `hermes model`(OAuth,订阅制) | -| **OpenAI Codex** | `hermes model`(ChatGPT OAuth,使用 Codex 模型) | +| **OpenAI Codex** | `hermes model` → **ChatGPT or Codex Subscription**(ChatGPT OAuth,使用 Codex 模型) | | **GitHub Copilot** | `hermes model`(OAuth 设备码流程,`COPILOT_GITHUB_TOKEN`、`GH_TOKEN` 或 `gh auth token`) | | **GitHub Copilot ACP** | `hermes model`(在本地生成 `copilot --acp --stdio` 子进程) | | **Anthropic** | `hermes model`(Claude Max + 额外用量积分,通过 OAuth;也支持 Anthropic API key 或手动 setup-token——见下方说明) | @@ -69,7 +69,7 @@ hermes portal info # 随时查看登录状态和路由信息 :::info Codex 说明 OpenAI Codex 提供商通过设备码(device code)认证——打开一个 URL 并输入验证码。Hermes 将生成的凭据存储在 `~/.hermes/auth.json` 的自有认证存储中,并在存在 `~/.codex/auth.json` 时可导入现有的 Codex CLI 凭据。无需安装 Codex CLI。 -如果 token 刷新因终端错误(HTTP 4xx、`invalid_grant`、授权被撤销等)失败,Hermes 会将该刷新 token 标记为失效并停止重试,避免出现大量重复的认证失败。下一次请求会显示类型化的重新认证提示。运行 `hermes auth add codex-oauth`(或 `hermes model` → OpenAI Codex)开始新的设备码登录;成功交换后隔离状态自动解除。 +如果 token 刷新因终端错误(HTTP 4xx、`invalid_grant`、授权被撤销等)失败,Hermes 会将该刷新 token 标记为失效并停止重试,避免出现大量重复的认证失败。下一次请求会显示类型化的重新认证提示。运行 `hermes auth add openai-codex`(或 `hermes model` → **ChatGPT or Codex Subscription**)开始新的设备码登录;成功交换后隔离状态自动解除。 ::: :::warning diff --git a/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/user-guide/configuration.md b/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/user-guide/configuration.md index 4f7f03909f067..054057b0a9b88 100644 --- a/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/user-guide/configuration.md +++ b/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/user-guide/configuration.md @@ -1002,7 +1002,7 @@ AUXILIARY_VISION_MODEL=openai/gpt-4o | `"auto"` | 最佳可用(默认)。Vision 尝试 OpenRouter → Nous → Codex。 | — | | `"openrouter"` | 强制 OpenRouter —— 路由到任何模型(Gemini、GPT-4o、Claude 等) | `OPENROUTER_API_KEY` | | `"nous"` | 强制 Nous Portal | `hermes auth` | -| `"codex"` | 强制 Codex OAuth(ChatGPT 账户)。支持视觉(gpt-5.3-codex)。 | `hermes model` → Codex | +| `"codex"` | 强制 Codex OAuth(ChatGPT 账户)。支持视觉(gpt-5.3-codex)。 | `hermes model` → ChatGPT or Codex Subscription | | `"minimax-oauth"` | 强制 MiniMax OAuth(浏览器登录,无需 API 密钥)。辅助任务使用 MiniMax-M2.7-highspeed。 | `hermes model` → MiniMax (OAuth) | | `"xai-oauth"` | 强制 xAI Grok OAuth(SuperGrok 或 X Premium+ 订阅者的浏览器登录,无需 API 密钥)。相同的 OAuth token 涵盖聊天、TTS、图像、视频和转录。 | `hermes model` → xAI Grok OAuth (SuperGrok / Premium+) | | `"main"` | 使用您的活跃自定义/主端点。可以来自 `OPENAI_BASE_URL` + `OPENAI_API_KEY` 或通过 `hermes model` / `config.yaml` 保存的自定义端点。适用于 OpenAI、本地模型或任何 OpenAI 兼容 API。**仅限辅助任务 —— 对 `model.provider` 无效。** | 自定义端点凭据 + 基础 URL | diff --git a/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/user-guide/features/fallback-providers.md b/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/user-guide/features/fallback-providers.md index ae106ffcd4152..1aa55fd8467e2 100644 --- a/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/user-guide/features/fallback-providers.md +++ b/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/user-guide/features/fallback-providers.md @@ -50,7 +50,7 @@ fallback_model: | AI Gateway | `ai-gateway` | `AI_GATEWAY_API_KEY` | | OpenRouter | `openrouter` | `OPENROUTER_API_KEY` | | Nous Portal | `nous` | `hermes setup --portal`(全新安装)或 `hermes auth add nous`(OAuth) | -| OpenAI Codex | `openai-codex` | `hermes model`(ChatGPT OAuth) | +| OpenAI Codex | `openai-codex` | `hermes model` → **ChatGPT or Codex Subscription**(ChatGPT OAuth) | | GitHub Copilot | `copilot` | `COPILOT_GITHUB_TOKEN`、`GH_TOKEN` 或 `GITHUB_TOKEN` | | GitHub Copilot ACP | `copilot-acp` | 外部进程(编辑器集成) | | Anthropic | `anthropic` | `ANTHROPIC_API_KEY` 或 Claude Code 凭据 | @@ -272,7 +272,7 @@ fallback_model: | `"auto"` | 按顺序尝试各提供商直到找到可用的(默认) | 至少配置一个提供商 | | `"openrouter"` | 强制使用 OpenRouter | `OPENROUTER_API_KEY` | | `"nous"` | 强制使用 Nous Portal | `hermes auth` | -| `"codex"` | 强制使用 Codex OAuth | `hermes model` → Codex | +| `"codex"` | 强制使用 Codex OAuth | `hermes model` → ChatGPT or Codex Subscription | | `"main"` | 使用主 Agent 当前的提供商(仅限辅助任务) | 已配置活跃的主提供商 | | `"anthropic"` | 强制使用 Anthropic 原生 | `ANTHROPIC_API_KEY` 或 Claude Code 凭据 |