Metadata-Version: 2.4
Name: chatgpt-browser
Version: 1.0.0
Summary: Unofficial ChatGPT website client for Python.
Author-email: Mahdiglm <128987046+Mahdiglm@users.noreply.github.com>
License-Expression: MIT
Project-URL: Homepage, https://github.com/Mahdiglm/chatgpt-browser
Project-URL: Repository, https://github.com/Mahdiglm/chatgpt-browser
Project-URL: Issues, https://github.com/Mahdiglm/chatgpt-browser/issues
Keywords: chatgpt,selenium,browser,automation,openai
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Operating System :: OS Independent
Classifier: Intended Audience :: Developers
Classifier: Topic :: Internet :: WWW/HTTP :: Browsers
Requires-Python: >=3.8
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: selenium>=4.0.0
Requires-Dist: undetected-chromedriver>=3.5.0
Dynamic: license-file

# chatgpt-browser

Unofficial Python client for [chatgpt.com](https://chatgpt.com). It opens Chrome, sends a prompt, and returns the reply. No official API key is required.

## Install

```bash
pip install chatgpt-browser
```

Python 3.8+ and Google Chrome are required.

From source:

```bash
pip install .
```

## Usage

```python
from chatgpt_browser import chatgpt

print(chatgpt("Tell me a short quote."))
print(chatgpt("What is the capital of Australia?", search=True))
```

`search=True` tries to turn on ChatGPT web search. `verbose=False` hides progress logs.

## Notes

- Chrome stays in the background. A display is required; ChatGPT blocks true headless Chrome.
- Desktop Linux works with a graphical session. Servers without `DISPLAY` need a virtual display such as Xvfb.
- This is unofficial and can break when the ChatGPT website changes. Use it in line with OpenAI's terms.

## License

MIT. See `LICENSE`.
