Generates command line commands from your description. Lets you edit and execute it.
- Have Python 3 installed
- Put
ai.py
somewhere - Copy
cmdline-ai-helper.sample
to~/.cmdline-ai-helper
and fill in your provider, model and API keys. It supports Anthropic, OpenAI, Google and local ollama. - Optionally add an alias to your
.bashrc
or.bash_profile
alias ai="python path/to/your/ai.py"
Tested on macOS with bash.
$ ai description of your command
Press enter, wait. Then edit the resulting command, press Enter to execute, or ESC to cancel.
Examples: https://hachyderm.io/@combatwombat/113765663832357137