Skip to content

itsbrex/ChatGPT-Cookies

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

52 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ChatGPT Cookies - Chrome Extension

GitHub stars GitHub forks GitHub issues GitHub license

This Chrome Extension allows you to quickly and easily copy ChatGPT cookie values and user-agent strings to your clipboard, or export a single .env file with everything.


ChatGPT-Cookies

BRIAN ROACH

CTO - @Starchild.AI

GitHub followers

linkedin

Features

  • 📋️ Copy individual or all values to clipboard with a single click!

  • 📁 Export all values as an .env-all.txt file.

    Currently supports the following values:

    • cf_clearance
    • __Secure-next-auth.session-token
    • user-agent

Demo

chatgpt-cookies-v2-demo

Example output

CF_CLEARANCE:
aDb4vZuUfhisisjsbfytfjdbndD1xktq_lcwC9ceIAo-1671161322-0-1-7662cbc0.801c6f70.12d6215e-160

SESSION_TOKEN:
eyJhbGciOiJkaXIiLCJlbmMiOiJBMjU2R0NNIn0..rXK8br7nrr9e37Kr.kqTJumUk-buzxURSAHXhDcCO-YiFhEkGyHqVcvY8Uvl16iOwHO47IFCvJPoAqghb66uXGPRTbTBn9fWSH0JFktYjCO1HuQDlHPY_d_6xSpNg3Jy_mHZfr5_YQ5pyV8T3DO2TpZfzDYjSgb4be8yZm7GW7AfT3OOOus5E27p2ZxNUUTgJUmXjUZu69RNXpm4NalcQMWARTKlf0feialDMSYLWyQh6QhGZEzdpGsT5qe4Qdw07ckpMiRM8wLHLljmUpqRXas6AKNrYhdRKnSm_GrHGGCSeeyMkqZ8k0PpMURg5SOcGvblqQBCFx8edEKfAvn90l33_liIjihUorle9fMW71sYicyrYUSfz-jAzhtBTdNZRPK1xoOsrFNSDYKmLQ1qBitZxdC7QUwBOQGE42j4pUf_fdpmvxydWDhDNqbor1svo-ws-EvnHS0dfS8geUjcKzX3VgsbTgRYVLo6kbyzQnGIbSnLC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tKKc3dZ9JKugY1mLzuLMNsJCnWXN2C4m7Pn2rY3cHqSELfJ8qhoDxthEvALVZ-zRRM67qKrKlSfoCJQVjsV15zH7svwRpbplAF844LbAZQPdjGT3NAm70dUlUN-oEa-SG0jEaw9hhIeMw7JJt-fdPL46GNYBV7KYCLS0ljAocItosWQSwwGIlgbOgRIUYFH2epcMylMbYF8pO5NpOYrpSxpoU7Ed3cQTAOrnhwb1aEUlMcsYpVnRbas2NYDXwLhUt066ba0DPu0ZdZ14HpdqJ1FmbYbv-PnI-VwgfHI1vNZDQ7p1xneaxpBuQMs8EhK5wsjjx3w-6Zwvf6HkPBubT9f4hInopzf0FXSc36QWPnRiUcl9xBRhAiqTBRgwevUv0WFkXuW-PVLYicq4Ja93ZVtEXFVRXP1tpH0oTwvlAL33z2ymkJze-GNY-Gqy21147bBo6SwW64dsBbfwgshF_Dd5yFMXTLI9-2YUdkjvJjcM8oJGXlOsJ_-a53WPji09AWrQUaqAhpPwN6hW2gAICTc5YlNvNw8MZrap4Byg9z1pJaI5b0CkeQRlwKRBfr6Cey13PaxmNq2QRJm7XVILUyzjWA.K3ezZa58putln39tQLHZow

USER_AGENT:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36

Note: The CF_CLEARANCE value is only valid for 2 hours. This extension helps you copy that value again quickly. Exploring options for a fix to address this in a future release.

Install

Chrome Web Store (recommended)

  1. Install 👉️ ChatGPT Cookies - Chrome Web Store
  2. Click on the extension icon in the Chrome toolbar to automatically navigate to the ChatGPT website 👉️ https://chat.openai.com/chat
  3. Select one of the options to automatically copy the SESSION_TOKEN, USER_AGENT, and CF_CLEARANCE or all values at once to your clipboard, or download a single .env-all with all of them.
  4. Paste the values wherever they are needed in your project, such as in the .env file.

Install Locally (latest features)

  1. Download the code on GitHub.
  2. Unzip the downloaded file.
  3. In the Chrome browser, open the Extensions page (chrome://extensions/).
  4. Turn on Developer mode by clicking the toggle switch in the top right corner of the page.
  5. Click the Load unpacked button and select the directory where you unzipped the extension files.
  6. The extension should now be installed and ready to use.

Bugs / Feature Requests

Extension Permissions

  • "host_permissions" property grants the extension access to the following:

    • https://*.openai.com/*: allows the extension to access pages within the openai.com domain only.
  • "permissions" property grants the extension access to the following within the scope above:

    • activeTab: allows the extension to access information on the current active tab.
    • cookies: allows the extension to read and write cookies.
    • clipboardWrite: allows the extension to write to the clipboard.

More info here: Chrome Extensions Declare permissions

Icon

Copy ChatGPT Session Token icon
The extension icon was created using DALL-E-2.

License

This extension is licensed under the MIT License. See the LICENSE file for more information.

Acknowledgements