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
TypeScript a2aai-agentsai-gatewayanthropicclaudeclaude-codeclinecodexcopilotcursordeepseekfree-aigeminikimillm-gatewaymcpopenaiopenai-proxyqwentoken-saver
import type { RegistryEntry } from "../../shared.ts";
import { getKiroServiceHeaders } from "../../shared.ts";
export const kiroProvider: RegistryEntry = {
id: "kiro",
alias: "kr",
format: "kiro",
executor: "kiro",
baseUrl: "https://codewhisperer.us-east-1.amazonaws.com/generateAssistantResponse",
authType: "oauth",
authHeader: "bearer",
defaultContextLength: 200000,
headers: getKiroServiceHeaders(),
oauth: {
tokenUrl: "https://prod.us-east-1.auth.desktop.kiro.dev/refreshToken",
authUrl: "https://prod.us-east-1.auth.desktop.kiro.dev",
},
// Model IDs must match Kiro's real upstream catalog exactly — an unknown id
// makes Kiro return `400 "Invalid model. Please select a different model"`.
// Fabricated ids (auto-kiro, claude-opus-4.x, claude-fable-5, claude-sonnet-4.6)
// were removed after live VPS validation: Kiro offers no Opus/Fable, its Sonnet
// is 4.5 (not 4.6), and there is no "auto" model id (it was sent verbatim and
// 400'd). claude-sonnet-5 is a real Kiro model but plan-gated per account —
// kept so entitled accounts can use it. See kiro cluster #6112/#6113/#6099.
models: [
{
id: "claude-sonnet-5",
name: "Claude Sonnet 5",
contextLength: 1000000,
maxOutputTokens: 128000,
supportsReasoning: true,
supportedThinkingEfforts: ["low", "medium", "high", "xhigh", "max"],
},
{
id: "claude-sonnet-4.5",
name: "Claude Sonnet 4.5",
contextLength: 200000,
maxOutputTokens: 64000,
},
{
id: "claude-haiku-4.5",
name: "Claude Haiku 4.5",
contextLength: 200000,
maxOutputTokens: 64000,
},
{ id: "deepseek-3.2", name: "DeepSeek V3.2" },
{ id: "minimax-m2.5", name: "MiniMax M2.5" },
{ id: "minimax-m2.1", name: "MiniMax M2.1" },
{ id: "glm-5", name: "GLM-5" },
{ id: "qwen3-coder-next", name: "Qwen3 Coder Next" },
// Kiro's first OpenAI-family models (kiro.dev/changelog/models, 2026-07-14):
// three tiers — Sol (flagship), Terra (balanced mid-tier), Luna (fastest/
// cheapest). They launched with a 272k context window; Kiro raised all three
// to 1M on 2026-09-14
// (https://kiro.dev/changelog/models/gpt-5-6-1m-context-window/).
{
id: "gpt-5.6-sol",
name: "GPT-5.6 Sol",
contextLength: 1000000,
maxOutputTokens: 128000,
},
{
id: "gpt-5.6-terra",
name: "GPT-5.6 Terra",
contextLength: 1000000,
maxOutputTokens: 128000,
},
{
id: "gpt-5.6-luna",
name: "GPT-5.6 Luna",
contextLength: 1000000,
maxOutputTokens: 128000,
},
],
};