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
fix(oom): increase Docker heap to 1024MB + wire OMNIROUTE_MEMORY_MB override
soyelmismo2f707e08e0e8
diff --git a/Dockerfile b/Dockerfileindex 3e3331a5df..135c6abceb 100644--- a/Dockerfile+++ b/Dockerfile@@ -57,7 +57,8 @@ LABEL org.opencontainers.image.title="omniroute" \ENV NODE_ENV=productionENV PORT=20128ENV HOSTNAME=0.0.0.0-ENV NODE_OPTIONS="--max-old-space-size=256"+ENV OMNIROUTE_MEMORY_MB=1024+ENV NODE_OPTIONS="--max-old-space-size=${OMNIROUTE_MEMORY_MB}"# Data directory inside Docker — must match the volume mount in docker-compose.ymlENV DATA_DIR=/app/datadiff --git a/scripts/check-permissions.sh b/scripts/check-permissions.shindex 13eedf45b0..45846806ca 100755--- a/scripts/check-permissions.sh+++ b/scripts/check-permissions.sh@@ -1,6 +1,13 @@#!/bin/shset -e+# ── Memory limit override ──────────────────────────────────────────────+# If OMNIROUTE_MEMORY_MB is set, build NODE_OPTIONS dynamically so the+# user can tune heap size via environment without editing the Dockerfile.+if [ -n "$OMNIROUTE_MEMORY_MB" ]; then+ export NODE_OPTIONS="--max-old-space-size=${OMNIROUTE_MEMORY_MB} ${NODE_OPTIONS:-}"+fi+if [ -d "/app/data" ] && [ ! -w "/app/data" ]; thenecho "WARNING: /app/data is not writable by the current user (UID $(id -u))."echo "Run this on the Docker host to fix:"