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 test from "node:test";
import assert from "node:assert/strict";
const { APIKEY_PROVIDERS_ENTERPRISE } = await import(
"../../src/shared/constants/providers/apikey/enterprise-cloud.ts"
);
const { APIKEY_PROVIDERS_INFERENCE } = await import(
"../../src/shared/constants/providers/apikey/inference-hosts.ts"
);
const { WEB_COOKIE_PROVIDERS } = await import("../../src/shared/constants/providers/web-cookie.ts");
// #5461 — Scaleway's `website` pointed at https://www.scaleway.com/en/ai/generative-apis
// which returns HTTP 404. The live docs page is /en/docs/ai-data/generative-apis/.
test("#5461 Scaleway website points at a live docs URL, not the 404 marketing path", () => {
const scaleway = (APIKEY_PROVIDERS_ENTERPRISE as Record<string, any>).scaleway;
assert.ok(scaleway, "scaleway provider must exist");
assert.equal(scaleway.website, "https://www.scaleway.com/en/docs/ai-data/generative-apis/");
assert.ok(
!scaleway.website.includes("/en/ai/generative-apis"),
"must not keep the 404 marketing URL"
);
});
// #5470 — Together AI retired its $25 signup credit and is now fully prepaid
// (minimum $5 purchase). The catalog claimed a free tier, so the "Free" badge lied.
test("#5470 Together AI no longer advertises a free tier and warns about the prepaid minimum", () => {
const together = (APIKEY_PROVIDERS_INFERENCE as Record<string, any>).together;
assert.ok(together, "together provider must exist");
assert.equal(together.hasFree, false, "Together is prepaid-only — hasFree must be false");
assert.ok(!together.freeNote, "the stale $25/free-models freeNote must be gone");
const noticeText: string = together.notice?.text || "";
assert.ok(noticeText.length > 0, "a prepaid notice must be present");
assert.ok(!noticeText.includes("$25 signup credits"), "must not repeat the retired $25 claim");
assert.ok(/prepaid|\$5/i.test(noticeText), "notice must mention the prepaid / $5 minimum");
});
// #5534 — the M365 Copilot authHint gave no concrete steps and the reporter's guessed
// method (Authorization header) is wrong; the credential lives on the Chathub WS URL.
test("#5534 M365 Copilot authHint gives concrete DevTools WebSocket steps", () => {
const m365 = (WEB_COOKIE_PROVIDERS as Record<string, any>)["copilot-m365-web"];
assert.ok(m365, "copilot-m365-web provider must exist");
const hint: string = m365.authHint || "";
assert.ok(/websocket|\bWS\b/i.test(hint), "hint must point at the WebSocket (WS) tab");
assert.ok(/DevTools/i.test(hint), "hint must reference DevTools");
assert.ok(/access_token/.test(hint), "hint must name the access_token");
});