finds.dev← search

// the find

CJackHwang/AIstudioProxyAPI

★ 2,415 · Python · AGPL-3.0 · updated Apr 2026

FastAPI + Playwright + Camoufox 中间层代理服务器,兼容OpenAI API且支持参数转发。项目通过浏览器自动化将API请求转发到 Google AI Studio Chat,并同样按照OpenAI标准格式返回的工具。内置调试WebUI面板。

A FastAPI + Playwright middleware that wraps Google AI Studio's web UI and exposes it as an OpenAI-compatible API. It uses Camoufox (a fingerprint-hardened Firefox fork) to automate the browser, so you get access to Gemini models without needing API keys. For people locked out of the official Gemini API or wanting to avoid per-token billing.

The three-mode function calling implementation (auto/native/emulated with fallback) is genuinely thoughtful — most browser-automation proxies just skip tool use entirely. Auth profile rotation with cookie refresh means it survives long-running deployments without manual re-login. The codebase is well-decomposed: browser_utils, api_utils, stream are clearly separated rather than one giant script. Test coverage is surprisingly broad for a project that's fundamentally a browser automation hack.

The entire thing breaks whenever Google changes AI Studio's DOM — CSS selectors are in config/selectors.py and any UI update turns this into a debugging session. The stream proxy runs as a separate MITM on a second port with its own TLS cert injection, which is fragile and adds a second process to keep alive. No rate limiting or quota management on the FastAPI side, so if you point multiple clients at it you'll hit browser concurrency issues fast. Being AGPL means you can't embed this in a proprietary product, which rules out the most common use case (internal tooling).

View on GitHub → Homepage ↗

// want more like this?

We dig through GitHub every week and send a few repos picked for what you actually care about — each with an honest take like this one.

Get finds in your inbox → Search again →