(Archived until there's an official API)
Straight from your command bar, ask anything that you wanted and get ChatGPT's generated answer without opening any browser app.
Read through AI-generated answer in a clean and nice-looking markdown view without losing ongoing conversation.
Got the answer that you wanted? Great. Now you can save it in your collection locally and here you have it! No need to reask again.
Automatically save all the asked questions and its generated answer locally, so you can go back digging for the answer you're looking for without any internet connection!
This package requires a valid Session Token
from ChatGPT to access it's unofficial REST API by transitive-bullshit/chatgpt-api.
To get a session token:
-
Go to https://chat.openai.com/chat and log in or sign up.
-
Open dev tools.
-
Open
Application
>Cookies
. -
Copy the value of
__Secure-next-auth.session-token
and paste it in theSession Token
initialization set-up field!
An update note from the API author
Today, OpenAI added additional Cloudflare protections that make it more difficult to access the unofficial API. Here's some additional steps that you need to follow:
- Copy the value of the
cf_clearance
cookie and paste it in theClearance Token
initialization set-up field.
- Copy your browser's
user-agent
header from any request in your browser's network tab and paste it in theUser Agent
initialization set-up field.
Restrictions on this method:
- Cloudflare
cf_clearance
tokens expire after 2 hours, so there will be a pop-up reminder to update your token if you had an invalid token value. - Your
user-agent
andIP address
must match from the real browser window you're logged in with to the one you're using for the extension.- This means that you currently can't log in with your laptop and then run the extension in the same time.
- You should not be using this account while the extension is already running, because that browser window may refresh one of your tokens and invalidate the extension's session.
All the preferences value will be stored locally using Preferences API
Made with โฅ from Indonesia