June 28, 2026
Shell shock in the comments
Show HN: Bash4LLM+ – A lightweight, dependency-free Bash wrapper for LLM APIs
One-file AI tool sparks cheers, eye-rolls, and a 5,000-line Bash meltdown
TLDR: Bash4LLM+ is a one-file tool for using AI from the command line, built to avoid big software installs and work almost anywhere. The community instantly turned it into a fight over whether it's impressively portable or wildly overbuilt, with one commenter roasting its 5,000 lines and the creator defending the all-in-one approach.
A new Show HN post dropped with a very specific fantasy: one single Bash script that lets people talk to AI services without dragging in Python, Node, or a pile of extra software. The creator pitched Bash4LLM+ as the simple, portable, security-minded answer for people who just want to download a file, make it executable, paste in an API key, and go. It works across Linux, macOS, Android Termux, and more, which is the kind of detail that makes command-line diehards nod approvingly while everyone else quietly asks, "Wait, all that in one script?"<br><br>The real fireworks, though, came from the comments. One of the loudest reactions was pure disbelief: why was the post flagged at all? That instantly gave the thread a whiff of underdog drama. Then came the roast. A critic slammed the project as 5,000 lines of Bash just to send a web request and save files, calling it repetitive, verbose, and hard to follow. Ouch. That hot take basically split the room into two camps: people who see a glorious no-dependencies survival tool, and people who see a sprawling shell-script labyrinth.<br><br>The creator jumped in with the full defense: this was the whole point. No heavy runtimes, no multiple app versions, one file, transparent code, easy to copy anywhere. In other words, what some see as overkill, the author sees as freedom. And that clash is the story: is this beautifully practical minimalism, or a maximalist Bash fever dream? Either way, the comments turned a niche tool launch into a delightful little terminal soap opera.
Key Points
- •Bash4LLM+ is presented as a single-file Bash CLI wrapper for Groq’s OpenAI-compatible Chat Completions API, with an extension model for additional providers.
- •The tool supports Unix-like environments including Linux, macOS, WSL, Cygwin, Termux on Android, and BSD.
- •Its feature set includes dynamic model discovery, streaming and non-streaming modes, modular internal sections, JSON-based UI state exposure, and advanced model management.
- •The article emphasizes security measures such as avoiding `/tmp`, avoiding `eval`, using restrictive permissions, validating providers, and never executing model output.
- •Installation requires standard command-line tools including bash, coreutils, findutils, util-linux, gawk, curl, and jq, with optional extras adding providers such as Gemini, Hugging Face, and Mistral.