AIToday

Q is a slim LLM CLI tool that runs in the terminal, asking questions and debugging errors with session context from a single shell script.

Hacker NewsApr 29, 20261 min read
Q is a slim LLM CLI tool that runs in the terminal, asking questions and debugging errors with session context from a single shell script.

Summaries like this, in your inbox every morning.

Sign up free →

3 Key Points

  1. Q is a shell script installed via curl that requires only curl (always present) and jq (auto-installed if missing). It provides one-shot questions, code-only output, and debug mode with recent terminal output as context.

  2. The tool logs shell commands (skipping vim, fzf, claude, etc.) and supports redacting sensitive values via patterns stored in ~/.config/q/qignore. Session logging can be paused/resumed with q-stop and q-start shell aliases.

  3. Q supports multiple LLM providers—OpenAI (default), Amazon Nova, Azure, Anthropic, and custom endpoints—via environment variables Q_PROVIDER, Q_MODEL, Q_ENDPOINT, and Q_API_KEY. Configuration is auto-saved to ~/.config/q/config.sh on first run.

  4. Shell completions are available for zsh, bash, and fish via the q completions subcommand.

Discussion

No comments yet. Be the first to share your thoughts!

Log in to join the discussion

Related Articles

Stay ahead with AI news

Get curated AI news from 200+ sources delivered daily to your inbox. Free to use.

Get Started Free

Free · takes 30 seconds · unsubscribe anytime

1 minute a day. The AI essentials.

200+ sources · Email / LINE / Slack

Get it free →