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
feat(release): v2.0.4 — round-robin lastUsedAt persistence, zod standalone build fix
diegosouzapwf96ee44213ee
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex 4628adcc69..68c521dc00 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -7,6 +7,25 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0---+## [2.0.4] — 2026-03-06++> ### 🐛 Bug Fixes — Round-Robin Persistence & Docker Compatibility++### 🐛 Bug Fixes++- **#218 — Round-robin sticks to one account** — Added `last_used_at` column to `provider_connections` schema. Round-robin routing relied on `lastUsedAt` to rotate between accounts, but the column was missing from the database — the value was always `null`, causing selection to fall back to the same account. Includes auto-migration for existing databases+- **#217 — `Cannot find module 'zod'` in Docker/standalone builds** — Added `zod` to `serverExternalPackages` in `next.config.mjs`. Next.js standalone builds weren't tracing `zod` through dynamic imports, causing crashes on Docker startup. Data is **not lost** — the crash prevented the server from reading the existing database++### 📁 Files Changed++| File | Change |+| ------------------------- | ------------------------------------------------------ |+| `src/lib/db/core.ts` | Schema + migration + JSON migration for `last_used_at` |+| `src/lib/db/providers.ts` | INSERT + UPDATE SQL for `last_used_at` |+| `next.config.mjs` | `serverExternalPackages: ['better-sqlite3', 'zod']` |++---+## [2.0.3] — 2026-03-05> ### 🐛 Bug Fixes & Quota System Hardeningdiff --git a/package.json b/package.jsonindex e6aba6699b..602fba4d00 100644--- a/package.json+++ b/package.json@@ -1,6 +1,6 @@{"name": "omniroute",- "version": "2.0.3",+ "version": "2.0.4","description": "Smart AI Router with auto fallback — route to FREE & cheap models, zero downtime. Works with Cursor, Cline, Claude Desktop, Codex, and any OpenAI-compatible tool.","type": "module","bin": {