Status: [UNTESTED] Endpoints found: http://localhost:8081/v1/chat/completions http://localhost:8082/v1/chat/completions Source: https://github.com/CliucinicovDev/gemini-web2api-proxy ![Control Panel Preview](preview.jpg) # Gemini & Claude Web2API — Free AI Proxy [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](LICENSE) [![Platform: Windows | Linux | macOS](https://img.shields.io/badge/Platform-Windows%20%7C%20Linux%20%7C%20macOS-blue)]() [![Python 3.10+](https://img.shields.io/badge/Python-3.10%2B-green)]() **OpenAI-compatible proxy for Google Gemini and Anthropic Claude web APIs.** No API keys needed — works with cookies exported from your browser. Free access to Gemini and Claude through a standard `/v1/chat/completions` endpoint. Perfect for local AI coding agents like [OpenCode](https://opencode.ai), Continue, or any OpenAI-compatible tool. --- ## Features - **OpenAI-compatible** — `/v1/chat/completions`, streaming (SSE), tools/function calling - **Gemini** — Flash, Flash Thinking, Flash Lite, Pro, Auto models - **Claude** — Haiku 4.5, Sonnet 3.5, Opus 3, Haiku 3.5 - **Cross-platform** — Windows (native), Linux, macOS ⚠️ untested - **No API key** — cookie-based authentication - **Unified control panel** — web UI at `http://localhost:8083` - **Tool calling** — Gemini natively, Claude via text-to-tool conversion - **Rate-limit handling** — automatic retry with exponential backoff --- ## Quick Start ### Windows ```batch install.bat :: Then: :: 1. Export cookies (see below) :: 2. Run: start.bat ``` ### Linux ```bash bash install.sh # Then: # 1. Export cookies (see below) # 2. Run: bash start.sh ``` ### Manual ```bash pip install -r requirements.txt pip install -r gemini/requirements.txt pip install -r claude/requirements.txt cp gemini/config.json.example config.json ``` ### Export Cookies You need cookies for both services. Use the [cookies.txt](https://addons.mozilla.org/en-US/firefox/addon/cookies-txt/) Firefox extension: 1. Open **Firefox**, log into [Gemini](https://gemini.google.com/app) and [Claude](https://claude.ai) 2. Install the extension, click its icon → **Export** 3