Skip to content

Never stop coding. Free MIT AI gateway: one endpoint, 375 providers (150+ free), 1,400+ models Kimi, Claude, GPT, Gemini, GLM, DeepSeek, MiniMax. Works with Claude Code, Codex, Cursor, OpenCode, Cline & Copilot. Quota-aware auto-fallback, RTK+Caveman compression saves 15-95% tokens, MCP/A2A, Desktop/PWA. Built by 900+ contributors

3.6 KB
Raw Blame
/**
 * usage/supportedProviders.ts — registration list of providers whose usage/quota
 * API is accepted by the dashboard and server routes.
 *
 * Extracted from `src/shared/constants/providers.ts` so that light consumers —
 * the provider-plugin manifest (`config/providerPluginManifest.ts`) above all —
 * can read the list without pulling the ~12-module provider registry, and
 * without an open-sse module reaching across the workspace boundary into
 * `src/` (the open-sse typecheck gate forbids open-sse → src imports). Same
 * pattern as `fetcherProviders.ts` (#11903): pure data — no imports, no module
 * state — so it cannot introduce a cycle. `src/shared/constants/providers.ts`
 * re-exports the value, so every existing `@/shared/constants/providers`
 * import path keeps working unchanged.
 *
 * Typed `readonly string[]` (not `as const`): the dashboard/server gates call
 * `USAGE_SUPPORTED_PROVIDERS.includes(providerId)` with a plain `string`, which
 * a literal-tuple type would reject (TS2345).
 */

// Providers that support usage/quota API
export const USAGE_SUPPORTED_PROVIDERS: readonly string[] = [
  "antigravity",
  "agy",
  "kiro",
  "amazon-q",
  "github",
  "codex",
  "claude",
  "anthropic",
  "cursor",
  "qoder",
  "kimi-coding",
  "kimi-coding-apikey",
  "glm",
  "glm-cn",
  "zai",
  "glmt",
  "opencode-go",
  "ollama-cloud",
  "minimax",
  "minimax-cn",
  "crof",
  "clinepass",
  "nanogpt",
  "nan",
  // Apmix (apmix.ai) — monthly weighted-token allowance + self-set daily/weekly caps
  // + top-up credits (GET https://api.apmix.ai/v1/usage, Bearer key)
  "apmix",
  "deepseek",
  "moonshot",
  "kimi",
  "xiaomi-mimo",
  "xiaomi-mimo-token-plan",
  "vertex",
  "vertex-partner",
  "codebuddy-cn",
  "codebuddy-intl",
  "cbai",
  // PromptQL playground credits (getCreditSummary → USD micros)
  "promptql",
  "pql",
  // Adobe Firefly web (cookie/JWT as apikey) — GET firefly.adobe.io/v1/credits/balance
  "adobe-firefly",
  "firefly",
  "hyperagent",
  "ha",
  // xAI OAuth (Grok) weekly quota (id + public alias, same pattern as ha/agy)
  "xai-oauth",
  "xao",
  // Grok Build subscription, billing credits, and auto top-up status
  "grok-cli",
  // Firecrawl team credits (GET /v2/team/credit-usage)
  "firecrawl",
  "context7",
  // Tavily monthly credits & quota (GET /usage)
  "tavily-search",
  "tavily",
  "jina-search",
  "jina",
  "jina-ai",
  "jina-reader",
  // Volcano Ark Plan subscriptions (agent-plan / coding-plan)
  "volcengine-agent-plan",
  "volcengine-coding-plan",
  // Command Code credits + 5h/weekly rolling windows
  "command-code",
  "conol-web",
  "cnl",
  "syntx",
  "stx",
  // Alibaba Coding Plan triple-window quota (#9603 UI gap — fetcher existed, list entry missing)
  "bailian-coding-plan",
  // Qwen Cloud / Model Studio personal Token Plan (cookie-authenticated console gateway)
  "qwen-cloud-token-plan",
  // AgentRouter (New-API) console balance quota (consoleApiKey + newApiUserId)
  "agentrouter",
  // Kilo Code personal USD balance (GET /api/profile/balance, existing OAuth token)
  "kilocode",
  // OpenRouter key limits + account credits (GET /api/v1/key + /api/v1/credits)
  "openrouter",
  // LLM Gateway DevPass allowance (GET /v1/key → monthly + weekly premium)
  "llmgateway",
  // Lyceum credit balance (GET /api/v2/external/billing/credits)
  "lyceum",
  // Devin CLI agentic quota (Codeium seat-management GetUserStatus, protobuf)
  "devin-cli",
  // ChatPlayground subscription and daily credits (GET /api/user)
  "chatplayground",
  "cpl",
  // Cloudflare Workers AI daily neurons vs the 10k/day free allocation (needs Analytics: Read)
  "cloudflare-ai",
];