TheLime1 / gpt-cli

a command-line interface chatbot. It allows you to have interactive conversations with different bots, including GPT4 FOR FREE

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

GPT CLI v2.2

Did i find a bad token today ?

A command-line interface chatbot. It allows you to have interactive conversations with different bots, including GPT4 FOR FREE

Check the web version here (WIP).

Thanks to @Lomusire for providing premium tokens ❀️.

Features✨

  • Choose between different bots.
  • Input messages for the chatbot via command-line arguments or interactively.
  • Export the conversation to a .txt file for future reference.
  • Insert your clipboard for multiple-line messages.
  • Delete your messages to respect your privacy.
  • Automatic detection for bad tokens each day, check this test !

PrerequisitesπŸ“‹

  • Python 3.7 or higher installed on your system.

Getting StartedπŸš€

  1. Clone or download the GPT CLI repository to your local machine.

  2. Open a command-line interface (e.g., Command Prompt, Terminal) and navigate to the directory where you have saved the GPT CLI files.

  3. Install the required dependencies by running the following command:

pip install -r requirements.txt
  1. Run the GPT CLI app:
python gpt_cli.py
πŸ”#####How To generate tokens manually#####πŸ”

poe token

Log into Poe on any web browser, then open your browser's developer tools (also known as "inspect") and look for the value of the p-b cookie in the following menus:

Chromium: Devtools > Application > Cookies > poe.com

Firefox: Devtools > Storage > Cookies

Safari: Devtools > Storage > Cookies

then save the token by creating poe_token.txt in /tokens


Bard token

Log into Bard on any web browser, then open your browser's developer tools (also known as "inspect") and look for the value of the __Secure-1PSID cookie in the following menus: (tip : copy the cookie name to the filter box)

Chromium: Devtools > Application > Cookies > bard.google.com

Firefox: Devtools > Storage > Cookies

Safari: Devtools > Storage > Cookies

then save the token by creating bard_token.txt in /tokens

⚠️ Warning: Be careful using Bard tokens; they are Google account tokens.


Bing token

Not required.


UsageπŸ“

The GPT CLI supports the following command-line arguments:

  • -b or --bot: Choose the bot for the conversation. Valid options are provided by the application. Example: python gpt_cli.py -b chatgpt

  • -m or --message: Input a message for the chatbot. Example: python gpt_cli.py -b sage -m "Hello, how are you?"

  • For more info, use -h or --help to see the help message.

If you don't provide any command-line arguments, the app will prompt you to choose a bot and enter a message interactively.

Once the conversation starts, you can continue the interaction by typing your messages or selecting options from the menu. The menu options include changing the bot or exporting the conversation to a .txt file.

NotesπŸ“Œ

  • If the app cannot find the token.txt file or the file is empty, it will automatically generate a new token using the token_gen.py script provided.

  • The GPT CLI app also supports the use of premium tokens , so you can be able to use GPT4.

  • The conversation history is stored within the app and is not persistent between sessions.

Feel free to customize and enhance the GPT CLI app according to your needs. Happy chatting!

image

About

a command-line interface chatbot. It allows you to have interactive conversations with different bots, including GPT4 FOR FREE

License:GNU General Public License v3.0


Languages

Language:Python 100.0%