CLI AI Assistant

A simple command-line AI assistant using OpenAI's API.

View on GitHub Install with NPM

Features

Installation

Install with NPM (recommended)

  1. Install with NPM:
    npm install --global cli-ai-assistant
  2. Set up your .env file with your OpenAI API key:
    export OPENAI_API_KEY=your_api_key

Install manually

    Clone the repo:
    git clone https://github.com/Benedek553/cli-ai-assistant.git
    Run install utility:
    node install.js
    Add to /usr/local/bin:
    mv index.js /usr/local/bin

License

This project is licensed under the Apache License 2.0.

Usage

Start the assistant with:

cli-ai-assistant

or

./run.sh

You will see:

Hello, how can I help you?
Please enter your question or command:
>

Type your question and press Enter.

Commands

Logging

All interactions are logged to app.log in the project directory.

Contributing

Feel free to open issues or submit pull requests on GitHub.

Contact

Created by Benedek553.