chatgpt-bot
by suenot
README.md
# ChatGPT Auto MCP
The worker and the `chatgpt-bot` MCP server of [ChatGPT Auto](https://github.com/suenot/chatgpt-auto): Claude Code or Codex runs many ChatGPT chats on your own subscription, with no API key, through one Camoufox browser window.
Usually you clone the workspace, which has this repository as the `mcp/` submodule and the install steps in its README. This repository also works on its own: runtime files then live next to the code, or in `CHATGPT_AUTO_ROOT` if set.
```sh
git clone https://github.com/suenot/chatgpt-auto-mcp.git && cd chatgpt-auto-mcp
python3.12 -m venv .venv
.venv/bin/python -m pip install -r requirements.txt
.venv/bin/python -m camoufox fetch
.venv/bin/python login.py # sign in once
claude mcp add chatgpt-bot -- "$PWD/.venv/bin/python" "$PWD/mcp_server.py" # or: codex mcp add ...
./run.sh # the worker; stop: touch STOP
```
| File | What it does |
|---|---|
| `bot.py` | The worker: one Camoufox window and tab, types prompts, waits for complete answers, saves them |
| `mcp_server.py` | The MCP server: talks to the worker only through files, never touches the browser |
| `task.py` | The same commands from a shell: `new`, `send`, `status`, `result` |
| `chatgpt.py`, `checks.py`, `humantype.py` | Page selectors, the answer checks, human-like typing |
| `ORCHESTRATOR.md` | Instructions the server gives your agent. Your own rules go to `ORCHESTRATOR.local.md` (untracked, appended) |
| `login.py` | Opens the browser profile so you can sign in to ChatGPT |
| `run.sh`, `launchd/` | Restart after a crash; a macOS LaunchAgent template (replace `/path/to/chatgpt-auto`) |
| `discover*.py`, `explore*.py`, `inspect*.py`, `probe.py` | Scripts used to map the ChatGPT page; not needed to run |
Not affiliated with OpenAI. ChatGPT's terms and usage limits apply to your account as usual.
Changes: [CHANGELOG.md](CHANGELOG.md). License: [MIT](LICENSE).
This server cannot be deployed
Maintenance
ActivityMaintained
ResponsivenessNo recent community issues