How acheong08/chatgpt works
revChatGPT is a Python client and CLI exposing two ChatGPT interfaces: the reverse-engineered website interface (V1) and the official API interface (V3). Users choose a CLI mode or use either developer API, provide credentials, submit prompts, and receive streamed or single responses. V1 additionally documents conversation management and plugin operations; V3 maintains conversation context and offers optional web-search support. The excerpts show the V3 request and search paths, but not most V1 internals, so V1 subsystem links rely on README documentation and are marked where evidence is limited.
Main entry points: V1.py V1 chat client · V3.py V3 chat client · __main__.py Mode launcher · typings.py Types and errors
Components 19
User entry points
- Mode launcher
src/revChatGPT/__main__.py - V1 CLI
src/revChatGPT/V1.py - V3 CLI
src/revChatGPT/V3.py
V1 website client
- V1 chat client
src/revChatGPT/V1.py - V1 authentication
src/revChatGPT/V1.py - Captcha handling
src/revChatGPT/V1.py - Conversation operations
src/revChatGPT/V1.py - Plugin operations
src/revChatGPT/V1.py - V1 proxy service
- ChatGPT website service
V3 official API
- V3 chat client
src/revChatGPT/V3.py - Conversation context
src/revChatGPT/V3.py - Internet search
src/revChatGPT/V3.py - OpenAI chat API
- Search service
Shared support
- Types and errors
src/revChatGPT/typings.py - Prompt utilities
src/revChatGPT/utils.py - Version metadata
src/revChatGPT/version.py
Other components
- Developer or CLI user
Connections 23
- Developer or CLI user → Mode launcher: selects mode
src/revChatGPT/__main__.py - Developer or CLI user → V1 CLI: runs CLI
- Developer or CLI user → V3 CLI: runs CLI
- Mode launcher → V1 CLI: dispatches V1
src/revChatGPT/__main__.py - Mode launcher → V3 CLI: dispatches V3
src/revChatGPT/__main__.py - V1 CLI → V1 chat client: runs chat
src/revChatGPT/V1.py - V3 CLI → V3 chat client: runs chat
src/revChatGPT/V3.py - V1 chat client → V1 proxy service: requests via
- V1 proxy service → ChatGPT website service: forwards requests
- V1 chat client → V1 authentication: authenticates
src/revChatGPT/V1.py - V1 chat client → Captcha handling: handles challenges
src/revChatGPT/V1.py - V1 chat client → Conversation operations: manages conversations
src/revChatGPT/V1.py - V1 chat client → Plugin operations: supports plugins
src/revChatGPT/V1.py - V3 chat client → Conversation context: updates context
src/revChatGPT/V3.py - V3 chat client → OpenAI chat API: posts completions
src/revChatGPT/V3.py - V3 CLI → Internet search: runs search
src/revChatGPT/V3.py - Internet search → Search service: queries
src/revChatGPT/V3.py - Internet search → Conversation context: adds results
src/revChatGPT/V3.py - V1 chat client → Types and errors: imports types
src/revChatGPT/V1.py - V3 chat client → Types and errors: imports types
src/revChatGPT/V3.py - V1 chat client → Prompt utilities: imports utilities
src/revChatGPT/V1.py - V3 chat client → Prompt utilities: imports utilities
src/revChatGPT/V3.py - Mode launcher → Version metadata: reads version
src/revChatGPT/__main__.py