// the find
Amm1rr/WebAI-to-API
Webchat to API
WebAI-to-API wraps browser-based AI services (primarily Google Gemini) behind an OpenAI-compatible REST API, using Playwright to automate the web UI when no official API is available. It's for developers who want to use Gemini through OpenAI-compatible clients without paying for API access. The Atlas Cloud integration adds a native API path as an alternative.
The dual-backend design (Playwright automation vs. WebAPI) is practical — when Google changes their web UI, you can fall back to the API path without rewiring your client. The test suite is unusually thorough for a scraping project, with 40+ test files covering concurrency, streaming, auth recovery, and serialization edge cases. The openspec/ directory shows the team is running a real design process, not just hacking features in. Docker support with a browser-login flow that persists auth to a JSON file is a reasonable solution to the headless-auth problem.
This is fundamentally a Terms of Service violation wrapper — Google doesn't permit automated access to Gemini's web interface, so any production use carries the risk of account termination or IP bans with no warning. The Playwright path is brittle by nature; Gemini UI changes have already broken similar projects multiple times, and the maintenance burden is entirely on this repo. The Atlas Cloud integration is essentially an ad — it's a third-party commercial service with no open-source equivalent, so the 'free' framing in the topics is misleading. Session state is stored in a local JSON file, which means multi-instance or horizontal scaling is not supported without hacking the auth layer.