{"id":28360809,"url":"https://github.com/varlabz/qq","last_synced_at":"2026-04-17T10:07:48.284Z","repository":{"id":294370064,"uuid":"986547190","full_name":"varlabz/qq","owner":"varlabz","description":"minimalistic cli llm command (bash only)","archived":false,"fork":false,"pushed_at":"2025-07-14T23:00:32.000Z","size":13,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-08-10T22:47:42.219Z","etag":null,"topics":["bash","bash-script","llm","minimal","openai"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/varlabz.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-05-19T19:17:55.000Z","updated_at":"2025-07-14T23:00:19.000Z","dependencies_parsed_at":"2025-06-20T22:19:31.372Z","dependency_job_id":"6ae7d905-5b89-44bc-a192-bc86486a9fdf","html_url":"https://github.com/varlabz/qq","commit_stats":null,"previous_names":["varlabz/qq"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/varlabz/qq","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/varlabz%2Fqq","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/varlabz%2Fqq/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/varlabz%2Fqq/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/varlabz%2Fqq/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/varlabz","download_url":"https://codeload.github.com/varlabz/qq/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/varlabz%2Fqq/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31924409,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-17T09:10:15.403Z","status":"ssl_error","status_checked_at":"2026-04-17T09:10:14.455Z","response_time":62,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bash","bash-script","llm","minimal","openai"],"created_at":"2025-05-28T12:07:07.756Z","updated_at":"2026-04-17T10:07:48.268Z","avatar_url":"https://github.com/varlabz.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# qq: Simple Bash CLI for OpenAI Chat Completions\n\nqq is a minimal Bash script that lets you interact with OpenAI-compatible chat models from the command line. It supports both single-message and system-prompted conversations, and can read input from stdin for flexible scripting.\n\n## Features\n\n- Send prompts and messages to OpenAI's chat/completions API (or compatible endpoints)\n- Supports system prompts and user messages\n- Reads message from stdin if last argument is `-`\n- Loads API keys and settings from `.env` or `~/.config/qq-env`\n- Minimal dependencies: only `curl` and `jq`\n\n## Usage\n\n```bash\nqq \u003cprompt\u003e \u003cmessage\u003e\nqq \u003cmessage\u003e\nqq \u003cprompt\u003e -    # message from stdin\n```\n\n- If only one argument is given, it is treated as the user message with a default system prompt.\n- If two or more arguments are given, the first is the system prompt, the rest are joined as the user message.\n- If the last argument is `-`, the message is read from stdin.\n\n## Environment Variables\n\nqq uses the following environment variables (set in `.env` or `~/.config/qq-env`):\n\n- `LLM_API_KEY` (required): Your OpenAI API key\n- `LLM_BASE_URL` (optional): API endpoint (default: `https://api.openai.com/v1/chat/completions`)\n- `LLM_MODEL` (optional): Model name (default: `openai/gpt-4o-mini`)\n- `LLM_TEMPERATURE` (optional): Sampling temperature (default: `0.1`)\n\n## Example\n\n```bash\necho \"Summarize this text:\" | qq \"You are a helpful assistant.\" -\nqq \"You are a helpful assistant.\" \"What is the capital of France?\"\nqq \"What is the capital of France?\"\nqq \"You are a helpful assistant.\" - \u003c message.txt\nqq \"$(cat prompt.txt)\" \"$(cat message.txt)\"\nqq \"$(cat prompt.txt)\" - \u003c message.txt\n```\n\n## Requirements\n\n- bash\n- curl\n- jq\n\n## Installation\n\nJust copy the `qq` script somewhere in your `$PATH` and make it executable:\n\n```bash\nchmod +x qq\n```\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvarlabz%2Fqq","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvarlabz%2Fqq","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvarlabz%2Fqq/lists"}