About askai

AskAI is a command-line interface (CLI) for OpenAI’s ChatGPT. It allows users to interact with ChatGPT directly from their terminal, without the need for a web browser. The tool is designed to facilitate easy and efficient communication with the AI model.

Three key features of AskAI include

  1. Question-Answer Mode: Users can ask questions directly from the command line, and ChatGPT will provide responses. This feature is accessed by running the command askai <question>.
  2. Live Chat Mode: AskAI supports a live chat mode for real-time conversation with ChatGPT. This mode is initiated with the command askai live, enabling users to ask questions and receive responses in real-time.
  3. Session Management: AskAI includes a login feature that allows users to authenticate their ChatGPT account. This is done by obtaining a valid OpenAI “session token” and Cloudflare “clearance token”, and using the askai login command. The tokens can be retrieved from the developer tools of the user’s web browser when visiting the ChatGPT website.