AIToday
Large Language ModelsHacker NewsPublished: Apr 29, 2026, 16:00 JST1 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.

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.

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.

Ask the AI about this article →

Get the latest Large Language Models news every morning

For example, today's edition would include:

  • CBTS launches Forge Agents for custom AI agentsSiliconANGLE AI · 1h ago
  • Imec CEO: AI era widens chip-model-CSP collaborationDIGITIMES Asia · 1h ago
  • Alphabet's AI Overviews reach 2.5B monthly usersYahoo Finance AI · 1h ago

AI-summarized, only the topics you pick — one digest a day via Email, Slack, or Discord.

Free · takes 30 seconds · unsubscribe anytimeWhat is AIToday? →

Ask AI

Ask AI anything about this article. Q&As are published on this page for other readers too.

Related Articles

Next articleSoundHound AI stock down 66% from lifetime high as sales growth decelerates to 59% year-over-year in Q4 2025