Skip to content

pranavmangal/termq

Repository files navigation

termq (tq)

GitHub Release

A simple tool to query LLMs from the terminal.

Demo

Installation

Using Homebrew:

brew install pranavmangal/tap/termq

Usage

tq '<query>'

Supported Providers

Configuration

The config file is located at ~/.config/termq/config.toml (macOS and Linux) or ~\AppData\Roaming\termq\config.toml (Windows).

termq should automatically create a skeletal config for you at first run and ask you to fill in your API keys and preferred models.

Example:

system_prompt = "You are a helpful assistant."

[groq]
model = "llama-3.1-70b-versatile"
api_key = "<your-api-key>"