{"id":18719475,"url":"https://github.com/henomis/ai-shell-go","last_synced_at":"2026-05-06T11:32:44.805Z","repository":{"id":151779296,"uuid":"624763926","full_name":"henomis/ai-shell-go","owner":"henomis","description":"Ai shell helper written in go","archived":false,"fork":false,"pushed_at":"2023-04-07T15:40:31.000Z","size":197,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-22T18:05:28.184Z","etag":null,"topics":["ai","chatgpt","go","openai","shell"],"latest_commit_sha":null,"homepage":"https://simonevellei.com","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/henomis.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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}},"created_at":"2023-04-07T07:45:53.000Z","updated_at":"2023-04-07T15:44:06.000Z","dependencies_parsed_at":"2023-04-09T18:33:37.408Z","dependency_job_id":null,"html_url":"https://github.com/henomis/ai-shell-go","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/henomis/ai-shell-go","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/henomis%2Fai-shell-go","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/henomis%2Fai-shell-go/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/henomis%2Fai-shell-go/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/henomis%2Fai-shell-go/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/henomis","download_url":"https://codeload.github.com/henomis/ai-shell-go/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/henomis%2Fai-shell-go/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32691764,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-06T08:33:17.875Z","status":"ssl_error","status_checked_at":"2026-05-06T08:33:17.221Z","response_time":117,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: 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":["ai","chatgpt","go","openai","shell"],"created_at":"2024-11-07T13:26:14.653Z","updated_at":"2026-05-06T11:32:44.789Z","avatar_url":"https://github.com/henomis.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 🤖 ai-shell-go\n\n[![Build Status](https://github.com/henomis/ai-shell-go/actions/workflows/release.yml/badge.svg)](https://github.com/henomis/ai-shell-go/actions/workflows/release.yml) [![GoDoc](https://godoc.org/github.com/henomis/ai-shell-go?status.svg)](https://godoc.org/github.com/henomis/ai-shell-go) [![Go Report Card](https://goreportcard.com/badge/github.com/henomis/ai-shell-go)](https://goreportcard.com/report/github.com/henomis/ai-shell-go) [![GitHub release](https://img.shields.io/github/release/henomis/ai-shell-go.svg)](https://github.com/henomis/ai-shell-go/releases)\n\nThis is a simple AI shell helper written in GO. It uses OpenAI API to generate a plausible shell command from a given prompt.\nAs soon as the command is generated, the user can choose to execute it or revise it adding more context.\n\n\n\n![ai-shell-go](screen.gif)\n\n## Installation\nBe sure to have a working Go environment, then run the following command:\n\n```\n$ go install github.com/henomis/ai-shell-go@latest\n```\n\n### From source code\n\nClone the repository and build the binary:\n\n```\n$ make\n```\n\n### Pre-built binaries\n\nPre-built binaries are available for Linux and macOS on the [releases page](https://github.com/henomis/ai-shell-go/releases/latest).\n\n\n\n## Usage\n\n⚠️ ai-go-shell requires an OpenAI API key as `OPENAI_API_KEY` environment variable.\n\n\n```\n$ ai-shell-go print first 3 lines of each file in a directory\n```\n\n### Output\n\n```\n    🤖 Here is your command line:\n\n    $ head -n 3 *\n    --\n    This command uses the `head` utility to print the first 3 lines of each file in the current directory (`*` is a wildcard that matches all files in the directory). The `-n 3` flag specifies that it should print only the first 3 lines.\n\n    [E]xecute, [R]evise, [Q]uit? \u003e \n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhenomis%2Fai-shell-go","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhenomis%2Fai-shell-go","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhenomis%2Fai-shell-go/lists"}