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 { GLM_SHARED_MODELS } from "../../../glmProvider.ts";
const GLM_EXECUTOR_EFFORT_ALIASES = new Set([
"glm-5.3-high",
"glm-5.3-low",
"glm-5.3-flash-high",
"glm-5.3-flash-low",
"glm-5.3-flash-max",
"glm-5.2-high",
"glm-5.2-max",
]);
export const ZCODE_MODELS = GLM_SHARED_MODELS.filter(
(model) => !GLM_EXECUTOR_EFFORT_ALIASES.has(model.id)
).map((model) => ({
...model,
supportedThinkingEfforts: [],
supportsVision: Boolean(model.supportsVision),
}));
/**
* Local ZCode app-server backend. Authentication remains in the user's local
* ZCode profile (`builtin:zai-coding-plan`); OmniRoute does not receive or
* persist the Z.ai credential.
*/
export const zcodeProvider: RegistryEntry = {
id: "zcode",
alias: "zc",
format: "openai",
executor: "zcode",
baseUrl: "zcode://app-server/stdio",
authType: "none",
authHeader: "none",
// ZCode's app-server transport does not consume reasoning_effort; keep thinking
// capability metadata without advertising aliases or tiers that it would ignore.
models: ZCODE_MODELS,
};