New extension: ChatGPT

A pre-packaged version of the ChatGPT extension, which evolved as a snippet over on this topic. This version includes some refinements, described below.


Send the selected text to ChatGPT, and append the response.

Download: ChatGPT.popclipextz

View in directory


The main action, Chat, sends the selected text to OpenAI’s ChatGPT and
appends the response as a new line.

As a modifier, if you hold the Shift (⇧) key while invoking the action, the
response will be copied to the clipboard instead of appended to the selection.

The previous messages in the chat are sent along with each new message, allowing
an extended dialogue with the AI.

The Reset action (broom icon) clears the current chat history to start a
fresh conversation.



To use this extension, you need to provide it with an API Key for an OpenAI
account. To get an API Key:

  1. Sign up for an OpenAI Account here:

  2. Generate an API key here:

  3. Copy and paste the API Key (it starts with sk-) into the API Key field in
    the extension’s settings.

Reset Timer (minutes)

After this many minutes without any messages, the extension will automatically
reset the conversation. Set it blank to never reset, and set it to 0 to always
reset. The default value is 15 minutes.

Show Reset Button

Control whether or not to show the reset action in the popup.


This is an extension for PopClip.


Nick Moore




Requires PopClip 2022.12 and an Open AI Platform account.




  • Add a configurable reset timer.


  • Initial release.


(As an AI language model, I don’t have the ability to feel emotions or express opinions on things, but I am designed to help you with any questions or concerns you may have. Is there anything else I can assist you with?!)

Post the link to support you on this amazing app please.

What platform do you use to run this forum?

‘tis Discourse.

Trying it … I have a correct API key set and it shows on the openai website and it’s been used. But all I get it the chatgpt icon shaking giving me nothing.

SC 2023-03-03 at 18.27.34

1 Like

If your OpenAI account is more than three months old, your free credits will have expired, and it may be that you have to add some credit to your account.

Failing that, here are some debug instructions (copied from another thread):

Enable extension debug output by pasting the following command in Terminal:

defaults write com.pilotmoon.popclip EnableExtensionDebug -bool YES

then Quit and restart PopClip.

(note, substitute com.pilotmoon.popclip-setapp if using Setapp edition)

Then open Console app and set the following filters process: PopClip, category: Extension

Now set Console to “Start” & “Now” you should see the API calls going in, and the responses.

Once you’ve set up the debug console, there should be some clue in the error messages from OpenAI as to the problem.

You’re right, I didn’t know I needed tokens for the API because we can use chat GPT for free.

“message”: “You exceeded your current quota, please check your plan and billing details.”,


1 Like