A simple tool to query LLMs from the terminal.
Using Homebrew:
brew install pranavmangal/tap/termq
tq '<query>'
- Cerebras (very fast inference)
- Groq (fast inference)
- Google Gemini
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>"