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 assert from "node:assert/strict";
import test from "node:test";
import { anyapiProvider } from "../../open-sse/config/providers/registry/anyapi/index.ts";
import { electronhubProvider } from "../../open-sse/config/providers/registry/electronhub/index.ts";
import { fastrouterProvider } from "../../open-sse/config/providers/registry/fastrouter/index.ts";
import type { RegistryEntry } from "../../open-sse/config/providers/shared.ts";
const providers: Array<{
entry: RegistryEntry;
id: string;
chatUrl: string;
modelsUrl: string;
}> = [
{
entry: fastrouterProvider,
id: "fastrouter",
chatUrl: "https://api.fastrouter.ai/api/v1/chat/completions",
modelsUrl: "https://api.fastrouter.ai/api/v1/models",
},
{
entry: anyapiProvider,
id: "anyapi",
chatUrl: "https://api.anyapi.ai/v1/chat/completions",
modelsUrl: "https://api.anyapi.ai/v1/models",
},
{
entry: electronhubProvider,
id: "electronhub",
chatUrl: "https://api.electronhub.ai/v1/chat/completions",
modelsUrl: "https://api.electronhub.ai/v1/models",
},
];
for (const { entry, id, chatUrl, modelsUrl } of providers) {
test(`${id} uses the standard OpenAI-compatible API-key registry shape`, () => {
assert.equal(entry.id, id);
assert.equal(entry.alias, id);
assert.equal(entry.format, "openai");
assert.equal(entry.executor, "default");
assert.equal(entry.authType, "apikey");
assert.equal(entry.authHeader, "bearer");
assert.equal(entry.baseUrl, chatUrl);
assert.equal(entry.modelsUrl, modelsUrl);
assert.equal(entry.passthroughModels, true);
});
test(`${id} relies on its live catalog without invented static model ids`, () => {
assert.deepEqual(entry.models, []);
});
}