Skip to content

Commit a4a594c

Browse files
lidge-junclaude
andcommitted
feat(providers): import the rest of jawcode's API providers into the catalog
Brings opencodex's API-key catalog up to jawcode's coverage — adds the real LLM API providers that were missing (baseUrls taken from jawcode's registry): - mistral, minimax, minimax-cn, kimi-code, opencode-zen, vercel-ai-gateway (openai-chat) - xiaomi (Xiaomi MiMo — Anthropic-compatible endpoint → anthropic adapter) Catalog: 19 → 26 providers. Intentionally excluded per "cursor 같은거 말고": CLI-agent integrations (cursor, github-copilot, gitlab-duo, google-gemini-cli/antigravity, kilo, opencode, openai-codex) and native-cloud-auth providers with no opencodex adapter (amazon-bedrock, google-vertex). Providers already present (anthropic, google, openai, azure, deepseek, cerebras, groq, openrouter, zai, zenmux, …) were left unchanged. Verified: tsc clean, all 7 present, no agents leaked in. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent 1b6c981 commit a4a594c

1 file changed

Lines changed: 14 additions & 1 deletion

File tree

src/oauth/key-providers.ts

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@ import type { OcxProviderConfig } from "../types";
33
/**
44
* API-key "login" providers: not OAuth — the flow opens the provider's dashboard so the user can
55
* create/copy a key, then validates + stores it as the provider's `apiKey` (authMode "key").
6-
* All use the OpenAI-compatible chat API with `Authorization: Bearer <key>` (the openai-chat adapter).
6+
* Most use the OpenAI-compatible chat API (`openai-chat` adapter, `Authorization: Bearer <key>`); a
7+
* few expose only an Anthropic-compatible endpoint and set `adapter: "anthropic"` (`x-api-key`).
78
*/
89
export interface KeyLoginProvider {
910
label: string;
@@ -62,6 +63,18 @@ export const KEY_LOGIN_PROVIDERS: Record<string, KeyLoginProvider> = {
6263
"gpt-oss", "qwen3-coder",
6364
],
6465
},
66+
// ── Brought over from the jawcode provider registry ────────────────────────────────────
67+
// Real LLM API providers. CLI-agent integrations (cursor, github-copilot, gitlab-duo,
68+
// google-gemini-cli/antigravity, kilo, opencode, openai-codex) and native-cloud-auth providers
69+
// (amazon-bedrock, google-vertex) are intentionally excluded. baseUrls are taken from jawcode.
70+
mistral: { label: "Mistral", baseUrl: "https://api.mistral.ai/v1", adapter: "openai-chat", dashboardUrl: "https://console.mistral.ai/api-keys", defaultModel: "codestral-latest" },
71+
minimax: { label: "MiniMax", baseUrl: "https://api.minimax.io/v1", adapter: "openai-chat", dashboardUrl: "https://platform.minimax.io", defaultModel: "MiniMax-M2.5" },
72+
"minimax-cn": { label: "MiniMax (CN)", baseUrl: "https://api.minimaxi.com/v1", adapter: "openai-chat", dashboardUrl: "https://platform.minimaxi.com", defaultModel: "MiniMax-M2.5" },
73+
"kimi-code": { label: "Kimi (coding)", baseUrl: "https://api.kimi.com/coding/v1", adapter: "openai-chat", dashboardUrl: "https://platform.moonshot.cn/console/api-keys", defaultModel: "kimi-k2.5" },
74+
"opencode-zen": { label: "opencode zen", baseUrl: "https://opencode.ai/zen/v1", adapter: "openai-chat", dashboardUrl: "https://opencode.ai/auth" },
75+
"vercel-ai-gateway": { label: "Vercel AI Gateway", baseUrl: "https://ai-gateway.vercel.sh/v1", adapter: "openai-chat", dashboardUrl: "https://vercel.com/dashboard" },
76+
// Xiaomi MiMo exposes an Anthropic-compatible endpoint → anthropic adapter (x-api-key).
77+
xiaomi: { label: "Xiaomi MiMo", baseUrl: "https://api.xiaomimimo.com/anthropic", adapter: "anthropic", dashboardUrl: "https://xiaomimimo.com", defaultModel: "mimo-v2.5-pro" },
6578
};
6679

6780
/**

0 commit comments

Comments
 (0)