Discover and explore top open-source AI tools and projects—updated daily.
cliouoLocal proxy for Gemini API via headless browser
Top 99.3% on SourcePulse
<2-3 sentences summarising what the project addresses and solves, the target audience, and the benefit.> This project provides a Dockerized proxy for Google's AI Studio build, integrating a headless browser and WebSocket proxy. It aims to offer a stable connection to Gemini-like models by leveraging robust cookie management, enabling users to interact with AI services via a local endpoint that mimics the official Gemini API. It's suitable for developers and researchers needing a reliable local interface for AI model interactions, especially those requiring tool usage like Google Search or code execution.
How It Works
The core mechanism involves a headless browser managed via Docker Compose. It utilizes stable cookies exported from fingerprint browsers to maintain authenticated sessions with AI services. A WebSocket proxy routes requests to the headless browser, which then forwards them to the target AI model endpoint (e.g., Gemini). This setup allows local applications to interact with the AI model as if they were directly calling the generativelanguage.googleapis.com API, but through the local 127.0.0.1:5345 endpoint.
Quick Start & Requirements
docker compose up -d in the project root.AUTH_API_KEY) is required for Gemini access.camoufox-py/cookies/ directory as a JSON file.config.yaml.example to config.yaml and update the cookie_file path. Optionally configure the target url and proxy settings.AUTH_API_KEY in docker-compose.yml.http://127.0.0.1:5345.https://generativelanguage.googleapis.com.Highlighted Details
http://127.0.0.1:5345) compatible with the Gemini API.Maintenance & Community
No specific information regarding maintainers, community channels (like Discord/Slack), sponsorships, or roadmap was found in the provided text.
Licensing & Compatibility
The license type is not specified in the provided README content. Compatibility for commercial use or linking with closed-source projects is undetermined without a license.
Limitations & Caveats
The proxy is specifically for Gemini-like models and requires a valid AUTH_API_KEY. Performance issues (slow inference) are attributed to the upstream AI Studio service, not the proxy itself. It relies heavily on the correct configuration and stability of the exported cookies. No explicit license information is provided, which may pose risks for adoption. Setup requires familiarity with Docker and API key management.
6 months ago
Inactive