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(export): exclude telemetry/usage-history tables from JSON config backups by default (#2125)
diegosouzapw61f5866ecc3f
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex 57eb82345e..5b44860597 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -26,6 +26,7 @@- **fix(embeddings):** add Google Gemini embeddings compatibility via OpenAI-compatible endpoint mapping (#2006)- **fix:** remove Anthropic-Beta header from non-Anthropic providers to fix identity contamination (#1989)- **fix(cli):** resolve .env loading failure for global npm installations+- **fix(export):** exclude telemetry/usage-history tables from JSON config backups by default to prevent unbounded file growth (#2125)### 🔒 Securitydiff --git a/docs/i18n/ar/CHANGELOG.md b/docs/i18n/ar/CHANGELOG.mdindex aad67091c3..016518011a 100644--- a/docs/i18n/ar/CHANGELOG.md+++ b/docs/i18n/ar/CHANGELOG.md@@ -31,6 +31,7 @@- **fix(embeddings):** add Google Gemini embeddings compatibility via OpenAI-compatible endpoint mapping (#2006)- **fix:** remove Anthropic-Beta header from non-Anthropic providers to fix identity contamination (#1989)- **fix(cli):** resolve .env loading failure for global npm installations+- **fix(export):** exclude telemetry/usage-history tables from JSON config backups by default to prevent unbounded file growth (#2125)### الأمانdiff --git a/docs/i18n/bg/CHANGELOG.md b/docs/i18n/bg/CHANGELOG.mdindex 38503a8e50..286eda4562 100644--- a/docs/i18n/bg/CHANGELOG.md+++ b/docs/i18n/bg/CHANGELOG.md@@ -31,6 +31,7 @@- **fix(embeddings):** add Google Gemini embeddings compatibility via OpenAI-compatible endpoint mapping (#2006)- **fix:** remove Anthropic-Beta header from non-Anthropic providers to fix identity contamination (#1989)- **fix(cli):** resolve .env loading failure for global npm installations+- **fix(export):** exclude telemetry/usage-history tables from JSON config backups by default to prevent unbounded file growth (#2125)### Сигурностdiff --git a/docs/i18n/bn/CHANGELOG.md b/docs/i18n/bn/CHANGELOG.mdindex 9114b46a09..1f5387dfd3 100644--- a/docs/i18n/bn/CHANGELOG.md+++ b/docs/i18n/bn/CHANGELOG.md@@ -31,6 +31,7 @@- **fix(embeddings):** add Google Gemini embeddings compatibility via OpenAI-compatible endpoint mapping (#2006)- **fix:** remove Anthropic-Beta header from non-Anthropic providers to fix identity contamination (#1989)- **fix(cli):** resolve .env loading failure for global npm installations+- **fix(export):** exclude telemetry/usage-history tables from JSON config backups by default to prevent unbounded file growth (#2125)### Seguridaddiff --git a/docs/i18n/cs/CHANGELOG.md b/docs/i18n/cs/CHANGELOG.mdindex c9d1fb0905..53c5588319 100644--- a/docs/i18n/cs/CHANGELOG.md+++ b/docs/i18n/cs/CHANGELOG.md@@ -31,6 +31,7 @@- **fix(embeddings):** add Google Gemini embeddings compatibility via OpenAI-compatible endpoint mapping (#2006)- **fix:** remove Anthropic-Beta header from non-Anthropic providers to fix identity contamination (#1989)- **fix(cli):** resolve .env loading failure for global npm installations+- **fix(export):** exclude telemetry/usage-history tables from JSON config backups by default to prevent unbounded file growth (#2125)### Bezpečnostdiff --git a/docs/i18n/da/CHANGELOG.md b/docs/i18n/da/CHANGELOG.mdindex cc411c534e..4319af09cd 100644--- a/docs/i18n/da/CHANGELOG.md+++ b/docs/i18n/da/CHANGELOG.md@@ -31,6 +31,7 @@- **fix(embeddings):** add Google Gemini embeddings compatibility via OpenAI-compatible endpoint mapping (#2006)- **fix:** remove Anthropic-Beta header from non-Anthropic providers to fix identity contamination (#1989)- **fix(cli):** resolve .env loading failure for global npm installations+- **fix(export):** exclude telemetry/usage-history tables from JSON config backups by default to prevent unbounded file growth (#2125)### Sikkerheddiff --git a/docs/i18n/de/CHANGELOG.md b/docs/i18n/de/CHANGELOG.mdindex ee8af23e34..12f29d54f7 100644--- a/docs/i18n/de/CHANGELOG.md+++ b/docs/i18n/de/CHANGELOG.md@@ -31,6 +31,7 @@- **fix(embeddings):** add Google Gemini embeddings compatibility via OpenAI-compatible endpoint mapping (#2006)- **fix:** remove Anthropic-Beta header from non-Anthropic providers to fix identity contamination (#1989)- **fix(cli):** resolve .env loading failure for global npm installations+- **fix(export):** exclude telemetry/usage-history tables from JSON config backups by default to prevent unbounded file growth (#2125)### Sicherheitdiff --git a/docs/i18n/es/CHANGELOG.md b/docs/i18n/es/CHANGELOG.mdindex bda20339d0..cb56801b7e 100644--- a/docs/i18n/es/CHANGELOG.md+++ b/docs/i18n/es/CHANGELOG.md@@ -31,6 +31,7 @@- **fix(embeddings):** add Google Gemini embeddings compatibility via OpenAI-compatible endpoint mapping (#2006)- **fix:** remove Anthropic-Beta header from non-Anthropic providers to fix identity contamination (#1989)- **fix(cli):** resolve .env loading failure for global npm installations+- **fix(export):** exclude telemetry/usage-history tables from JSON config backups by default to prevent unbounded file growth (#2125)### Seguridaddiff --git a/docs/i18n/fa/CHANGELOG.md b/docs/i18n/fa/CHANGELOG.mdindex 7deda41563..a0074436d4 100644--- a/docs/i18n/fa/CHANGELOG.md+++ b/docs/i18n/fa/CHANGELOG.md@@ -31,6 +31,7 @@- **fix(embeddings):** add Google Gemini embeddings compatibility via OpenAI-compatible endpoint mapping (#2006)- **fix:** remove Anthropic-Beta header from non-Anthropic providers to fix identity contamination (#1989)- **fix(cli):** resolve .env loading failure for global npm installations+- **fix(export):** exclude telemetry/usage-history tables from JSON config backups by default to prevent unbounded file growth (#2125)### Seguridaddiff --git a/docs/i18n/fi/CHANGELOG.md b/docs/i18n/fi/CHANGELOG.mdindex 58eb697a28..7308be7bbc 100644--- a/docs/i18n/fi/CHANGELOG.md+++ b/docs/i18n/fi/CHANGELOG.md@@ -31,6 +31,7 @@- **fix(embeddings):** add Google Gemini embeddings compatibility via OpenAI-compatible endpoint mapping (#2006)- **fix:** remove Anthropic-Beta header from non-Anthropic providers to fix identity contamination (#1989)- **fix(cli):** resolve .env loading failure for global npm installations+- **fix(export):** exclude telemetry/usage-history tables from JSON config backups by default to prevent unbounded file growth (#2125)### Turvallisuusdiff --git a/docs/i18n/fr/CHANGELOG.md b/docs/i18n/fr/CHANGELOG.mdindex a16ecb8a54..7a5390edf1 100644--- a/docs/i18n/fr/CHANGELOG.md+++ b/docs/i18n/fr/CHANGELOG.md@@ -31,6 +31,7 @@- **fix(embeddings):** add Google Gemini embeddings compatibility via OpenAI-compatible endpoint mapping (#2006)- **fix:** remove Anthropic-Beta header from non-Anthropic providers to fix identity contamination (#1989)- **fix(cli):** resolve .env loading failure for global npm installations+- **fix(export):** exclude telemetry/usage-history tables from JSON config backups by default to prevent unbounded file growth (#2125)### Sécuritédiff --git a/docs/i18n/gu/CHANGELOG.md b/docs/i18n/gu/CHANGELOG.mdindex 60d9d3f9d8..a64ecdc047 100644--- a/docs/i18n/gu/CHANGELOG.md+++ b/docs/i18n/gu/CHANGELOG.md@@ -31,6 +31,7 @@- **fix(embeddings):** add Google Gemini embeddings compatibility via OpenAI-compatible endpoint mapping (#2006)- **fix:** remove Anthropic-Beta header from non-Anthropic providers to fix identity contamination (#1989)- **fix(cli):** resolve .env loading failure for global npm installations+- **fix(export):** exclude telemetry/usage-history tables from JSON config backups by default to prevent unbounded file growth (#2125)### Seguridaddiff --git a/docs/i18n/he/CHANGELOG.md b/docs/i18n/he/CHANGELOG.mdindex 158f7f200e..4beb2e0536 100644--- a/docs/i18n/he/CHANGELOG.md+++ b/docs/i18n/he/CHANGELOG.md@@ -31,6 +31,7 @@- **fix(embeddings):** add Google Gemini embeddings compatibility via OpenAI-compatible endpoint mapping (#2006)- **fix:** remove Anthropic-Beta header from non-Anthropic providers to fix identity contamination (#1989)- **fix(cli):** resolve .env loading failure for global npm installations+- **fix(export):** exclude telemetry/usage-history tables from JSON config backups by default to prevent unbounded file growth (#2125)### אבטחהdiff --git a/docs/i18n/hi/CHANGELOG.md b/docs/i18n/hi/CHANGELOG.mdindex 73a4065dad..cb7e8033ce 100644--- a/docs/i18n/hi/CHANGELOG.md+++ b/docs/i18n/hi/CHANGELOG.md@@ -31,6 +31,7 @@- **fix(embeddings):** add Google Gemini embeddings compatibility via OpenAI-compatible endpoint mapping (#2006)- **fix:** remove Anthropic-Beta header from non-Anthropic providers to fix identity contamination (#1989)- **fix(cli):** resolve .env loading failure for global npm installations+- **fix(export):** exclude telemetry/usage-history tables from JSON config backups by default to prevent unbounded file growth (#2125)### सुरक्षाdiff --git a/docs/i18n/hu/CHANGELOG.md b/docs/i18n/hu/CHANGELOG.mdindex 899c671927..19597ebd63 100644--- a/docs/i18n/hu/CHANGELOG.md+++ b/docs/i18n/hu/CHANGELOG.md@@ -31,6 +31,7 @@- **fix(embeddings):** add Google Gemini embeddings compatibility via OpenAI-compatible endpoint mapping (#2006)- **fix:** remove Anthropic-Beta header from non-Anthropic providers to fix identity contamination (#1989)- **fix(cli):** resolve .env loading failure for global npm installations+- **fix(export):** exclude telemetry/usage-history tables from JSON config backups by default to prevent unbounded file growth (#2125)### Biztonságdiff --git a/docs/i18n/id/CHANGELOG.md b/docs/i18n/id/CHANGELOG.mdindex 782420e6b4..176b39eec4 100644--- a/docs/i18n/id/CHANGELOG.md+++ b/docs/i18n/id/CHANGELOG.md@@ -31,6 +31,7 @@- **fix(embeddings):** add Google Gemini embeddings compatibility via OpenAI-compatible endpoint mapping (#2006)- **fix:** remove Anthropic-Beta header from non-Anthropic providers to fix identity contamination (#1989)- **fix(cli):** resolve .env loading failure for global npm installations+- **fix(export):** exclude telemetry/usage-history tables from JSON config backups by default to prevent unbounded file growth (#2125)### Keamanandiff --git a/docs/i18n/it/CHANGELOG.md b/docs/i18n/it/CHANGELOG.mdindex 7ce7726609..0f8ebcfd9a 100644--- a/docs/i18n/it/CHANGELOG.md+++ b/docs/i18n/it/CHANGELOG.md@@ -31,6 +31,7 @@- **fix(embeddings):** add Google Gemini embeddings compatibility via OpenAI-compatible endpoint mapping (#2006)- **fix:** remove Anthropic-Beta header from non-Anthropic providers to fix identity contamination (#1989)- **fix(cli):** resolve .env loading failure for global npm installations+- **fix(export):** exclude telemetry/usage-history tables from JSON config backups by default to prevent unbounded file growth (#2125)### Sicurezzadiff --git a/docs/i18n/ja/CHANGELOG.md b/docs/i18n/ja/CHANGELOG.mdindex a18aa4132e..372f949f89 100644--- a/docs/i18n/ja/CHANGELOG.md+++ b/docs/i18n/ja/CHANGELOG.md@@ -31,6 +31,7 @@- **fix(embeddings):** add Google Gemini embeddings compatibility via OpenAI-compatible endpoint mapping (#2006)- **fix:** remove Anthropic-Beta header from non-Anthropic providers to fix identity contamination (#1989)- **fix(cli):** resolve .env loading failure for global npm installations+- **fix(export):** exclude telemetry/usage-history tables from JSON config backups by default to prevent unbounded file growth (#2125)### セキュリティdiff --git a/docs/i18n/ko/CHANGELOG.md b/docs/i18n/ko/CHANGELOG.mdindex ed201bc6d6..c62b5a63bf 100644--- a/docs/i18n/ko/CHANGELOG.md+++ b/docs/i18n/ko/CHANGELOG.md@@ -31,6 +31,7 @@- **fix(embeddings):** add Google Gemini embeddings compatibility via OpenAI-compatible endpoint mapping (#2006)- **fix:** remove Anthropic-Beta header from non-Anthropic providers to fix identity contamination (#1989)- **fix(cli):** resolve .env loading failure for global npm installations+- **fix(export):** exclude telemetry/usage-history tables from JSON config backups by default to prevent unbounded file growth (#2125)### 보안diff --git a/docs/i18n/mr/CHANGELOG.md b/docs/i18n/mr/CHANGELOG.mdindex 7f8bec5bc1..857787327f 100644--- a/docs/i18n/mr/CHANGELOG.md+++ b/docs/i18n/mr/CHANGELOG.md@@ -31,6 +31,7 @@- **fix(embeddings):** add Google Gemini embeddings compatibility via OpenAI-compatible endpoint mapping (#2006)- **fix:** remove Anthropic-Beta header from non-Anthropic providers to fix identity contamination (#1989)- **fix(cli):** resolve .env loading failure for global npm installations+- **fix(export):** exclude telemetry/usage-history tables from JSON config backups by default to prevent unbounded file growth (#2125)### Seguridaddiff --git a/docs/i18n/ms/CHANGELOG.md b/docs/i18n/ms/CHANGELOG.mdindex 8f720c0585..e78bec907d 100644--- a/docs/i18n/ms/CHANGELOG.md+++ b/docs/i18n/ms/CHANGELOG.md@@ -31,6 +31,7 @@- **fix(embeddings):** add Google Gemini embeddings compatibility via OpenAI-compatible endpoint mapping (#2006)- **fix:** remove Anthropic-Beta header from non-Anthropic providers to fix identity contamination (#1989)- **fix(cli):** resolve .env loading failure for global npm installations+- **fix(export):** exclude telemetry/usage-history tables from JSON config backups by default to prevent unbounded file growth (#2125)### Keselamatandiff --git a/docs/i18n/nl/CHANGELOG.md b/docs/i18n/nl/CHANGELOG.mdindex 649e164dfc..15ce84f57a 100644--- a/docs/i18n/nl/CHANGELOG.md+++ b/docs/i18n/nl/CHANGELOG.md@@ -31,6 +31,7 @@- **fix(embeddings):** add Google Gemini embeddings compatibility via OpenAI-compatible endpoint mapping (#2006)- **fix:** remove Anthropic-Beta header from non-Anthropic providers to fix identity contamination (#1989)- **fix(cli):** resolve .env loading failure for global npm installations+- **fix(export):** exclude telemetry/usage-history tables from JSON config backups by default to prevent unbounded file growth (#2125)### Beveiligingdiff --git a/docs/i18n/no/CHANGELOG.md b/docs/i18n/no/CHANGELOG.mdindex 43091cf36d..167f55d3b0 100644--- a/docs/i18n/no/CHANGELOG.md+++ b/docs/i18n/no/CHANGELOG.md@@ -31,6 +31,7 @@- **fix(embeddings):** add Google Gemini embeddings compatibility via OpenAI-compatible endpoint mapping (#2006)- **fix:** remove Anthropic-Beta header from non-Anthropic providers to fix identity contamination (#1989)- **fix(cli):** resolve .env loading failure for global npm installations+- **fix(export):** exclude telemetry/usage-history tables from JSON config backups by default to prevent unbounded file growth (#2125)### Sikkerhetdiff --git a/docs/i18n/phi/CHANGELOG.md b/docs/i18n/phi/CHANGELOG.mdindex 890b45beea..5341e1dec0 100644--- a/docs/i18n/phi/CHANGELOG.md+++ b/docs/i18n/phi/CHANGELOG.md@@ -31,6 +31,7 @@- **fix(embeddings):** add Google Gemini embeddings compatibility via OpenAI-compatible endpoint mapping (#2006)- **fix:** remove Anthropic-Beta header from non-Anthropic providers to fix identity contamination (#1989)- **fix(cli):** resolve .env loading failure for global npm installations+- **fix(export):** exclude telemetry/usage-history tables from JSON config backups by default to prevent unbounded file growth (#2125)### Seguridaddiff --git a/docs/i18n/pl/CHANGELOG.md b/docs/i18n/pl/CHANGELOG.mdindex 9a417a3cc3..32bde2ddce 100644--- a/docs/i18n/pl/CHANGELOG.md+++ b/docs/i18n/pl/CHANGELOG.md@@ -31,6 +31,7 @@- **fix(embeddings):** add Google Gemini embeddings compatibility via OpenAI-compatible endpoint mapping (#2006)- **fix:** remove Anthropic-Beta header from non-Anthropic providers to fix identity contamination (#1989)- **fix(cli):** resolve .env loading failure for global npm installations+- **fix(export):** exclude telemetry/usage-history tables from JSON config backups by default to prevent unbounded file growth (#2125)### Bezpieczeństwodiff --git a/docs/i18n/pt-BR/CHANGELOG.md b/docs/i18n/pt-BR/CHANGELOG.mdindex ecea110c94..3a42eba74d 100644--- a/docs/i18n/pt-BR/CHANGELOG.md+++ b/docs/i18n/pt-BR/CHANGELOG.md@@ -31,6 +31,7 @@- **fix(embeddings):** add Google Gemini embeddings compatibility via OpenAI-compatible endpoint mapping (#2006)- **fix:** remove Anthropic-Beta header from non-Anthropic providers to fix identity contamination (#1989)- **fix(cli):** resolve .env loading failure for global npm installations+- **fix(export):** exclude telemetry/usage-history tables from JSON config backups by default to prevent unbounded file growth (#2125)### Segurançadiff --git a/docs/i18n/pt/CHANGELOG.md b/docs/i18n/pt/CHANGELOG.mdindex 44bff0d28e..9775fe50d5 100644--- a/docs/i18n/pt/CHANGELOG.md+++ b/docs/i18n/pt/CHANGELOG.md@@ -31,6 +31,7 @@- **fix(embeddings):** add Google Gemini embeddings compatibility via OpenAI-compatible endpoint mapping (#2006)- **fix:** remove Anthropic-Beta header from non-Anthropic providers to fix identity contamination (#1989)- **fix(cli):** resolve .env loading failure for global npm installations+- **fix(export):** exclude telemetry/usage-history tables from JSON config backups by default to prevent unbounded file growth (#2125)### Segurançadiff --git a/docs/i18n/ro/CHANGELOG.md b/docs/i18n/ro/CHANGELOG.mdindex 0d08dd125d..c6453b5657 100644--- a/docs/i18n/ro/CHANGELOG.md+++ b/docs/i18n/ro/CHANGELOG.md@@ -31,6 +31,7 @@- **fix(embeddings):** add Google Gemini embeddings compatibility via OpenAI-compatible endpoint mapping (#2006)- **fix:** remove Anthropic-Beta header from non-Anthropic providers to fix identity contamination (#1989)- **fix(cli):** resolve .env loading failure for global npm installations+- **fix(export):** exclude telemetry/usage-history tables from JSON config backups by default to prevent unbounded file growth (#2125)### Securitatediff --git a/docs/i18n/ru/CHANGELOG.md b/docs/i18n/ru/CHANGELOG.mdindex 3630f987e2..7ab7aa4cdd 100644--- a/docs/i18n/ru/CHANGELOG.md+++ b/docs/i18n/ru/CHANGELOG.md@@ -31,6 +31,7 @@- **fix(embeddings):** add Google Gemini embeddings compatibility via OpenAI-compatible endpoint mapping (#2006)- **fix:** remove Anthropic-Beta header from non-Anthropic providers to fix identity contamination (#1989)- **fix(cli):** resolve .env loading failure for global npm installations+- **fix(export):** exclude telemetry/usage-history tables from JSON config backups by default to prevent unbounded file growth (#2125)### Безопасностьdiff --git a/docs/i18n/sk/CHANGELOG.md b/docs/i18n/sk/CHANGELOG.mdindex d356f25000..d1681484db 100644--- a/docs/i18n/sk/CHANGELOG.md+++ b/docs/i18n/sk/CHANGELOG.md@@ -31,6 +31,7 @@- **fix(embeddings):** add Google Gemini embeddings compatibility via OpenAI-compatible endpoint mapping (#2006)- **fix:** remove Anthropic-Beta header from non-Anthropic providers to fix identity contamination (#1989)- **fix(cli):** resolve .env loading failure for global npm installations+- **fix(export):** exclude telemetry/usage-history tables from JSON config backups by default to prevent unbounded file growth (#2125)### Bezpečnosťdiff --git a/docs/i18n/sv/CHANGELOG.md b/docs/i18n/sv/CHANGELOG.mdindex f70220a5b5..dbcbd4dd6e 100644--- a/docs/i18n/sv/CHANGELOG.md+++ b/docs/i18n/sv/CHANGELOG.md@@ -31,6 +31,7 @@- **fix(embeddings):** add Google Gemini embeddings compatibility via OpenAI-compatible endpoint mapping (#2006)- **fix:** remove Anthropic-Beta header from non-Anthropic providers to fix identity contamination (#1989)- **fix(cli):** resolve .env loading failure for global npm installations+- **fix(export):** exclude telemetry/usage-history tables from JSON config backups by default to prevent unbounded file growth (#2125)### Säkerhetdiff --git a/docs/i18n/sw/CHANGELOG.md b/docs/i18n/sw/CHANGELOG.mdindex 0f303c2dcc..0e872b7eb7 100644--- a/docs/i18n/sw/CHANGELOG.md+++ b/docs/i18n/sw/CHANGELOG.md@@ -31,6 +31,7 @@- **fix(embeddings):** add Google Gemini embeddings compatibility via OpenAI-compatible endpoint mapping (#2006)- **fix:** remove Anthropic-Beta header from non-Anthropic providers to fix identity contamination (#1989)- **fix(cli):** resolve .env loading failure for global npm installations+- **fix(export):** exclude telemetry/usage-history tables from JSON config backups by default to prevent unbounded file growth (#2125)### Seguridaddiff --git a/docs/i18n/ta/CHANGELOG.md b/docs/i18n/ta/CHANGELOG.mdindex c55c6aec2b..e8c3297419 100644--- a/docs/i18n/ta/CHANGELOG.md+++ b/docs/i18n/ta/CHANGELOG.md@@ -31,6 +31,7 @@- **fix(embeddings):** add Google Gemini embeddings compatibility via OpenAI-compatible endpoint mapping (#2006)- **fix:** remove Anthropic-Beta header from non-Anthropic providers to fix identity contamination (#1989)- **fix(cli):** resolve .env loading failure for global npm installations+- **fix(export):** exclude telemetry/usage-history tables from JSON config backups by default to prevent unbounded file growth (#2125)### Seguridaddiff --git a/docs/i18n/te/CHANGELOG.md b/docs/i18n/te/CHANGELOG.mdindex a3826fc9de..baf6ce7b81 100644--- a/docs/i18n/te/CHANGELOG.md+++ b/docs/i18n/te/CHANGELOG.md@@ -31,6 +31,7 @@- **fix(embeddings):** add Google Gemini embeddings compatibility via OpenAI-compatible endpoint mapping (#2006)- **fix:** remove Anthropic-Beta header from non-Anthropic providers to fix identity contamination (#1989)- **fix(cli):** resolve .env loading failure for global npm installations+- **fix(export):** exclude telemetry/usage-history tables from JSON config backups by default to prevent unbounded file growth (#2125)### Seguridaddiff --git a/docs/i18n/th/CHANGELOG.md b/docs/i18n/th/CHANGELOG.mdindex b3ba096691..118f94ae60 100644--- a/docs/i18n/th/CHANGELOG.md+++ b/docs/i18n/th/CHANGELOG.md@@ -31,6 +31,7 @@- **fix(embeddings):** add Google Gemini embeddings compatibility via OpenAI-compatible endpoint mapping (#2006)- **fix:** remove Anthropic-Beta header from non-Anthropic providers to fix identity contamination (#1989)- **fix(cli):** resolve .env loading failure for global npm installations+- **fix(export):** exclude telemetry/usage-history tables from JSON config backups by default to prevent unbounded file growth (#2125)### ความปลอดภัยdiff --git a/docs/i18n/tr/CHANGELOG.md b/docs/i18n/tr/CHANGELOG.mdindex 5118ae8c28..98aa6d82dd 100644--- a/docs/i18n/tr/CHANGELOG.md+++ b/docs/i18n/tr/CHANGELOG.md@@ -31,6 +31,7 @@- **fix(embeddings):** add Google Gemini embeddings compatibility via OpenAI-compatible endpoint mapping (#2006)- **fix:** remove Anthropic-Beta header from non-Anthropic providers to fix identity contamination (#1989)- **fix(cli):** resolve .env loading failure for global npm installations+- **fix(export):** exclude telemetry/usage-history tables from JSON config backups by default to prevent unbounded file growth (#2125)### Güvenlikdiff --git a/docs/i18n/uk-UA/CHANGELOG.md b/docs/i18n/uk-UA/CHANGELOG.mdindex 9a764f9dad..fa87abf42c 100644--- a/docs/i18n/uk-UA/CHANGELOG.md+++ b/docs/i18n/uk-UA/CHANGELOG.md@@ -31,6 +31,7 @@- **fix(embeddings):** add Google Gemini embeddings compatibility via OpenAI-compatible endpoint mapping (#2006)- **fix:** remove Anthropic-Beta header from non-Anthropic providers to fix identity contamination (#1989)- **fix(cli):** resolve .env loading failure for global npm installations+- **fix(export):** exclude telemetry/usage-history tables from JSON config backups by default to prevent unbounded file growth (#2125)### Безпекаdiff --git a/docs/i18n/ur/CHANGELOG.md b/docs/i18n/ur/CHANGELOG.mdindex 4f589bf244..454f59915a 100644--- a/docs/i18n/ur/CHANGELOG.md+++ b/docs/i18n/ur/CHANGELOG.md@@ -31,6 +31,7 @@- **fix(embeddings):** add Google Gemini embeddings compatibility via OpenAI-compatible endpoint mapping (#2006)- **fix:** remove Anthropic-Beta header from non-Anthropic providers to fix identity contamination (#1989)- **fix(cli):** resolve .env loading failure for global npm installations+- **fix(export):** exclude telemetry/usage-history tables from JSON config backups by default to prevent unbounded file growth (#2125)### Seguridaddiff --git a/docs/i18n/vi/CHANGELOG.md b/docs/i18n/vi/CHANGELOG.mdindex e1ae617398..be4c46aacc 100644--- a/docs/i18n/vi/CHANGELOG.md+++ b/docs/i18n/vi/CHANGELOG.md@@ -31,6 +31,7 @@- **fix(embeddings):** add Google Gemini embeddings compatibility via OpenAI-compatible endpoint mapping (#2006)- **fix:** remove Anthropic-Beta header from non-Anthropic providers to fix identity contamination (#1989)- **fix(cli):** resolve .env loading failure for global npm installations+- **fix(export):** exclude telemetry/usage-history tables from JSON config backups by default to prevent unbounded file growth (#2125)### Bảo mậtdiff --git a/docs/i18n/zh-CN/CHANGELOG.md b/docs/i18n/zh-CN/CHANGELOG.mdindex ee75746219..41a5bd1c8f 100644--- a/docs/i18n/zh-CN/CHANGELOG.md+++ b/docs/i18n/zh-CN/CHANGELOG.md@@ -31,6 +31,7 @@- **fix(embeddings):** add Google Gemini embeddings compatibility via OpenAI-compatible endpoint mapping (#2006)- **fix:** remove Anthropic-Beta header from non-Anthropic providers to fix identity contamination (#1989)- **fix(cli):** resolve .env loading failure for global npm installations+- **fix(export):** exclude telemetry/usage-history tables from JSON config backups by default to prevent unbounded file growth (#2125)### 安全diff --git a/src/app/api/settings/export-json/route.ts b/src/app/api/settings/export-json/route.tsindex 6eaa783728..0de7dbbe7a 100644--- a/src/app/api/settings/export-json/route.ts+++ b/src/app/api/settings/export-json/route.ts@@ -21,6 +21,11 @@ export async function GET(request: Request) {}try {+ const url = new URL(request.url);+ // Telemetry/history tables grow indefinitely and inflate backups.+ // Exclude them by default — opt-in with ?includeHistory=true (#2125).+ const includeHistory = url.searchParams.get("includeHistory") === "true";+const rawSettings = await getSettings();// REDACT sensitive security keys to maintain Zero-Trust posture@@ -33,27 +38,30 @@ export async function GET(request: Request) {const combos = await getCombos();const apiKeys = await getApiKeys();- const db = getDbInstance();- const usageHistory = db.prepare("SELECT * FROM usage_history").all();- const domainCostHistory = db.prepare("SELECT * FROM domain_cost_history").all();- const domainBudgets = db.prepare("SELECT * FROM domain_budgets").all();-- const exportData = {+ const exportData: Record<string, unknown> = {settings: safeSettings,providerConnections,providerNodes,combos,apiKeys,- usageHistory,- domainCostHistory,- domainBudgets,// Metadata to identify export version_meta: {exportedAt: new Date().toISOString(),version: "omniroute-v3-legacy-export",+ includesHistory: includeHistory,},};+ // Only include telemetry/history tables when explicitly requested.+ // These tables (usage_history, domain_cost_history, domain_budgets) can contain+ // thousands of rows and make the config backup grow to many MBs.+ if (includeHistory) {+ const db = getDbInstance();+ exportData.usageHistory = db.prepare("SELECT * FROM usage_history").all();+ exportData.domainCostHistory = db.prepare("SELECT * FROM domain_cost_history").all();+ exportData.domainBudgets = db.prepare("SELECT * FROM domain_budgets").all();+ }+return new NextResponse(JSON.stringify(exportData, null, 2), {status: 200,headers: {