Skip to content

Use Groq in your terminal

Groq is known for very fast answers and has a free tier, which makes it a good first provider.

  1. Create an API key at https://console.groq.com/keys.
  2. Run kunji keys add groq and paste the key. kunji checks it works, then stores it in your OS keychain.
  3. Pick a default model from the list (type to search).
  4. Run kunji and start chatting.
Provider id groq
Type OpenAI-compatible API
API address https://api.groq.com/openai/v1
Key variable GROQ_API_KEY
Terminal window
kunji models groq # see available models
kunji use groq:<model> # make one your default
kunji chat -m groq:<model> # or chat with it once

Inside a chat, switch to it with /model groq:<model>; the conversation carries over.

For CI or scripts you can skip the keychain:

Terminal window
export GROQ_API_KEY=your-key-here
kunji ask -m groq:<model> "Hello"