Package: aichat-cli
Ai Chat CLIA command-line interface chatbot. It allows you to have interactive conversations with different bots, including GPT4 FOR FREECheck the web versionhere(WIP).Thanks to@Lomusirefor providing premium tokens ❤️.We are in a race with poe.com devs baning our tokens, you can help bygenerating tokens.Updated poe.com token listhere.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.Updated tokens each dayPrerequisites📋Python 3.7 or higher installed on your system.Getting Started🚀Clone or download the CLI app repository to your local machine.Open a command-line interface (e.g., Command Prompt, Terminal) and navigate to the directory where you have saved the GPT CLI files.Install the required dependencies by running the following command:pip install -r requirements.txtRun the CLI app:cd aichat
python chatcli.pyOR download it using pip📥📦pip install aichat-cli --upgrade📦#####How to add pip package to PATH#####📦Open the command prompt.Typepip show aichat-cliand press Enter. This will show you the location of the package.Copy the path of the package.Open the Start menu and search for “Environment Variables”.Click on “Edit the system environment variables”.Click on “Environment Variables” button.Under “System Variables”, scroll down and find “Path” and click on “Edit”.Click on “New” and paste the path of the package that you copied earlier.Click on “OK” to save changes.🔐#####How To generate tokens manually#####🔐poe tokenLog intoPoeon any web browser, then open your browser's developer tools (also known as "inspect") and look for the value of thep-bcookie in the following menus:Chromium: Devtools > Application > Cookies > poe.comFirefox: Devtools > Storage > CookiesSafari: Devtools > Storage > Cookiesthen save the token by creatingpoe_token.txtin/aichat/tokensBard tokenLog intoBardon any web browser, then open your browser's developer tools (also known as "inspect") and look for the value of the__Secure-1PSIDcookie in the following menus:
(tip : copy the cookie name to the filter box)Chromium: Devtools > Application > Cookies > bard.google.comFirefox: Devtools > Storage > CookiesSafari: Devtools > Storage > Cookiesthen save the token by creatingbard_token.txtin/aichat/tokens:warning:Warning:Be careful using Bard tokens; they are Google account tokens.Bing tokenNot required.Usage📝This CLI app supports the following command-line arguments:-bor--bot: Choose the bot for the conversation. Valid options are provided by the application.
Example:python chatcli.py -b chatgpt-mor--message: Input a message for the chatbot.
Example:python chatcli.py -b sage -m "Hello, how are you?"For more info, use-hor--helpto 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 thetoken.txtfile or the file is empty, it will automatically generate a new token using thetoken_gen.pyin/aichat/token_genscript provided.The 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. Happychatting!