Welcome to the k-aiti, a tool written in Rust. This project provides a straightforward way to interact with LLMs directly from your terminal.
- Utilizes OpenAI's model as the default LLM.
- Supports a chat mode for easy and interactive conversations with the model.
Before you begin, ensure you have the following installed:
- Rustup: The Rust installer and version management tool.
- For Linux users: Ensure you have
openssl
installed. Depending on your distribution, you can install it using the package manager:# For Debian/Ubuntu sudo apt-get install openssl libssl-dev # For Fedora sudo dnf install openssl openssl-devel # For Arch sudo pacman -S openssl
Follow the steps below to set up the repo on your local machine:
-
Clone the repository:
git clone https://github.com/tylertownsend/k-aiti.git
-
Navigate into the project directory:
cd k-aiti
-
Install the project:
cargo install --path .
Now you should be able to use kaiti from your shell!
-
Start the tool:
kaiti
Upon running the above command, you will be prompted to set up your profile. Follow the on-screen instructions to enter your OpenAI account key.
-
Using Environment Variables: If you have set up the OpenAI account key as an environment variable named
OPENAI_API_KEY
, the setup flow will detect and use it automatically. -
Start chatting with the AI:
kaiti chat
This will initiate the chat mode where you can have interactive conversations with the model.
-
Stopping the chat: Simply type "stop" during the chat to exit the chat mode.
-
Need Help?:
kaiti --help
Run the above command for a list of available commands and usage details.