ChatGPT Bookmarklet

Fork me on GitHub

This bookmarklet allows you to send the text of any page to ChatGPT for summarization. You can also ask any followup question on the content. It has growing functionality - see the help for details. See also my blog Reading with ChatGPT about this.

You'll need your own ChatGPT API key to run that, which you can get at https://platform.openai.com/. After logging in there with your ChatGPT credentials, you can create an API key in the profile settings (top right corner) at "View API keys". Enter that in the field below. Don't worry - that is just put into the bookmarklet, not transmitted anywhere, except to OpenAI's API when using the bookmarklet.

Enter configuration as JSON for multiple AI backends. Leave empty to use default OpenAI configuration with the API key above.
You can override the list of models for each backend by specifying a models array in the backend configuration. If models is not set the backends list models API call will be used. Example:

{"backends": [
    {
      "name": "OpenAI", "baseUrl": "https://api.openai.com/v1",
      "defaultModel": "gpt-4.1",
      "headers": [{ "name": "Authorization", "value": "Bearer YOUR_API_KEY" }]
    },
    { "name": "Local", "baseUrl": "http://localhost:8000", "models": ["mistral-7b", "llama-2-13b"],
      "autoselect": ".*intranet.*" }
]}
                

Backend Selection: The first backend is selected by default. Use autoselect regex patterns to automatically select backends based on page URL.

Bookmarklet to drag: Enter a ChatGPT API Key first.
(If you want a quick preview of the dialog, you can click here. However, that doesn't really work until you enter a working API key.)


About

This is part of my ChatGPT tools collection. For more tools and information, visit the main page.

If you have problems, please contact me, Hans-Peter Störr. See also my other projects on Github, links to AI related projects and my blog.