Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ ocx init

`ocx init` vous accompagne dans les étapes suivantes :

1. **Choix d’un fournisseur** — sélectionnez l’un des 99 préréglages intégrés au registre, ou `custom` pour saisir une
1. **Choix d’un fournisseur** — sélectionnez l’un des 100 préréglages intégrés au registre, ou `custom` pour saisir une
URL de base et un adaptateur.
2. **Clé API** — collez une clé ou référencez une variable d’environnement telle que `${ANTHROPIC_API_KEY}`.
3. **Modèle par défaut** — pour les fournisseurs clés, locaux et personnalisés, acceptez le préréglage ou saisissez un identifiant de modèle.
Expand Down
2 changes: 1 addition & 1 deletion docs-site/src/content/docs/fr/guides/providers.md
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ existante n'est pas concernée.

## 3. Catalogue des clés API

opencodex fournit 99 préréglages intégrés : 82 à clé, 13 OAuth, trois locaux et un préréglage par défaut de
opencodex fournit 100 préréglages intégrés : 83 à clé, 13 OAuth, trois locaux et un préréglage par défaut de
transfert ChatGPT. Dans le tableau de bord, le sélecteur **Ajouter un fournisseur** ouvre le tableau de bord du
fournisseur à clé, valide la clé et l'enregistre ; la validation dépend du fournisseur. Parmi les entrées notables :

Expand Down
2 changes: 1 addition & 1 deletion docs-site/src/content/docs/getting-started/quickstart.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ ocx init

`ocx init` walks you through:

1. **Pick a provider** — choose one of the 99 built-in registry presets or `custom` to type a base
1. **Pick a provider** — choose one of the 100 built-in registry presets or `custom` to type a base
URL and adapter.
2. **API key** — paste a key, or reference an environment variable like `${ANTHROPIC_API_KEY}`.
3. **Default model** — for key, local, and custom providers, accept the preset or enter a model id.
Expand Down
18 changes: 17 additions & 1 deletion docs-site/src/content/docs/guides/providers.md
Original file line number Diff line number Diff line change
Expand Up @@ -456,7 +456,7 @@ The account list marks Kiro accounts excluded from automatic selection with a re

## 3. API-key catalog

opencodex ships 99 built-in presets: 82 key-based, 13 OAuth, three local, and one default
opencodex ships 100 built-in presets: 83 key-based, 13 OAuth, three local, and one default
ChatGPT-forward preset. The dashboard's **Add provider** picker opens a key provider's dashboard,
validates the key, and stores it; validation is provider-specific. Notable entries:

Expand Down Expand Up @@ -548,10 +548,26 @@ region-pinned EU routes, is at [opper.ai/models](https://opper.ai/models). Opper
| Xiaomi MiMo (OpenAI Chat) | `https://api.xiaomimimo.com/v1` |
| Kilo | `https://api.kilo.ai/api/gateway` |
| Opper | `https://api.opper.ai/v3/compat` |
| TokenLab | `https://api.tokenlab.sh/v1` |
| GitLab Duo | `https://cloud.gitlab.com/ai/v1/proxy/openai/v1` |
| Cloudflare AI Gateway | `https://gateway.ai.cloudflare.com/v1/{account-id}/{gateway}/anthropic` |
| …and more | opencode zen, Vercel AI Gateway, Venice, NanoGPT, Synthetic, Qianfan, Alibaba, Parallel, ZenMux, LiteLLM |

**TokenLab** is an OpenAI-compatible API gateway operated by TOKENLAB AI INC.
Create a workspace [API key](https://tokenlab.sh/dashboard/api?tab=keys), then run
`ocx provider add tokenlab` or select **TokenLab** in the dashboard's **Add provider** picker.
The preset uses [Chat Completions](https://docs.tokenlab.sh/quickstart) and discovers models at
`GET /v1/models?category=chat`, keeping only entries that declare `tool-use` capability.
Image, video, audio, embedding and decision models are excluded from this chat preset.

The [model catalog](https://docs.tokenlab.sh/api-reference/models/list-models) is public without
a key, but a supplied key is validated and scopes results to its model permissions and delivery
policy. Use a valid key with a funded workspace for inference. `gpt-5.6-terra` is the seeded
default; choose another discovered model if your key does not allow it. The provider and model
prefixes remain separate: `tokenlab/gpt-5.6-terra` sends `gpt-5.6-terra` upstream.
TokenLab's [terms](https://tokenlab.sh/tos) and [privacy policy](https://tokenlab.sh/privacy-policy)
apply to requests sent to this service.

The MiniMax and MiniMax (CN) provider cards can also show Coding Plan quota when the configured
key has an active plan. The dashboard reads the plan's 5-hour window and, when present, weekly
window; these are display observations and do not change model routing.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ ocx init

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

1. **プロバイダーを選択してください** — 99 個の組み込みレジストリプリセットのいずれか、または `custom` を選択してベース URL とアダプターを入力します。
1. **プロバイダーを選択してください** — 100 個の組み込みレジストリプリセットのいずれか、または `custom` を選択してベース URL とアダプターを入力します。
2. **API キー** — キーを貼り付けるか、`${ANTHROPIC_API_KEY}` のような環境変数を参照します。
3. **デフォルト モデル** — キー、ローカル、カスタム プロバイダーの場合は、プリセットを受け入れるか、モデル ID を入力します。
4. **プロキシ ポート** — デフォルトは `10100` です。
Expand Down
2 changes: 1 addition & 1 deletion docs-site/src/content/docs/ja/guides/providers.md
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ Kiro のログインには Kiro CLI が必要です。Unix では `curl -fsSL ht

## 3. API キーカタログ

opencodex には組み込みプリセットが 99 個含まれています。キー方式 82、OAuth 13、ローカル 3、
opencodex には組み込みプリセットが 100 個含まれています。キー方式 83、OAuth 13、ローカル 3、
デフォルト ChatGPT 転送プリセット 1 です。ダッシュボードの **Add provider** ピッカーはキー発行ページを開き、
入力したキーを検証した後保存します(検証はプロバイダー固有です)。主な項目は以下のとおりです:

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ ocx init

`ocx init`은 다음 과정을 안내합니다:

1. **프로바이더 선택** — 내장 레지스트리 프리셋 99개 중 하나를 고르거나 `custom`을 선택해 base URL과 adapter를 직접 입력합니다.
1. **프로바이더 선택** — 내장 레지스트리 프리셋 100개 중 하나를 고르거나 `custom`을 선택해 base URL과 adapter를 직접 입력합니다.
2. **API 키** — 키를 붙여넣거나 `${ANTHROPIC_API_KEY}` 같은 환경 변수를 참조합니다.
3. **기본 모델** — 키, 로컬, custom 프로바이더에서는 프리셋을 그대로 쓰거나 모델 ID를 직접 입력합니다.
4. **프록시 포트** — 기본값은 `10100`입니다.
Expand Down
2 changes: 1 addition & 1 deletion docs-site/src/content/docs/ko/guides/providers.md
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ Kiro 로그인에는 Kiro CLI가 필요합니다. Unix에서는 `curl -fsSL http

## 3. API 키 카탈로그

opencodex에는 빌트인 프리셋이 99개 들어 있습니다. 키 방식 82개, OAuth 13개, 로컬 3개,
opencodex에는 빌트인 프리셋이 100개 들어 있습니다. 키 방식 83개, OAuth 13개, 로컬 3개,
기본 ChatGPT 포워드 프리셋 1개입니다. 대시보드의 **Add provider** 선택기는 키 발급 페이지를 열고,
입력한 키를 검증한 뒤 저장합니다(검증은 프로바이더별로 다릅니다). 주요 항목은 다음과 같습니다:

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ ocx init

`ocx init` проведёт вас по следующим шагам:

1. **Выбор провайдера** — выберите один из 99 встроенных пресетов реестра или `custom`, чтобы
1. **Выбор провайдера** — выберите один из 100 встроенных пресетов реестра или `custom`, чтобы
ввести базовый URL и адаптер вручную.
2. **API-ключ** — вставьте ключ или сошлитесь на переменную окружения вида `${ANTHROPIC_API_KEY}`.
3. **Модель по умолчанию** — для провайдеров с ключом, локальных и `custom` примите значение из
Expand Down
2 changes: 1 addition & 1 deletion docs-site/src/content/docs/ru/guides/providers.md
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ Inline JSON и лишние позиционные аргументы откло

## 3. Каталог API-ключей

opencodex поставляется с 99 встроенными пресетами: 82 на основе ключей, 13 OAuth, три локальных и
opencodex поставляется с 100 встроенными пресетами: 83 на основе ключей, 13 OAuth, три локальных и
один пресет ChatGPT-форварда по умолчанию. Селектор **Add provider** в дашборде открывает страницу
выдачи ключей провайдера, проверяет ключ и сохраняет его; проверка зависит от провайдера.
Наиболее заметные записи:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ ocx init

`ocx init` adım adım size rehberlik eder:

1. **Bir sağlayıcı seçin** — yerleşik kayıt defterindeki 99 önayardan birini
1. **Bir sağlayıcı seçin** — yerleşik kayıt defterindeki 100 önayardan birini
veya bir temel URL ile adaptör yazmak için `custom` seçeneğini belirleyin.
2. **API anahtarı** — bir anahtar yapıştırın veya `${ANTHROPIC_API_KEY}` gibi
bir ortam değişkenine başvurun.
Expand Down
2 changes: 1 addition & 1 deletion docs-site/src/content/docs/tr/guides/providers.md
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,7 @@ olmayan bir makineden oturum açmak bundan etkilenmez.

## 3. API anahtarı kataloğu

opencodex 99 yerleşik önayar ile birlikte gelir: 82 anahtar tabanlı, 13
opencodex 100 yerleşik önayar ile birlikte gelir: 83 anahtar tabanlı, 13
OAuth, üç yerel ve bir varsayılan ChatGPT iletme önayarı. Kontrol panelinin
**Sağlayıcı ekle** seçicisi bir anahtar sağlayıcısının kontrol panelini açar,
anahtarı doğrular ve saklar; doğrulama sağlayıcıya özgüdür. Dikkate değer
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ ocx init

`ocx init` 会引导你完成:

1. **选择 provider** — 从内置 registry 的 99 个预设中选择一个,或选择 `custom` 手动输入 base URL 和 adapter。
1. **选择 provider** — 从内置 registry 的 100 个预设中选择一个,或选择 `custom` 手动输入 base URL 和 adapter。
2. **API key** — 粘贴一个 key,或引用一个环境变量,例如 `${ANTHROPIC_API_KEY}`。
3. **默认模型** — 对于 key、本地和 custom provider,接受预设值或输入模型 id。
4. **代理端口** — 默认为 `10100`。
Expand Down
2 changes: 1 addition & 1 deletion docs-site/src/content/docs/zh-cn/guides/providers.md
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ Kiro 登录需要 Kiro CLI:Unix 使用 `curl -fsSL https://cli.kiro.dev/instal

## 3. API 密钥目录

opencodex 内置 99 个预设:82 个密钥预设、13 个 OAuth 预设、3 个本地预设,以及 1 个默认的
opencodex 内置 100 个预设:83 个密钥预设、13 个 OAuth 预设、3 个本地预设,以及 1 个默认的
ChatGPT 转发预设。仪表盘的 **Add provider** 选择器会打开密钥提供商的控制台,验证并保存密钥。
验证因提供商而异。主要条目包括:

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ ocx init

`ocx init` 會引導你完成:

1. **選擇 provider** —— 從內建 registry 的 99 個預設中選擇一個,或選擇 `custom` 手動輸入
1. **選擇 provider** —— 從內建 registry 的 100 個預設中選擇一個,或選擇 `custom` 手動輸入
base URL 和 adapter。
2. **API key** —— 貼上一個 key,或引用一個環境變數,例如 `${ANTHROPIC_API_KEY}`。
3. **預設模型** —— 對於 API key、本機和 custom provider,可接受預設值或輸入模型 id。
Expand Down
2 changes: 1 addition & 1 deletion docs-site/src/content/docs/zh-tw/guides/providers.md
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ database 並移除目前的 WAL、SHM 與 journal sidecar,再發布先前的 s

## 3. API 金鑰目錄

opencodex 內建 99 個 preset:82 個 key-based、13 個 OAuth、3 個 local,以及 1 個預設 ChatGPT-forward
opencodex 內建 100 個 preset:83 個 key-based、13 個 OAuth、3 個 local,以及 1 個預設 ChatGPT-forward
preset。儀表板的 **Add provider** picker 會開啟 key provider 的 dashboard、驗證金鑰並儲存;驗證方式
依 provider 而異。主要條目如下。

Expand Down
1 change: 1 addition & 0 deletions scripts/test-layout/layout.json
Original file line number Diff line number Diff line change
Expand Up @@ -1229,6 +1229,7 @@
"openrouter-provider-routing.test.ts": "providers",
"openrouter-quota-reset-cooldown-4024.test.ts": "providers",
"opper-provider.test.ts": "providers",
"tokenlab-provider.test.ts": "providers",
"optional-shutdown-hooks.test.ts": "lib",
"orca-import.test.ts": "codex-integration",
"orcarouter-provider.test.ts": "providers",
Expand Down
28 changes: 28 additions & 0 deletions src/providers/registry/entries-extended.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1137,6 +1137,34 @@ export const PROVIDER_REGISTRY_EXTENDED: readonly ProviderRegistryEntry[] = [
modelInputModalities: OPPER_MODEL_INPUT_MODALITIES,
note: "EU-hosted AI gateway: one OpenAI-compatible endpoint and one key in front of 30+ providers. Bare model ids are pools (claude-sonnet-4-6, gpt-5.5) and Opper picks the route per request; vendor/model ids (anthropic/claude-sonnet-4-6) pin one provider. The catalogue is discovered live from /v3/compat/models with your key; the public list is at opper.ai/models. Token rates are the model providers' rates with no markup; Opper charges a 3% fee when you buy credits.",
},
{
// Public contract checked 2026-09-29: https://docs.tokenlab.sh/api-reference/models/list-models
// A supplied key is validated and scopes the catalog; anonymous discovery is also public.
id: "tokenlab",
label: "TokenLab",
adapter: "openai-chat",
baseUrl: "https://api.tokenlab.sh/v1",
authKind: "key",
dashboardUrl: "https://tokenlab.sh/dashboard/api?tab=keys",
liveModels: true,
preserveCustomDestination: true,
defaultModel: "gpt-5.6-terra",
models: ["gpt-5.6-terra"],
modelContextWindows: { "gpt-5.6-terra": 1_050_000 },
modelMaxOutputTokens: { "gpt-5.6-terra": 128_000 },
modelInputModalities: { "gpt-5.6-terra": ["text", "image"] },
modelDiscovery: {
path: "models",
query: { category: "chat" },
filter: {
allOf: [
{ path: ["tokenlab", "category"], equalsAny: ["chat"] },
{ path: ["tokenlab", "capabilities"], containsAny: ["tool-use"] },
],
},
},
note: "OpenAI-compatible API gateway. Create a workspace API key at tokenlab.sh. Live discovery lists tool-capable chat models available to your key and delivery policy.",
},
{
id: "opencode-free",
label: "OpenCode Free",
Expand Down
2 changes: 1 addition & 1 deletion structure/ops/docs-and-release.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ Manual navigation is defined in `docs-site/astro.config.mjs`. When adding a publ
sidebar and either add localized copies or intentionally accept Starlight fallback behavior.

Provider preset totals are recounted from the current registry when a preset lands. The
documented split is 99 total: 82 key-based, 13 OAuth, three local, and one default
documented split is 100 total: 83 key-based, 13 OAuth, three local, and one default
ChatGPT-forward preset. The English provider guide, all seven translated copies, and all eight
quickstarts carry the same counts.

Expand Down
10 changes: 10 additions & 0 deletions structure/providers-and-adapters.md
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,16 @@ healthy request can retry; stable missing files still cache as empty. Symlinked
directories pass through canonical confinement: inside-cwd targets load, outside targets
do not. The 30-second, 128-entry cache rechecks capacity at insertion time.

## TokenLab chat provider

The `tokenlab` key preset uses the existing OpenAI Chat adapter at
`https://api.tokenlab.sh/v1`. Registry-owned discovery requests the chat category and requires
the row's `tokenlab.capabilities` to include `tool-use`, excluding non-chat and unclassified
rows. A supplied key scopes the catalog to its model permissions and delivery policy; the
anonymous catalog does not establish authentication. Newly promoted preset collision protection
preserves an older same-named custom destination. `tests/providers/tokenlab-provider.test.ts`
covers derived entry points, scoped discovery, destination preservation and model routing.

## TypeSafe JEV decision provider

`src/providers/registry/entries-extended.ts` owns the canonical `jev` key preset at
Expand Down
1 change: 1 addition & 0 deletions tests/fixtures/test-layout-expected.json
Original file line number Diff line number Diff line change
Expand Up @@ -1241,6 +1241,7 @@
"openrouter-provider-routing.test.ts": "providers",
"openrouter-quota-reset-cooldown-4024.test.ts": "providers",
"opper-provider.test.ts": "providers",
"tokenlab-provider.test.ts": "providers",
"optional-shutdown-hooks.test.ts": "lib",
"orca-import.test.ts": "codex-integration",
"orcarouter-provider.test.ts": "providers",
Expand Down
2 changes: 1 addition & 1 deletion tests/providers/provider-registry-parity.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ const EXPECTED_KEY_PROVIDER_IDS = [
"deepseek", "cerebras", "chutes", "deepinfra", "hyperbolic", "nscale", "vultr", "jev", "baseten", "commandcode", "sambanova", "nebius", "crusoe", "digitalocean", "scaleway", "featherless", "novita", "together", "fireworks", "firepass", "moonshot",
"huggingface", "nvidia", "venice", "zai", "zhipu-bigmodel", "zhipu-bigmodel-coding", "zhipu-bigmodel-responses", "nanogpt", "synthetic", "siliconflow", "qwen-cloud", "tencent-coding-plan",
"volcengine", "volcengine-coding-plan", "volcengine-agent-plan", "qianfan", "alibaba", "alibaba-token-plan", "alibaba-token-plan-intl", "parallel", "zenmux", "litellm", "ollama-cloud", "mistral",
"minimax", "minimax-cn", "kimi-code", "opencode-zen", "vercel-ai-gateway", "opper",
"minimax", "minimax-cn", "kimi-code", "opencode-zen", "vercel-ai-gateway", "opper", "tokenlab",
"opencode-free", "xiaomi", "xiaomi-mimo", "kilo", "mimo-free", "mimo", "cloudflare-ai-gateway", "cloudflare-workers-ai", "gitlab-duo",
"qoder", "qoder-cn", "codebuddy", "codebuddy-cn", "stepfun", "claude-cli",
];
Expand Down
Loading
Loading