-
Notifications
You must be signed in to change notification settings - Fork 716
feat(providers): add Nous Portal (Nous Research) OAuth provider — device grant + free/paid live catalog #1397
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
5cb2fed
d57de69
3a80860
01824ba
e139b09
65b7bd1
ae846e2
2efcf4b
bbc3758
e10953b
2efb345
8e08936
2a77b66
de819e6
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -52,7 +52,7 @@ Codex login を Pool モードで使うと、Providers の概要には任意の | |
| | --- | --- | --- | | ||
| | `key` | API キーを送信します(`Authorization: Bearer …`、またはアダプターにより `x-api-key` / `api-key`)。キーはリテラルまたは `${ENV_VAR}` 参照です。 | 大半のプロバイダー。 | | ||
| | `forward` | **受け取った Codex 認証ヘッダーを**プロバイダーにそのまま中継します — キーを保存しません。ChatGPT ログインのパススルーです。 | OpenAI(`openai-responses` アダプター)。 | | ||
| | `oauth` | 保存された OAuth アクセストークンを読み込み bearer キーとして使い、期限切れ前に自動更新します。 | xAI、Anthropic、Kimi、Kiro、Google Antigravity、Cursor。 | | ||
| | `oauth` | 保存された OAuth アクセストークンを読み込み bearer キーとして使い、期限切れ前に自動更新します。 | xAI、Anthropic、Kimi、Kiro、Google Antigravity、Cursor、GitHub Copilot、Nous Portal。 | | ||
|
|
||
| [`retryOn429`](/ja/reference/configuration/)(同一キーでの 429 リトライ)は API キー プロバイダー | ||
| (`authMode: "key"`)のみに適用されます。OAuth・forward・ローカル プリセットは除外されます — | ||
|
|
@@ -84,7 +84,7 @@ ChatGPT パススルーカタログには GPT-5.6 Sol/Terra/Luna の名前空間 | |
|
|
||
| ## 2. アカウントログイン(OAuth) | ||
|
|
||
| OAuth ログインを使うプロバイダープリセットは 7 つで、これに実験的な非公式デバイスフロー | ||
| OAuth ログインを使うプロバイダープリセットは 8 つで、これに実験的な非公式デバイスフロー | ||
| ブリッジ経由の GitHub Copilot が加わります。認証情報は `~/.opencodex/auth.json` に保存され、 | ||
| 自動更新されます。ログイン CLI は `chatgpt` も受け付けます。このコマンドは ChatGPT 認証情報を | ||
| 発行し `forward` モードのプロバイダーエントリを作成します。 | ||
|
|
@@ -93,6 +93,7 @@ OAuth ログインを使うプロバイダープリセットは 7 つで、こ | |
| ocx login xai # xAI Grok | ||
| ocx login anthropic # Anthropic Claude (Pro/Max) | ||
| ocx login kimi # Moonshot Kimi | ||
| ocx login nous # Nous Portal (デバイスグラント; 無料 + 有料モデル) | ||
| ocx login kiro # kiro-cli 認証情報の取り込み(トークンフォールバック対応) | ||
| ocx login google-antigravity | ||
| ocx login cursor # Cursor 専用 PKCE ログイン | ||
|
|
@@ -107,11 +108,14 @@ ocx logout <provider> | |
| | `xai` | `openai-chat` | `https://api.x.ai/v1` | ライブ一覧を優先し、フォールバックのデフォルトモデルは `grok-4.5`。 | | ||
| | `anthropic` | `anthropic` | `https://api.anthropic.com` | Claude モデル; ライブモデル一覧は `/v1/models` から取得。 | | ||
| | `kimi` | `openai-chat` | `https://api.kimi.com/coding/v1` | Kimi K2.7/K2.6/K2.5 コーディングモデル。 | | ||
| | `nous` | `openai-chat` | `https://inference-api.nousresearch.com/v1` | Nous Research サブスクリプションゲートウェイ(Hermes Agent と同じバックエンド)。`portal.nousresearch.com` へのデバイスグラントログイン; access トークンはリクエストごとの inference JWT。有料 + `:free` モデルの混在カタログ(`tencent/hy3:free`、`stepfun/step-3.7-flash:free` など)はサインイン中のアカウントからライブ探索されます。Refresh トークンは単回使用で、更新のたびにローテーションされます。 | | ||
| | `kiro` | `kiro` | `https://runtime.us-east-1.kiro.dev` | 初回ログインは、インストール済みでサインインした `kiro-cli` セッションを取り込みます(Unix では `curl -fsSL https://cli.kiro.dev/install | bash`、Windows PowerShell では `irm 'https://cli.kiro.dev/install.ps1' | iex` でインストールしてから `kiro-cli login` を実行)。**アカウントを追加**は `kiro-cli` をログアウトして新しいブラウザログインを開始し、`kiro-cli` 自体のアカウントを切り替えてアカウント別プロファイルメタデータを保存します。既存の OpenCodex アカウントは保持され、キャンセルまたは失敗時には以前の `kiro-cli` セッションが復元されます。 | | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win Fix raw pipeline characters in localized provider tables. Each Kiro row contains raw
🧰 Tools🪛 markdownlint-cli2 (0.23.2)[warning] 112-112: Spaces inside code span elements (MD038, no-space-in-code) [warning] 112-112: Spaces inside code span elements (MD038, no-space-in-code) [warning] 112-112: Table column count (MD056, table-column-count) 📍 Affects 4 files
🤖 Prompt for AI AgentsSource: Linters/SAST tools |
||
| | `google-antigravity` | `google` | `https://daily-cloudcode-pa.googleapis.com` | Google OAuth を Cloud Code Assist wire で使用。ライブ探索は認証済みの CCA `v1internal:fetchAvailableModels` エンドポイントを使用し、ログイン中のアカウントで利用可能な agent モデルのみを公開します。管理されたカタログはフォールバックとして残ります。 | | ||
| | `cursor` | `cursor` | `https://api2.cursor.sh` | 実験的 PKCE ログイン、HTTP/2 トランスポート、アカウント別モデル探索をサポート。 | | ||
| | `github-copilot` | `openai-chat` | `https://api.githubcopilot.com` | 実験的。GitHub デバイスフロー + `copilot_internal` 交換(VS Code OAuth クライアント)。有効な Copilot サブスクリプションが必要で、公式のサードパーティ API ではありません。 | | ||
|
|
||
| Nous の refresh が終端失敗した場合は、再認証に `ocx login nous` を実行してください。 | ||
|
|
||
| 正規の Kimi Coding Plan プリセット(`kimi` アカウントログインと `kimi-code` API key)では、 | ||
| opencodex は呼び出し元が指定した安定した `prompt_cache_key` だけを Chat Completions リクエストへ | ||
| 転送し、自ら生成しません。Kimi のドキュメントでは、Code Plan のキャッシュヒット率を高めるために | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.