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.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

chatgpt_browser-1.0.0.tar.gz (7.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

chatgpt_browser-1.0.0-py3-none-any.whl (8.1 kB view details)

Uploaded Python 3

File details

Details for the file chatgpt_browser-1.0.0.tar.gz.

File metadata

  • Download URL: chatgpt_browser-1.0.0.tar.gz
  • Upload date:
  • Size: 7.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for chatgpt_browser-1.0.0.tar.gz
Algorithm Hash digest
SHA256 c441546b68d3a19f05f6cb63130a3560d9924b0c83c343e0c2ede6601653365b
MD5 46ac19f4a53a75784d2c193452fb070b
BLAKE2b-256 ff43ff63b526a6129347ca4ce132ade379b3424edb0b33c10dc87068ebd0b6c8

See more details on using hashes here.

Provenance

The following attestation bundles were made for chatgpt_browser-1.0.0.tar.gz:

Publisher: python-publish.yml on Mahdiglm/chatgpt-browser

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file chatgpt_browser-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for chatgpt_browser-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c21951f779d74b66f61e6efa49ea8e12f7be6372156be4142df2f0fd42025d1f
MD5 439b92c9dcf39fc2482043e1eac3f9e8
BLAKE2b-256 fa5e5c52564250551dbf6c6a353886696ff9391dea4d47685142ccfd77e10026

See more details on using hashes here.

Provenance

The following attestation bundles were made for chatgpt_browser-1.0.0-py3-none-any.whl:

Publisher: python-publish.yml on Mahdiglm/chatgpt-browser

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 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