The following steps need to be followed to deploy AIstudioProxyAPI:
- environmental preparation: Ensure that you have a Node.js environment and Git tools installed on your system.
- Get Code: By
git clone https://github.com/CJackHwang/AIstudioProxyAPICloning Project Warehouse. - Installation of dependencies: After entering the project directory, choose to execute the following according to the package manager
npm installor equivalent commands to install dependencies (express, cors, playwright, etc.). - Starting services: Run
node auto_connect_aistudio.cjsThe script will automatically.- Checking environmental dependency integrity
- Verify Chrome debug port (default 8848) availability
- Set Chrome window parameters (default 460px width)
- authentication: Manually sign in to your Google AI Studio account in a Chrome window that opens automatically.
Note: After the service is started, the default API interface is in the http://localhost:2048 Provided. If you encounter a port conflict you can use the lsof -i :2048 Find and release the port.
This answer comes from the articleAIstudioProxyAPI: Unlimited use of the Gemini 2.5 Pro Model APIThe





























