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 { MAXAI_REGISTRY_MODELS } from "../../../../executors/maxai/catalog.ts";
/**
* MaxAI — the MaxAI web app (chat.maxai.co / api.maxai.me) as an OpenAI-compatible
* provider. A signed web-app port (like zai-web): each request carries a
* per-request `X-Authorization` signature + a Bearer access token minted by the
* browser-mint flow. Runs over residential egress with a Firefox TLS fingerprint.
*
* authType `apikey`/authHeader `bearer`: the OpenAI-style access token is stored
* on the connection and replayed as `Authorization: Bearer`; the device id +
* user id ride in providerSpecificData and are folded into the signature. The
* token is refreshed out-of-band by the browser-mint (the `/oauth` refresh
* endpoint is deep-TLS-gated), so there is no central token-refresh case.
*/
export const maxaiProvider: RegistryEntry = {
id: "maxai",
alias: "mx",
format: "openai",
executor: "maxai",
baseUrl: "https://api.maxai.me",
authType: "apikey",
authHeader: "bearer",
defaultContextLength: 128000,
models: MAXAI_REGISTRY_MODELS,
};