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
#!/usr/bin/env node
import { spawn } from "node:child_process";
const env = { ...process.env };
await exec("npx", ["next", "build", "--experimental-build-mode", "generate"]);
// launch application
const [command, ...args] = process.argv.slice(2);
if (!command) {
throw new Error("Missing command to launch after database setup");
}
await exec(command, args);
function exec(command, args = []) {
const child = spawn(command, args, { stdio: "inherit", env });
return new Promise((resolve, reject) => {
child.on("exit", (code) => {
if (code === 0) {
resolve();
} else {
reject(new Error(`${[command, ...args].join(" ")} failed rc=${code}`));
}
});
});
}