Skip to content

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

821 B
Raw Blame
import test from "node:test";
import assert from "node:assert/strict";
import { getProviderById } from "../../src/shared/constants/providers.ts";

const note = (id: string): string => getProviderById(id)?.freeNote ?? "";

test("kiro freeNote reflects the current 50-credit/month reality + ToS warning", () => {
  const n = note("kiro");
  assert.match(n, /50 credits\/month/i);
  assert.match(n, /ToS|proxy/i);
});

test("longcat freeNote reflects the post-2026-05-29 5M tokens/day reality", () => {
  assert.match(note("longcat"), /5M tokens\/day|LongCat-2\.0/i);
});

test("cerebras freeNote reflects the $5 card-gated signup credit (#11773)", () => {
  const n = note("cerebras");
  assert.match(n, /\$5/);
  assert.match(n, /payment method|credit card/i);
  assert.equal(/1M tokens\/day|30K TPM/.test(n), false);
});