Skip to content

CLAI is a command-line AI assistant tool designed for developers who prefer using the command-line interface (CLI) over a graphical user interface (UI). With CLAI, you can interact with OpenAI's GPT models directly from your CLI, eliminating the need to switch to a separate UI.

Notifications You must be signed in to change notification settings

harunkelesoglu/clai

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

CLAI - Command Line AI Assistant

CLAI is a command-line AI assistant tool designed for developers who prefer using the command-line interface (CLI) over a graphical user interface (UI). With CLAI, you can interact with OpenAI's GPT models directly from your CLI, eliminating the need to switch to a separate UI.

Prerequisites

Before using CLAI, ensure you have the following prerequisites:

  • Bash shell (typically available on Unix-like systems)
  • curl command-line tool
  • jq command-line tool (for JSON parsing)
  • OpenAI API key
  • Knowledge of your preferred OpenAI model (e.g., "gpt-3.5-turbo" or "gpt-4.0")

Usage

To use CLAI, follow these steps:

  1. Set the required environment variables in your shell profile:

    • OPENAI_API_KEY: Your OpenAI API key.
    • OPENAI_MODEL: The OpenAI model you want to use.
  2. Run CLAI with a user message as an argument:

    ./clai.sh "User's message goes here."
    

Installation Instructions

To make CLAI easily accessible, follow these steps:

  1. Move the CLAI script to the /usr/local/bin directory:

    sudo mv clai.sh /usr/local/bin/clai
    
  2. Make the script executable:

    sudo chmod +x /usr/local/bin/clai
    

License

This project is licensed under the MIT License. See the LICENSE file for details.

Author

About

CLAI is a command-line AI assistant tool designed for developers who prefer using the command-line interface (CLI) over a graphical user interface (UI). With CLAI, you can interact with OpenAI's GPT models directly from your CLI, eliminating the need to switch to a separate UI.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages