{"id":13745511,"url":"https://github.com/closedLoop-technologies/autocomplete-sh","last_synced_at":"2025-05-09T06:31:03.113Z","repository":{"id":241861949,"uuid":"808005214","full_name":"closedloop-technologies/autocomplete-sh","owner":"closedloop-technologies","description":"Large language model in the terminal!  Less `--help` and `man` and more getting stuff done","archived":false,"fork":false,"pushed_at":"2024-07-25T01:38:31.000Z","size":9518,"stargazers_count":32,"open_issues_count":5,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-08-03T06:01:15.253Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","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/closedloop-technologies.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":"2024-05-30T07:41:02.000Z","updated_at":"2024-08-03T04:46:45.000Z","dependencies_parsed_at":"2024-08-03T06:01:07.440Z","dependency_job_id":"bdda780f-ed72-49dd-b569-dc37609a734d","html_url":"https://github.com/closedloop-technologies/autocomplete-sh","commit_stats":null,"previous_names":["closedloop-technologies/autocomplete-sh"],"tags_count":19,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/closedloop-technologies%2Fautocomplete-sh","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/closedloop-technologies%2Fautocomplete-sh/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/closedloop-technologies%2Fautocomplete-sh/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/closedloop-technologies%2Fautocomplete-sh/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/closedloop-technologies","download_url":"https://codeload.github.com/closedloop-technologies/autocomplete-sh/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224834863,"owners_count":17377788,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":[],"created_at":"2024-08-03T06:00:22.212Z","updated_at":"2025-05-09T06:31:03.107Z","avatar_url":"https://github.com/closedloop-technologies.png","language":"Shell","readme":"Autocomplete.sh\n========================================================\n\n## `--help` less, accomplish more: Command your terminal\n\n\u003e Command your terminal with intelligent suggestions\n\nAutocomplete.sh adds AI-powered command-line suggestions directly to your terminal. Just type `\u003cTAB\u003e\u003cTAB\u003e` and it calls an LLM (OpenAI by default) to return the top suggestions for you.\n\n![Autocomplete.sh Demo](https://github.com/user-attachments/assets/6f2a8f81-49b7-46e9-8005-c8a9dd3fc033)\n\nUse natural language without copying between CoPilot or ChatGPT\n\n## Quick Start\n\n```bash\nwget -qO- https://autocomplete.sh/install.sh | bash\n```\n\n## Features\n\n- **Context-Aware**: Considers terminal state, recent commands, and `--help` information\n- **Flexible**: Supports various LLM models, from fast and cheap to powerful\n- **Secure**: Enables local LLMs and sanitizes prompts for sensitive information\n- **Efficient**: Caches recent queries for speed and convenience\n- **Cost-Effective**: Monitors API call sizes and costs\n\n## Supported Models\n\nWe support OpenAI, Groq, Anthropic, and Ollama models. Configure your model with:\n\n```bash\nautocomplete model\n```\n\n![Model Selection](https://github.com/user-attachments/assets/6206963f-81c2-4d68-b054-6ec88969ba0c)\n\n## How It Works\n\nAutocomplete.sh provides faster, more accurate suggestions by considering:\n\n- Your machine's environment\n- Recently executed commands\n- Current directory contents\n- Command-specific help information\n\nView the full prompt with:\n\n```bash\nautocomplete command --dry-run \"your command here\"\n```\n\n## Tips and Tricks\n\n1. For command parameters: `ffmpeg # reformat video to fit youtube` then `\u003cTAB\u003e\u003cTAB\u003e`\n2. For complex tasks: `# create a github repo, init a readme, and push it` then `\u003cTAB\u003e\u003cTAB\u003e`\n\n## Configuration\n\n```bash\nsource autocomplete config\n```\n\n![Configuration Options](https://github.com/user-attachments/assets/61578f27-594f-4bc4-ba86-c5f99a41e8a9)\n\nUpdate settings with:\n\n```bash\nautocomplete config set \u003ckey\u003e \u003cvalue\u003e\n```\n\n## Usage Tracking\n\n```bash\nautocomplete usage\n```\n\n![Usage Statistics](https://github.com/user-attachments/assets/0fc611b9-fb4c-4f68-bf01-8e6ecdcf7410)\n\n## Use Cases\n\n- **Data Engineers**: Manipulate datasets efficiently\n- **Backend Developers**: Deploy updates swiftly\n- **Linux Users**: Navigate systems seamlessly\n- **Terminal Novices**: Build command-line confidence\n- **Efficiency Seekers**: Streamline repetitive tasks\n- **Documentation Seekers**: Quickly understand commands\n\n## Development\n\n### Local Installation\n\n```bash\ngit clone git@github.com:closedloop-technologies/autocomplete-sh.git\nln -s $PWD/autocomplete.sh $HOME/.local/bin/autocomplete\n. autocomplete.sh install\n```\n\nWe can also install the development version from the local file:\n\n```bash\n    ./docs/install.sh dev\n```\n\n### Testing\n\n```bash\nsudo apt install bats\nbats tests\n```\n\n### Docker Testing\n\n```bash\ndocker build -t autocomplete-sh .\ndocker run --rm -e OPENAI_API_KEY=$OPENAI_API_KEY autocomplete-sh\n```\n\n## Maintainers\n\nCurrently maintained by Sean Kruzel [@closedloop](https://github.com/closedloop) at [Closedloop.tech](https://Closedloop.tech)\n\nContributions and bug fixes are welcome!\n\n## Support Open Source\n\nThe best way to support Autocomplete.sh is to just use it!\n\n- [Just use it!](https://github.com/closedloop-technologies/autocomplete-sh?tab=readme-ov-file#quick-start)\n- [Share it!](https://x.com/intent/post?text=I+love+autocomplete.sh%21++I+just+press+%3CTAB%3E%3CTAB%3E+to+just+build+quickly+%40JustBuild_ai)\n- Star it!\n\nIf you want to help me keep up the energy to build stuff like this, please:\n\n[![\"Buy Me A Coffee\"](https://www.buymeacoffee.com/assets/img/custom_images/orange_img.png)](https://www.buymeacoffee.com/skruzel)\n\n## License\n\nSee the [MIT-LICENSE](./LICENSE) file for details.\n","funding_links":["https://www.buymeacoffee.com/skruzel"],"categories":["ChatGPT in your editor","🔌 ChatGPT in Your Editor","Terminal"],"sub_categories":["CLI Utilities"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FclosedLoop-technologies%2Fautocomplete-sh","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FclosedLoop-technologies%2Fautocomplete-sh","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FclosedLoop-technologies%2Fautocomplete-sh/lists"}