Status: [UNTESTED] Endpoints found: http://localhost:8080/v1/chat/completions Source: https://github.com/lalalalahu/gemini-rd-web-proxy # Gemini Enterprise Web Proxy (`v1.0.0`) An OpenAI-compatible local API gateway for **Gemini Enterprise / Rakyat Digital** (`https://gemini.rakyatdigital.gov.my`), built with **FastAPI** and **Playwright**. It enables AI coding harnesses and clients—such as **Hermes Agent**, **OpenCode**, and **Cursor**—to use your authenticated Gemini web session with real-time SSE streaming, full tool-calling support, multi-session delta synchronization, and multimodal uploads. **Educational Purpose**: Created to demonstrate how to bridge web-based enterprise AI portals to standard OpenAI-compatible developer tools using resilient browser automation. --- ## ✨ Key Features (`v1.0.0`) - **OpenAI-Compatible API**: Drop-in support for `POST /v1/chat/completions`, `GET /v1/models`, `POST /v1/sessions/reset`, and `GET /health`. - **Real-Time SSE Streaming & Tool-Call Holdback**: Streams incremental Markdown deltas in real time while holding back `` blocks and incomplete Markdown table rows so raw XML never leaks into assistant prose. - **Resilient Tool Calling**: Translates OpenAI JSON Schema tool definitions into a structured `` XML protocol and parses single or parallel tool invocations back into standard OpenAI `tool_calls` payloads. - **Deep Shadow-DOM Markdown Extractor**: Pierces nested `ucs-*` shadow roots to reconstruct clean GitHub-Flavored Markdown (fenced code blocks with language detection, inline code, tables, nested lists, headings, blockquotes, and links) while stripping portal UI noise (`[[section:...]]`, `suggested_questions`, ``, progress spinners). - **Multi-Tab Session Pool & Delta Sync**: Tracks conversation history hashes per session. Append-only follow-up turns send **only the delta messages** to the existing browser tab (`DELTA` mode), while history edits/branches automatically reset the tab (`RESET+FULL` mode). Idle tabs are automatically evicted via TTL and LRU limits. - **Multimodal & File Attachments**: Supp