[UNTESTED] [LoXewyX/Free-API-ChatGPT] 1 endpoint(s)
ChatGPT
API Proxy/ChatGPT
2,152 characters
Status: [UNTESTED]
Endpoints found:
http://127.0.0.1:8000/chat
http://127.0.0.1:8000/chat/stream
Source: https://github.com/LoXewyX/Free-API-ChatGPT
# Free API ChatGPT
Local API for ChatGPT through browser automation.
Free API ChatGPT uses a persistent Firefox browser session controlled by
Playwright to interact with ChatGPT. It exposes a local HTTP API through
FastAPI, so clients can use ChatGPT without an OpenAI API key.
The application can also maintain structured local data and a complete
chronological application history in SQLite. Persistent data and history are
handled by the application through validated database actions; ChatGPT does
not access SQLite directly.
## Features
* Browser-based ChatGPT access through Playwright + Firefox
* No OpenAI API key required
* Persistent Firefox profile
* FastAPI HTTP API
* Normal request/response chat endpoint
* Server-Sent Events streaming endpoint
* Optional SQLite persistence
* Automatic durable-data management through database actions
* Chronological application history
* Local timezone-aware history queries
* Built-in HTML database browser
* JSON database inspection endpoints
* Configurable host, port, profile directory, context, and browser mode
## Requirements
You **do not need to install Python manually**. `uv` manages the Python
environment for the project.
Requirements:
* Python 3.12+
* `uv` 0.12+
* Firefox installed by Playwright
* A ChatGPT account/session available to the persistent Firefox profile
Check your `uv` version:
```bash
uv --version
```
## Installation
Clone the repository and install the project dependencies:
```bash
git clone https://github.com/LoXewyX/Free-API-ChatGPT.git
cd Free-API-ChatGPT
uv venv
source .venv/bin/activate
uv sync
uv run playwright install firefox
```
On Windows PowerShell, activate the virtual environment with:
```powershell
.venv\Scripts\Activate.ps1
```
The application itself can also be run directly with `uv run`, so activating
the virtual environment is optional.
## First Run
Start the application in headed mode so Firefox is visible:
```bash
uv run free-api-chatgpt --headed
```
The default persi