Skip to content

Commit 6ac6bea

Browse files
junjun
authored andcommitted
Merge remote-tracking branch 'origin/dev' into dev
# Conflicts: # docs-site/src/content/docs/ja/getting-started/quickstart.md # docs-site/src/content/docs/ja/guides/codex-integration.md # docs-site/src/content/docs/ja/reference/cli.md # docs-site/src/content/docs/ja/reference/configuration.md # docs-site/src/content/docs/ko/getting-started/quickstart.md # docs-site/src/content/docs/ko/guides/codex-integration.md # docs-site/src/content/docs/ko/reference/cli.md # docs-site/src/content/docs/ko/reference/configuration.md # docs-site/src/content/docs/reference/cli.md # docs-site/src/content/docs/reference/configuration.md # docs-site/src/content/docs/ru/guides/codex-integration.md # docs-site/src/content/docs/ru/reference/cli.md # docs-site/src/content/docs/ru/reference/configuration.md # docs-site/src/content/docs/zh-cn/getting-started/quickstart.md # docs-site/src/content/docs/zh-cn/guides/codex-integration.md # docs-site/src/content/docs/zh-cn/reference/cli.md # docs-site/src/content/docs/zh-cn/reference/configuration.md
2 parents 55ce981 + 6edec46 commit 6ac6bea

50 files changed

Lines changed: 937 additions & 421 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

docs-site/src/content/docs/getting-started/quickstart.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ ocx init
1313

1414
`ocx init` walks you through:
1515

16-
1. **Pick a provider** — choose one of the 62 built-in registry presets or `custom` to type a base
16+
1. **Pick a provider** — choose one of the 66 built-in registry presets or `custom` to type a base
1717
URL and adapter.
1818
2. **API key** — paste a key, or reference an environment variable like `${ANTHROPIC_API_KEY}`.
1919
3. **Default model** — for key, local, and custom providers, accept the preset or enter a model id.

docs-site/src/content/docs/guides/codex-integration.md

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -184,15 +184,7 @@ start and on `ocx sync`, opencodex:
184184
4. **Filters** `config.disabledModels` and each provider's non-empty `selectedModels` allowlist.
185185
5. **Re-ranks** so featured models sort first (see below), then writes the merged catalog back.
186186

187-
The cloned catalog `base_instructions` identity line is rewritten to the real upstream model name
188-
as static catalog metadata. Runtime request identity is handled separately: routed adapters replace
189-
Codex's live GPT-5 identity line with a model-agnostic coding-agent introduction.
190-
When unique, their default picker label is the final segment of the native model id, so provider
191-
namespaces do not hide the model name in narrow pickers. Basename collisions retain enough native
192-
route context to distinguish the rows; if the same native id comes from multiple providers, the
193-
provider is shown too. The full catalog slug remains in the description. Configure a custom display
194-
name when the route itself matters visually (for example, `Claude Opus 5 (TeamClaude)`); custom
195-
names continue to take precedence.
187+
Routed catalog entries also get their GPT-5 identity rewritten to the real upstream model name.
196188
Reasoning controls come from provider/model metadata across Codex's `low | medium | high | xhigh |
197189
max | ultra` ladder; unsupported values are mapped or clamped before the upstream request.
198190

docs-site/src/content/docs/guides/providers.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ selectors, then retry. Signing in from a machine with no existing `kiro-cli` ses
190190

191191
## 3. API-key catalog
192192

193-
opencodex ships 65 built-in presets: 54 key-based, seven OAuth, three local, and the default
193+
opencodex ships 66 built-in presets: 55 key-based, seven OAuth, three local, and the default
194194
ChatGPT-forward preset. The dashboard's **Add provider** picker opens a key provider's dashboard,
195195
validates the key, and stores it. Notable entries:
196196

@@ -209,6 +209,7 @@ validates the key, and stores it. Notable entries:
209209
| Cerebras | `https://api.cerebras.ai/v1` |
210210
| DeepInfra | `https://api.deepinfra.com/v1/openai` |
211211
| Hyperbolic | `https://api.hyperbolic.xyz/v1` |
212+
| Baseten Model APIs | `https://inference.baseten.co/v1` |
212213
| Together | `https://api.together.xyz/v1` |
213214
| Fireworks | `https://api.fireworks.ai/inference/v1` |
214215
| Moonshot (Kimi API) · Kimi (coding) | `https://api.moonshot.ai/v1` · `https://api.kimi.com/coding/v1` |
@@ -257,6 +258,12 @@ slash-containing native model ids, and caps live discovery at 256 KiB and 256 ra
257258
serverless text and vision-language chat only; Hyperbolic's separate image, audio, and GPU endpoints
258259
are out of scope. Create keys at [Hyperbolic](https://app.hyperbolic.ai).
259260

261+
> **Baseten scope:** The preset covers Baseten's shared [Model APIs](https://docs.baseten.co/inference/model-apis/overview)
262+
> only. Use a personal [API key](https://docs.baseten.co/organization/api-keys) for local use, or a team key
263+
> with **Call Model APIs** access for shared/production use. Dedicated Truss `predict` endpoints use different
264+
> hosts and schemas and are not routed by this preset.
265+
> Live discovery for this preset is capped at a 1 MiB response and 256 raw model rows.
266+
260267
> **Tencent Cloud Coding Plan usage restriction:** Tencent documents this subscription for
261268
> interactive coding tools only. General API automation, custom application backends, and
262269
> non-interactive batch use are prohibited and may cause the plan key to be suspended.

docs-site/src/content/docs/ja/getting-started/quickstart.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ ocx init
1313

1414
`ocx init` では次の手順を説明します。
1515

16-
1. **プロバイダーを選択してください**62 の組み込みレジストリ プリセットのいずれか、または `custom` を選択してベースを入力します
16+
1. **プロバイダーを選択してください**66 の組み込みレジストリ プリセットのいずれか、または `custom` を選択してベースを入力します
1717
URLとアダプター。
1818
2. **API キー** — キーを貼り付けるか、`${ANTHROPIC_API_KEY}` のような環境変数を参照します。
1919
3. **デフォルト モデル** — キー、ローカル、カスタム プロバイダーの場合は、プリセットを受け入れるか、モデル ID を入力します。

docs-site/src/content/docs/ja/guides/codex-integration.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,8 @@ Codex には、ディスク上のカタログ (デフォルトでは `$CODEX_HOM
126126
4. **フィルター** `config.disabledModels` および各プロバイダーの空でない `selectedModels` ホワイトリスト。
127127
5. **再ランク** により、注目のモデルが最初に並べ替えられ (下記を参照)、その後、統合されたカタログが書き戻されます。
128128

129-
クローン カタログ `base_instructions` ID 行は、静的カタログ メタデータとして実際のアップストリーム モデル名に書き換えられます。ランタイム リクエスト ID は個別に処理されます。ルーテッド アダプターは、Codex のライブ GPT-5 ID ラインをモデルに依存しないコーディング エージェントの導入に置き換えます。一意の場合、デフォルトのピッカー ラベルはネイティブ モデル ID の最後のセグメントであるため、プロバイダーの名前空間は狭いピッカーでモデル名を隠しません。ベース名の衝突では、行を区別するのに十分なネイティブ ルート コンテキストが保持されます。同じネイティブ ID が複数のプロバイダーから取得されている場合は、そのプロバイダーも表示されます。完全なカタログのスラッグは説明に残ります。ルート自体が視覚的に重要な場合は、カスタム表示名を構成します (`Claude Opus 5 (TeamClaude)` など)。カスタム名は引き続き優先されます。推論制御は、Codex の `low | medium | high | xhigh | max | ultra` ラダー全体のプロバイダー/モデルのメタデータから取得されます。サポートされていない値は、アップストリーム要求の前にマップまたはクランプされます。
129+
プロバイダーとモデルメタデータに応じて Codex の `low | medium | high | xhigh | max | ultra` 段階を使い、
130+
上流がサポートしない値はリクエスト送信前にマッピングまたはサポート範囲に下げます。
130131

131132
### カスタムモデルの表示名
132133

docs-site/src/content/docs/ja/guides/providers.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ Kiro のログインには Kiro CLI が必要です。Unix では `curl -fsSL ht
119119

120120
## 3. API キーカタログ
121121

122-
opencodex には組み込みプリセットが 65 個含まれています。キー方式 54、OAuth 7、ローカル 3、
122+
opencodex には組み込みプリセットが 66 個含まれています。キー方式 55、OAuth 7、ローカル 3、
123123
デフォルト ChatGPT 転送プリセット 1 です。ダッシュボードの **Add provider** ピッカーはキー発行ページを開き、
124124
入力したキーを検証した後保存します。主な項目は以下のとおりです:
125125

@@ -138,6 +138,7 @@ opencodex には組み込みプリセットが 65 個含まれています。キ
138138
| Cerebras | `https://api.cerebras.ai/v1` |
139139
| DeepInfra | `https://api.deepinfra.com/v1/openai` |
140140
| Hyperbolic | `https://api.hyperbolic.xyz/v1` |
141+
| Baseten Model APIs | `https://inference.baseten.co/v1` |
141142
| Together | `https://api.together.xyz/v1` |
142143
| Fireworks | `https://api.fireworks.ai/inference/v1` |
143144
| Moonshot (Kimi API) · Kimi (coding) | `https://api.moonshot.ai/v1` · `https://api.kimi.com/coding/v1` |
@@ -180,6 +181,12 @@ Volcengine Agent Plan は `openai-responses` アダプターでネイティブ R
180181
vision-language chat のみを対象とし、別系統の image、audio、GPU endpoint は対象外です。キーは
181182
[Hyperbolic](https://app.hyperbolic.ai) で作成します。
182183

184+
> **Baseten の対象範囲:** このプリセットは Baseten の共有 [Model APIs](https://docs.baseten.co/inference/model-apis/overview)
185+
> のみを対象とします。ローカル利用では個人の [API キー](https://docs.baseten.co/organization/api-keys)を、
186+
> 共有/本番利用では **Call Model APIs** 権限を持つチームキーを使用してください。専用 Truss `predict`
187+
> エンドポイントはホストとスキーマが異なるため、このプリセットではルーティングされません。
188+
> このプリセットのライブディスカバリーは、レスポンス 1 MiB、モデルの生行 256 件が上限です。
189+
183190
> **Tencent Cloud Coding Plan の利用制限:** Tencent はこのサブスクリプションを対話型
184191
> コーディングツール専用としています。一般的な API 自動化、カスタムアプリのバックエンド、
185192
> 非対話型バッチ利用は禁止されており、プランキーが停止される場合があります。

docs-site/src/content/docs/ja/reference/cli/providers-accounts.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ remove <provider> <id> --yes Remove a stored account or key after an existence
7070
add-key <provider> [--label <label>] Add a key read only from piped stdin.
7171
login/reauth/code/cancel Run browser or manual-code auth from a headless shell.
7272
reset-credits <id|main> [--consume --yes] Inspect or consume Codex reset credits.
73-
Codex pool switches apply to new sessions; running threads keep their account.
73+
Codex pool selection applies to the next request after clearing existing affinity; in-flight requests keep their captured account.
7474
```
7575

7676
すべてのサブコマンドではプロキシが実行されている必要があります。 CLI は、記録されたランタイム ポートを自動解決します。操作が成功した場合は 0 で終了します。無効な使用法、不明なプロバイダーまたはアカウント/キー ID、到達不能なプロキシ、または API エラーが発生した場合は 1 で終了します。資格情報フィールドは、管理 API が返したとおりに表示されます (マスキングを含む)。生の API キーと OAuth トークンは決して返されません。表示の利便性は、ダッシュボードと同様にクライアント側で合成されます。`main` は、`openai` アカウント プール内の Codex アプリ ログインの CLI エイリアスであり、電子メールのない OAuth アカウントは `Account N` として表示され、プラン/ラベル列はプラン、マスクされた電子メール、ラベル、およびマスクされたキーにわたってフォールバックされます。
@@ -110,7 +110,13 @@ Codex pool switches apply to new sessions; running threads keep their account.
110110

111111
### `ocx account use <provider> <account-or-key-id|main> [--json]`
112112

113-
既存の Codex アカウント、OAuth アカウント、または API キーを選択します。 `openai` の場合、`main` は Codex App ログインを選択します。Codexの選択は **新しいセッション** にのみ適用されます。既存のスレッドはアカウントを保持し、有効な自動切り替えしきい値が後で手動ピンをオーバーライドする可能性があります。不明なプロバイダーまたは ID は 1 を終了します。`--json` は次を返します。
113+
既存の Codex アカウント、OAuth アカウント、または API key を選びます。`openai``main` は Codex App ログインを
114+
選択します。Codex Pool の選択は process-local affinity を消去し、既存の表示タスクを含む次のリクエストから適用されます。プロキシ再起動や affinity eviction 後もタスクは未紐付けになり得ますが、処理中のリクエストは取得済みアカウントを維持します。この選択は Pool routing のみを制御し、Direct mode は caller-owned/native main credential を使い続けます。使用量ベースのプロアクティブ切り替え、401/403 再認証、429/retry-after cooldown、除外、出力前 429/402 の障害回復により、後で別の適格 Pool アカウントが選ばれる場合があります。これらの回復経路は使用量ベース切り替えが off でも有効です。アカウント変更後も OpenCodex は会話コンテキストを再生しますが、provider prompt cache は再ウォームアップが必要な場合があります。
115+
不明なプロバイダーや id は終了コード 1 です。`--json` は次を返します。
116+
**401/403** では、そのアカウントへのプロセスローカルな affinity を解除し、再認証を要求します。
117+
**429** では `Retry-After` を尊重してアカウントの cooldown を開始し、affinity を解除したうえで、
118+
別の適格な Pool アカウントへリクエストを切り替えることがあります。これらの障害回復は
119+
`autoSwitchThreshold: 0` でも有効であり、`0` が無効にするのは使用量に基づく予防的な切り替えだけです。
114120

115121
```text
116122
{ ok: true, provider, type, activeId }

0 commit comments

Comments
 (0)