
pphothidaen/gemini-web-bridge
Developer toolsЭта страница переведена автоматически. Технические детали смотрите в оригинале. Открыть оригинал
Gemini Web Bridge (Cloudflare Durable Objects Edition) — edge AI gateway with MCP server and OpenAI-compatible API.
Обзор
is an Enterprise-grade Edge AI Gateway and Chrome Extension that bridges live, authenticated Google Gemini web sessions into an (with real SSE streaming & tool emulation) and a , powered by . It enables autonomous AI clients and developer tools — , , , , and Python/TypeScript SDKs — to harness Gemini's Deep Thinking models and execute Agentic Tool Loops directly over authenticated web sessions without artificial mocks or canned responses. - — Stateful in-memory Edge coordinator synchronizing browser WebSockets and external REST/MCP requests with FIFO concurrency control (concurrency = 1, queue depth = 10). - — Real-time model catalog synchronization (/v1/models) detecting live Gemini UI model tiers with verification lifecycle tracking (discovered → learning → verified). - — Immediate token chunk dispatching with an idle-based 60-second timeout, preventing long-thought dropouts.
README
Показан фрагмент оригинального README. Открыть оригинал.
⚡ Gemini Web Bridge
🌐 English
Gemini Web Bridge (v4.4.3) is an Enterprise-grade Edge AI Gateway and Chrome Extension that bridges live, authenticated Google Gemini web sessions into an OpenAI-Compatible REST API (with real SSE streaming & tool emulation) and a Remote MCP Server, powered by Cloudflare Durable Objects.
It enables autonomous AI clients and developer tools — Hermes Agent, Cursor, Cline, Claude Code, and Python/TypeScript SDKs — to harness Gemini’s Deep Thinking models and execute Agentic Tool Loops directly over authenticated web sessions without artificial mocks or canned responses.
✨ Key Features
- Cloudflare Durable Objects Hub (
GeminiBridgeDO) — Stateful in-memory Edge coordinator synchronizing browser WebSockets and external REST/MCP requests with FIFO concurrency control (concurrency = 1, queue depth = 10). - Dynamic Browser Model Sync — Real-time model catalog synchronization (
/v1/models) detecting live Gemini UI model tiers with verification lifecycle tracking (discovered→learning→verified). - Real SSE Streaming & Idle Timeout — Immediate token chunk dispatching with an idle-based 60-second timeout, preventing long-thought dropouts.
- Disconnect Grace Period (~15s) — Connection buffering in Durable Objects ensuring network hiccups or browser tab backgrounding do not abort in-flight generations.
- Conversation Scopes (Gemini App + NotebookLM) — Seamless context routing between standard chat (
https://gemini.google.com/app/) and document-grounded NotebookLM notebooks (https://gemini.google.com/notebook/) via theset_bridge_scopeMCP tool. - Zero-Token-Leak Privacy (G1 Guardrail) — Google CSRF tokens (
SNlM0e) remain strictly in volatile browser MAIN-world RAM; credentials are never transmitted over the wire to Cloudflare Workers or external clients. - Strict Fail-Closed Architecture — Responds with HTTP 503 / 422 immediately if the browser extension disconnects or a model is unverified. Zero mocks in production.
Установка
npx wrangler deploy