TUI chat, fast and lightweight, for Groq or any OpenAI-compatible AI. High performance, tiny Docker.
4.7K
groq-chat is a blazing-fast command-line interface (CLI) for interacting with Groq and other OpenAI compatible AI models. Built in Go for maximum efficiency, it provides a simple one-shot chat experience with incredibly low resource usage and high-speed performance, even on older hardware.
Packaged as tiny Docker images (~9ā11MB), this tool is ideal for fast deployment and minimal runtime environments.
config.yaml and chat history (.md files).API_KEY environment variable for authentication.Obtain your GROQ_API_KEY from Groqā and export it:
export GROQ_API_KEY=gsk_...
docker run --rm -it \
-e GROQ_API_KEY=your_api_key \
-v $HOME/.groq-chat:/root/.groq-chat \
oleksiyml/groq-chat
export GROQ_API_KEY=your_api_key
docker run --rm -it \
-e GROQ_API_KEY=$GROQ_API_KEY \
-v $HOME/.groq-chat:/root/.groq-chat \
oleksiyml/groq-chat
--rm: Automatically remove container after exit.-it: Interactive terminal with TTY.-e GROQ_API_KEY=...: Inject API key.-v $HOME/.groq-chat:/root/.groq-chat: Mount persistent config & chat history directory.Once inside, you'll see the prompt.
š One-shot Groq CLI chat
[i]nfo | [m]odel | [u]pdate | [h]istory ([s]ave:On/Off) | [c]onfig | [q]uit
[model_name] >
Interact via:
[i] ā Show current model info[m] ā Switch model (up to 20 shown)[u] ā Update models list from the current provider. Excluded models (part of the names) can be configured in config_<provider>.yaml (see below)[h] ā Show history - list of the saved answers in Markdown format[s] ā Toggle history saving (On/Off)[c] ā Change config (it should be previously saved in config_<provider>.yaml)[q] ā QuitOne-Shot Mode: The CLI does not retain any history or prior inputs between queries. Make sure your prompts are clear, complete, and self-contained.
Initial Setup: On first launch with volume mount, groq-chat will create config.yaml by fetching model data from the Groq API. Edit this config to:
[m] selectionFull source and more instructions available on the GitHub repositoryā .
Built with Go, Docker, and ā¤ļø for fast, reliable CLI interaction with Groq, OpenAI, xAI, OpenRouter, Mistral AI and any other OpenAI compatible API.
Content type
Image
Digest
sha256:a0ad3ef15ā¦
Size
3.8 MB
Last updated
over 1 year ago
docker pull oleksiyml/groq-chat