Skip to content
/ qai Public

Simple AI query tool for the terminal using ollama.

Notifications You must be signed in to change notification settings

McNull/qai

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

qai

Simple AI query tool for the terminal using ollama. Answers are short and to the point.

$ qai how can I scan 192.168.6.1 for the ports 22, 80, 8080
nmap -p 22,80,8080 192.168.6.1

Installation

$ go install github.com/mcnull/qai@latest

Or download the latest release from the releases page.

Usage

Usage of ./qai:
  -m, --model string    Model to use for generation (default "llama3")
  -o, --os string       Operating system (default "{your operating system}")
  -s, --system string   System message to use for generation
  -u, --url string      URL of the ollama service (default "http://localhost:11434")
  -v, --version         Print the version and exit

Config

Default configuration file is ~/.config/qai/config.json.

{
    "model": "llama3",
    "url": "http://localhost:11434",
    "system": "Your answers are always formal, short and to the point.\n\t\tYour answers never contain explanations or examples unless explicitly asked for."
}