/HotkeyGPT

A ChatGPT client automatically copies text and switches between conversations and prompts with hotkeys. No Api Key required.

Primary LanguageJavaScript

HotkeyGPT

A ChatGPT client automatically copies text and switches between conversations and prompts with hotkeys.
No Api Key required.

demo

Install

macOS

Can’t open

Right-click on the app, hold down option, and click Open.
image

Can't copy selection text

open Settings -> Privacy & Security -> Accessibility enable HotkeyGPT
image

Other details

Core code

textarea.value = (data.prompt ? data.prompt : "") + data.text;
button?.dispatchEvent(new MouseEvent("click", { bubbles: true }));

How to copy text?

on macOS trigger CMD-C by AppleScript
on Windows trigger Ctrl-C by NirCmd

Electron multi tabs

Thanks to @thanhlmm 's post

Default Config

EN
{
  "pages": [
    {
      "title": "👩‍🏫Explain",
      "url": "https://chat.openai.com/",
      "hotkey": "alt+z",
      "prompt": "Please explain it to me in simple terms.:\n",
      "copySelection": true,
      "appendClipboard": true,
      "autoSend": true
    },
    {
      "title": "🔠Translate",
      "url": "https://chat.openai.com/",
      "hotkey": "alt+x",
      "prompt": "As a professional translator, please translate the text accurately between English and Chinese.:\n",
      "copySelection": true,
      "appendClipboard": true,
      "autoSend": true
    },
    {
      "title": "🛠️Dev",
      "url": "https://chat.openai.com/",
      "hotkey": "alt+c",
      "prompt": "You are an excellent software engineer, please provide the answer step by step.",
      "copySelection": false,
      "appendClipboard": false,
      "autoSend": false
    }
  ]
}
CN
{
    "pages": [
      {
        "title": "👩‍🏫解释",
        "url": "https://chat.openai.com/",
        "hotkey": "alt+z",
        "prompt": "请用简单的语言解释给我:\n",
        "copySelection": true,
        "appendClipboard": true,
        "autoSend": true
      },
      {
        "title": "🔠翻译",
        "url": "https://chat.openai.com/",
        "hotkey": "alt+x",
        "prompt": "作为一名专业的翻译,请准确地将文本在这英语和汉语之间翻译:\n",
        "copySelection": true,
        "appendClipboard": true,
        "autoSend": true
      },
      {
        "title": "🛠️软件开发",
        "url": "https://chat.openai.com/",
        "hotkey": "alt+c",
        "prompt": "你是一名优秀的软件工程师, 请按步骤给出答案.",
        "copySelection": false,
        "appendClipboard": false,
        "autoSend": false
      }
    ]
  }