Analysis updated 2026-05-18
Point an existing OpenAI API client at ChatGPT's website without buying API credits.
Run a self-hosted gateway that lets others log in and use ChatGPT through your own domain.
Rotate multiple ChatGPT account tokens automatically for more reliable access.
| lanqian528/chat2api | derv82/wifite | kennethreitz/responder | |
|---|---|---|---|
| Stars | 3,619 | 3,619 | 3,619 |
| Language | Python | Python | Python |
| Setup difficulty | moderate | hard | easy |
| Complexity | 3/5 | 4/5 | 2/5 |
| Audience | developer | ops devops | developer |
Figures from each repo's GitHub metadata at analysis time.
Needs a ChatGPT AccessToken for GPT-4 and newer models, GPT-3.5 works without login.
Chat2API is a Python service that sits between your code and ChatGPT's website. It translates calls made in the standard format used by the official OpenAI API into requests against the ChatGPT web interface, then returns the responses in that same standard format. The practical effect is that any program or tool already built to talk to the OpenAI API can be pointed at this service instead and use ChatGPT's website under the hood. For GPT-3.5, no login is required at all. For GPT-4, GPT-4o, and the reasoning models (O1, O3-mini, and their variants), you supply an access token from your own ChatGPT account. The README notes you can get this token by logging into chatgpt.com and visiting a specific session URL. You can add multiple tokens and the service will rotate through them automatically, retrying with the next token if one fails. Deployment options include running the Python script directly, using a Docker container, or using Docker Compose. A one-click deploy option for the Zeabur hosting platform is also provided. The service listens on port 5005 by default and exposes the standard /v1/chat/completions endpoint. A gateway mode can be enabled that proxies the actual ChatGPT web interface, allowing users to log in and use it through your domain. The README includes a table of environment variables for configuring things like authentication keys, proxy addresses, whether to save conversation history, and how aggressively to retry failed requests. The README is written primarily in Chinese, with configuration tables and feature lists making up most of the content. The project is licensed under MIT.
Chat2API lets you call ChatGPT's website using the same request format as the official OpenAI API, without needing an OpenAI API key.
Mainly Python. The stack also includes Python, Docker, Docker Compose.
MIT license: use freely for any purpose, including commercial use, as long as you keep the copyright notice.
Setup difficulty is rated moderate, with roughly 30min to a first successful run.
Mainly developer.
This repo across BitVibe Labs
Verify against the repo before relying on details.