Skip to content

Terminal bash script that is integrated with AI. Need to get short answers to your questions through the terminal

License

Notifications You must be signed in to change notification settings

Maksonik/terminal_ai_assistant

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

8 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ“– AI Help Terminal Script

This script allows you to quickly get AI-powered answers to your questions using OpenRouter's API with the Mistral 7B Instruct model.


🌟 Features

  • Simple command-line interface
  • Secure API key storage
  • Free to use (with OpenRouter's free tier)

πŸ› οΈ Installation

Steps

  1. Download the script:
git clone https://github.com/Maksonik/terminal_ai_assistant
  1. Go to the folder:
cd ./terminal_ai_assistant
  1. Make it executable:
chmod +x ai_help
  1. Move it to your bin directory for global access:
sudo mv ai_help /usr/local/bin/

πŸ”‘ Obtaining an API Key

  1. Go to OpenRouter API Keys
  2. Click "Create new key"
  3. Copy the key (it should start with sk-...)

πŸš€ Usage

  1. Simply run the script:
ai_help
  1. The first time you run it:
    • You'll be prompted to enter your OpenRouter API key
    • The key will be securely stored in .openrouter_key in the current directory
  2. Subsequent runs will use the stored key.

Prerequisites

  • Bash shell
  • curl (usually pre-installed)
  • jq (will be installed automatically if needed)

🧹 Uninstallation

To completely remove the script, run the following commands:

sudo rm /usr/local/bin/ai_help
rm ~/.openrouter_key  # or wherever you first ran it

About

Terminal bash script that is integrated with AI. Need to get short answers to your questions through the terminal

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages