Show HN: Bash4LLM+ – A lightweight, dependency-free Bash wrapper for LLM APIs

Bash-first wrapper for Groq’s OpenAI-compatible API. Secure, portable, Termux-friendly. - kamaludu/bash4llm
60 points by kamaludu 115 days ago github.com 26 comments
Summary not yet generated for this article.

Original Text

Bash4LLM is a single-file Bash wrapper for interacting with LLMs from the terminal. I created it because I wanted something simple that worked without installing Python, Node, or any other runtime.

It uses only Bash, curl, and jq. You can send prompts, start a small chat, process files line by line, stream output, and save session metadata in JSON format.

I tried to make it safe and predictable: no use of the system /tmp, no use of eval. Groq is supported by default, and other providers can be added with dedicated Bash scripts in the extras/providers/ folder.

Example:

  echo "explains the command: ls -l" | ./bash4llm

Comments (26 of ) ⌛

Loading more comments... ⌛
Scroll down to load more comments
No comments available.
Type to search HN and engineering blog articles
Press Escape to close  |  ↑↓ to navigate  |  Enter to open