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
chore(release): bump to v3.5.4 — changelog, docs, version sync
diegosouzapw4d9312259cf0
diff --git a/.gitignore b/.gitignoreindex 9cb70186d7..3e1e5dcbc9 100644--- a/.gitignore+++ b/.gitignore@@ -120,6 +120,7 @@ security-analysis/clipr/app.log*.tgz+.gh-discussions.json# Backup directoriesapp.__qa_backup/diff --git a/CHANGELOG.md b/CHANGELOG.mdindex 4283d59a67..c0f5e46243 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -4,6 +4,50 @@---+## [3.5.4] — 2026-04-07++### ✨ New Features++- **Detailed Token Tracking:** Added granular token breakdown columns (cache read, cache write, reasoning) to call logs with proper null vs zero distinction. Includes DB migration 018 and 5-label UI display per provider capability (#1017 — thanks @rdself).+- **Legacy JSON Config Import/Export:** Restored JSON-based settings export and import for migration from legacy 9router configurations. Security-hardened with Zero-Trust redaction of passwords and `requireLogin` fields, and automatic pre-import database backups (#1012 — thanks @luandiasrj).+- **Non-Stream Aliases:** Added API support for explicit non-streaming aliases (`non_stream`, `disable_stream`, `disable_streaming`, `streaming=false`), normalized at the boundary before provider translation (#1036 — thanks @wlfonseca).+- **Russian Dashboard Localization:** Comprehensive Russian translation for the dashboard UI, including fixes for 2 Ukrainian locale keys (#1003 — thanks @mercs2910).++### 🐛 Bug Fixes++- **Anthropic Streaming Input Undercount:** Fixed a critical bug where Anthropic streaming `prompt_tokens` only reported non-cached tokens (e.g., `in=3` when actual total was 113,616). Cache tokens are now summed into prompt_tokens during streaming (#1017).+- **Built-in Responses API Tool Types:** Preserved built-in Responses API tools (`web_search`, `file_search`, `computer`, `code_interpreter`, `image_generation`) from being silently stripped by the empty-name tool filter — these tools carry no `.name` field (#1014 — thanks @rdself).+- **Cursor/Codex Responses Compatibility:** Fixed empty output in Cursor when using Codex models by hoisting system input items to `instructions`, sanitizing invalid tool names, and detecting Responses-format payloads on chat/completions endpoint (#1002 — thanks @mercs2910).+- **OAuth Token Expiry Display:** Fixed OAuth connections showing "expired" badge even with valid tokens by reading `tokenExpiresAt` (updated on refresh) instead of `expiresAt` (original grant timestamp) (#1032 — thanks @tombii).+- **Codex Fast-Tier Copy:** Corrected dashboard settings copy from `service_tier=fast` to `service_tier=priority`, matching the actual Codex wire format (#1045 — thanks @kfiramar).+- **macOS Desktop App Startup:** Stabilized packaged macOS app launch by excluding desktop artifacts from the standalone bundle and improving launch path detection (#1004 — thanks @mercs2910).+- **macOS Sidebar Layout:** Fixed macOS traffic light overlap, sidebar spacing, and button overflow in the Electron desktop app (#1001 — thanks @mercs2910).++### ⚡ Performance++- **Analytics Page Load:** Dramatically reduced analytics page load times (30s→1-2s for 50K entries) via date-filtered DB queries, parallel `Promise.all()` cost calculations, and merged 6 COUNT queries into a single CASE WHEN aggregate (#1038 — thanks @oyi77).++### 🔒 Security & Dependencies++- **Node Base Image:** Upgraded Docker base from `22-bookworm-slim` to `22.22.2-trixie-slim` (#1011 — Snyk).+- **Production Dependencies:** Bumped 5 production dependencies (#1044 — Dependabot).+- **Vite:** Bumped from 8.0.3 to 8.0.5 (#1031 — Dependabot).+- **Development Dependencies:** Bumped 4 development dependencies (#1030 — Dependabot).++### 🧪 Tests++- **Token Accounting Tests:** Added 18 new unit tests covering detailed token breakdown, null vs zero semantics, per-provider token extraction, and Anthropic streaming input fix (#1017).+- **Built-in Tool Tests:** Added 3 new test cases for built-in Responses API tool type preservation (#1014).+- **ChatCore Sanitization:** Updated sanitization tests to accommodate Responses format detection (PR #1002) and built-in tool preservation (PR #1014).++### 🛠️ Maintenance++- **PR Workflow:** Updated `/review-prs` workflow to merge PRs into the release branch (`release/vX.Y.Z`) instead of directly into `main`, ensuring proper pre-release staging.++### Coverage++- **2537 tests, 2532 passing** — Statement coverage: 91.95%, Branch coverage: 78.79%, Function coverage: 93.19%+## [3.5.3] - 2026-04-07### Securitydiff --git a/docs/openapi.yaml b/docs/openapi.yamlindex 3ab9ebb7b0..2e2f51757c 100644--- a/docs/openapi.yaml+++ b/docs/openapi.yaml@@ -1,7 +1,7 @@openapi: 3.1.0info:title: OmniRoute API- version: 3.5.3+ version: 3.5.4description: |OmniRoute is a local-first AI API proxy router. It provides an OpenAI-compatibleendpoint that routes requests to multiple AI providers with load balancing,diff --git a/electron/package.json b/electron/package.jsonindex 283d97a02e..9cb5d9aec1 100644--- a/electron/package.json+++ b/electron/package.json@@ -1,6 +1,6 @@{"name": "omniroute-desktop",- "version": "3.5.2",+ "version": "3.5.4","description": "OmniRoute Desktop Application","main": "main.js","author": {diff --git a/llm.txt b/llm.txtindex 4ecfa2417b..3ca65dd096 100644--- a/llm.txt+++ b/llm.txt@@ -8,7 +8,7 @@ OmniRoute solves the problem of managing multiple AI provider subscriptions, quo**Key value:** One endpoint (`http://localhost:20128/v1`), unlimited models, zero downtime, minimal cost.-**Current version:** 3.5.2+**Current version:** 3.5.4## Tech Stack@@ -277,7 +277,7 @@ OmniRoute solves the problem of managing multiple AI provider subscriptions, quo└── .env.example # Environment variable template```-## Key Features (v3.5.2)+## Key Features (v3.5.4)### Core Proxy- **60+ AI providers** with automatic format translationdiff --git a/open-sse/package.json b/open-sse/package.jsonindex 92a132179b..0199f2c0a7 100644--- a/open-sse/package.json+++ b/open-sse/package.json@@ -1,6 +1,6 @@{"name": "@omniroute/open-sse",- "version": "3.5.2",+ "version": "3.5.4","description": "Express SSE sidecar for OmniRoute — handles streaming, protocol translation, and provider orchestration","type": "module","main": "index.js",diff --git a/package-lock.json b/package-lock.jsonindex 436c5bf8e9..3d581597d5 100644--- a/package-lock.json+++ b/package-lock.json@@ -1,12 +1,12 @@{"name": "omniroute",- "version": "3.5.3",+ "version": "3.5.4","lockfileVersion": 3,"requires": true,"packages": {"": {"name": "omniroute",- "version": "3.5.3",+ "version": "3.5.4","hasInstallScript": true,"license": "MIT","workspaces": [@@ -20977,7 +20977,7 @@},"open-sse": {"name": "@omniroute/open-sse",- "version": "3.5.2"+ "version": "3.5.4"}}}diff --git a/package.json b/package.jsonindex 11f0489535..ad63f47811 100644--- a/package.json+++ b/package.json@@ -1,6 +1,6 @@{"name": "omniroute",- "version": "3.5.3",+ "version": "3.5.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": {