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: resolve merge conflicts with main (Gemini header auth + custom UA)
diegosouzapwc62145af3129
diff --cc README.mdindex cf16772e36,cf16772e36..b392f0cf73--- a/README.md+++ b/README.md@@@ -11,9 -11,9 +11,28 @@@ _Your universal API proxy — one endpo<div align="center">[](https://www.npmjs.com/package/omniroute)--[](https://www.npmjs.com/package/omniroute)[](https://hub.docker.com/r/diegosouzapw/omniroute)--[](https://hub.docker.com/r/diegosouzapw/omniroute)++++++++++++++++++[](https://github.com/diegosouzapw/OmniRoute/stargazers)++[](https://github.com/diegosouzapw/OmniRoute/issues)++[](https://github.com/diegosouzapw/OmniRoute/blob/main/LICENSE)++[](https://github.com/diegosouzapw/OmniRoute/commits/main)++[](https://github.com/diegosouzapw)++[](https://github.com/diegosouzapw/OmniRoute)++[](https://github.com/diegosouzapw/OmniRoute/pulls?q=is%3Apr+is%3Aclosed)++[](https://github.com/diegosouzapw/OmniRoute/tags)++[](https://github.com/diegosouzapw)++[](https://github.com/diegosouzapw?tab=followers)++[](https://github.com/diegosouzapw/OmniRoute/network/members)++[](https://github.com/diegosouzapw/OmniRoute/watchers)++[](https://github.com/diegosouzapw/OmniRoute/blob/main/LICENSE)[](https://omniroute.online)[](https://chat.whatsapp.com/JI7cDQ1GyaiDHhVBpLxf8b?mode=gi_t)diff --cc src/lib/providers/validation.tsindex f4a875533e,cd5fe17168..752ed99d57--- a/src/lib/providers/validation.ts+++ b/src/lib/providers/validation.ts@@@ -232,16 -200,22 +232,28 @@@ async function validateAnthropicLikeProreturn { valid: true, error: null };}- async function validateGeminiLikeProvider({ apiKey, baseUrl, providerSpecificData = {} }: any) {-async function validateGeminiLikeProvider({ apiKey, baseUrl, authType }: any) {++async function validateGeminiLikeProvider({++ apiKey,++ baseUrl,++ authType,++ providerSpecificData = {},++}: any) {if (!baseUrl) {return { valid: false, error: "Missing base URL" };}- const separator = baseUrl.includes("?") ? "&" : "?";- const response = await fetch(`${baseUrl}${separator}key=${encodeURIComponent(apiKey)}`, {- method: "GET",- headers: applyCustomUserAgent({ "Content-Type": "application/json" }, providerSpecificData),- });+ // Use the correct auth header based on provider config:+ // - gemini (API key): x-goog-api-key+ // - gemini-cli (OAuth): Bearer token+ const headers: Record<string, string> = { "Content-Type": "application/json" };+ if (authType === "oauth") {+ headers["Authorization"] = `Bearer ${apiKey}`;+ } else {+ headers["x-goog-api-key"] = apiKey;+ }++ applyCustomUserAgent(headers, providerSpecificData);++ const response = await fetch(baseUrl, { method: "GET", headers });if (response.ok) {return { valid: true, error: null };@@@ -904,7 -894,7 +957,8 @@@ export async function validateProviderAreturn await validateGeminiLikeProvider({apiKey,baseUrl,+ providerSpecificData,+ authType: entry.authType,});}