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
/**
* Post-install warm-up for OmniRoute native runtimes.
*
* Runs after the main `scripts/build/postinstall.mjs` binary-copy step.
* Tries to pre-resolve better-sqlite3 into ~/.omniroute/runtime/ so that
* the first execution is fast and EBUSY-resilient on Windows.
*
* Non-fatal: any error is printed as a warning and install continues.
*/
if (
process.env.OMNIROUTE_SKIP_POSTINSTALL === "1" ||
process.env.CI === "true" ||
process.env.CI === "1"
) {
process.exit(0);
}
(async () => {
try {
const { warmUpRuntimes } = await import("../bin/cli/runtime/index.mjs");
await warmUpRuntimes();
} catch (err) {
console.warn(`[omniroute] postinstall warm-up skipped: ${err?.message ?? err}`);
}
})();