# CJackHwang/AIstudioProxyAPI

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

Repository: https://github.com/CJackHwang/AIstudioProxyAPI
Canonical: https://ross.abutalabs.com/products/aistudioproxyapi
Homepage: https://linux.do/u/cjackhwang
Language: Python
License: AGPL-3.0
License Family: copyleft
Topics: camoufox, google-ai-studio, middleware, openai-api, playwright, proxy, python, reverse-proxy, api, fastapi, openai
Last push: 2026-04-22T12:20:26+00:00

## Health v2 (maintenance only)
Score: 70/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 78, release rhythm 80, longevity 35
- inputs: {"age_days": 494, "days_push": 133, "days_rel": 138, "gap_med": 3, "n_releases_24m": 50}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2489, forks 420 (observed 2026-08-28T04:06:55.794219+00:00)

## What it is
A self-hosted proxy server that exposes Google AI Studio's web chat interface as an OpenAI-compatible API using FastAPI and Camoufox/Playwright browser automation. It supports streaming, function calling (auto/native/emulated modes), auth profile rotation, and includes a built-in debug Web UI.

## Use cases
- use gemini models from ai studio through an openai-compatible api
- connect google ai studio to tools that expect the openai api format
- self-host a proxy for ai studio chat completions with streaming
- use function calling with ai studio models
- rotate multiple ai studio auth profiles to avoid rate limits
- run ai studio as a local llm api server

## When to choose
- you want OpenAI API compatibility for Google AI Studio's free web access to Gemini models
- you need function calling, streaming, or auth profile rotation on top of AI Studio
- you want a self-hosted bridge with a debug Web UI and CLI launcher

## When to avoid
- you have an official Gemini API key and want a supported, ToS-compliant integration
- you need production-grade SLAs or guaranteed availability, since browser automation is fragile against UI changes
- you need high-concurrency serving, as each request is driven through an automated browser session

## Facets
- artifact type: service
- maturity: active
- function: proxy, http-server, api-framework, web-scraping, chatbot
- domain: large-language-models, apis, self-hosted, artificial-intelligence
- platform: python, self-hosted, windows
- tags: openai-compatible-api, google-ai-studio, browser-automation, playwright, camoufox, fastapi, reverse-proxy, function-calling, streaming, automation, docker, linux, macos

## Member repositories
- CJackHwang/AIstudioProxyAPI (main) score 70

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:06:55.794219+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T02:27:49.977175+00:00, confidence not recorded.
  - readme: https://github.com/CJackHwang/AIstudioProxyAPI (fetched 2026-08-28T04:06:55.794219+00:00, sha 6323f3846228)
- Data as of 2026-08-30T08:39:29.467469+00:00.
