Skip to main content

chatgpt-browser

Unofficial Python client for chatgpt.com. It opens Chrome, sends a prompt, and returns the reply. No official API key is required.

Install

pip install chatgpt-browser

Python 3.8+ and Google Chrome are required.

From source:

pip install .

Usage

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.

Metadata

Release files for chatgpt-browser 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for chatgpt-browser 1.0.0
File Size Uploaded
chatgpt_browser-1.0.0.tar.gz 7.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for chatgpt-browser 1.0.0
File Interpreter ABI Platform
chatgpt_browser-1.0.0-py3-none-any.whl Python 3 none any Details

Total release size: 15.9 kB

Release files / chatgpt_browser-1.0.0.tar.gz

Download URL chatgpt_browser-1.0.0.tar.gz
Size 7.8 kB
Tags Source
SHA-256 checksum
How to use checksums
c441546b68d3a19f05f6cb63130a3560d9924b0c83c343e0c2ede6601653365b
BLAKE2b-256 checksum
How to use checksums
ff43ff63b526a6129347ca4ce132ade379b3424edb0b33c10dc87068ebd0b6c8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 30, 2026.

Transparency log

Release files / chatgpt_browser-1.0.0-py3-none-any.whl

Download URL chatgpt_browser-1.0.0-py3-none-any.whl
Size 8.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c21951f779d74b66f61e6efa49ea8e12f7be6372156be4142df2f0fd42025d1f
BLAKE2b-256 checksum
How to use checksums
fa5e5c52564250551dbf6c6a353886696ff9391dea4d47685142ccfd77e10026
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 30, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page