Repository navigation
Releases: CREVIOS/CLI-GPT
Releases · CREVIOS/CLI-GPT
Release list
Ask GPT
Ask GPT Tool
Ask GPT Tool is a command-line interface that enables interaction with OpenAI's GPT models directly from your terminal.
Features
- Menu Navigation: Navigate through a menu system to perform various actions.
- Prompt Input: Input prompts or questions for the GPT model to generate responses.
- OpenAI API Integration: Integrates with OpenAI's API to generate responses using GPT models.
- Error Handling: Handles errors during API calls or other operations gracefully.
- Persistent Storage: Stores the OpenAI API key persistently for seamless usage across sessions.
- Customization: Allows customization for different API keys and accounts.
Usage
Installation
- Ensure Node.js is installed on your system.
- Clone the repository or download the CLI code.
- Navigate to the directory containing the CLI code.
- Install dependencies by running:
npm install -g
Set Up OpenAI API Key
- Execute the CLI by running:
ask_gpt
- If the OpenAI API key is not set, you will be prompted to set it. Follow the instructions to provide your API key.
Interact with the CLI
- After setting up the API key, you'll be presented with a menu.
- Choose an option from the menu to perform the desired action (e.g., ask a prompt, view or set the API key, etc.).
- Follow the prompts and instructions provided by the CLI to interact with the GPT models.
Exiting the CLI
To exit the CLI, choose the "Exit" option from the menu. The CLI will terminate gracefully.
Example
./your-cli-fileASk GPT Tool
Interact with OpenAI GPT models directly from your terminal.
? Select an option: [Ask a prompt] [Set OpenAI API Key] [View current API Key] [Clear current API Key] [Exit]
Dependencies
- OpenAI
- Conf
- Chalk
- Inquirer
- Figlet