Reverse-engineered API for ChatGPT, plus official OpenAI API support
Top 1.4% on sourcepulse
This repository provides reverse-engineered Python clients for OpenAI's ChatGPT, enabling programmatic access to both the unofficial ChatGPT web interface (V1) and the official ChatGPT API (V3). It's designed for developers and power users looking to integrate ChatGPT capabilities into their applications or workflows.
How It Works
Version 1 bypasses Cloudflare using a dedicated proxy, simplifying access to the ChatGPT web interface. It supports authentication via email/password or access tokens and allows configuration of conversation history, models (including GPT-4 and plugins), and proxy settings. Version 3 utilizes the official OpenAI API, requiring an API key and offering direct access to models like gpt-3.5-turbo
and gpt-4
.
Quick Start & Requirements
python -m pip install --upgrade revChatGPT
CHATGPT_BASE_URL
environment variable for custom proxies.$HOME/.config/revChatGPT/config.json
.python3 -m revChatGPT.V1
or python3 -m revChatGPT.V3
) or as a Python library.Highlighted Details
Maintenance & Community
The project is maintained by acheong08, with contributions from a community of developers. Further community engagement can be found via issues and pull requests on GitHub.
Licensing & Compatibility
The repository does not explicitly state a license in the README. Users should verify licensing for commercial use or integration into closed-source projects.
Limitations & Caveats
Version 1 relies on reverse-engineered methods and may break if OpenAI changes its web interface or security measures. Plugin functionality in V1 may require prior installation via the web interface. The project is not an official OpenAI product.
2 years ago
Inactive