Natural language to shell command.
uv tool install autocmd-cliFirst run triggers setup for shell integration and LLM provider:
autocmd "check git status"After setup, commands appear on your prompt ready to edit:
autocmd "git fetch all updates from remote"
# → git fetch --all
autocmd "show git log for last 5 commits"
autocmd "find all python files modified today"
autocmd "kill process on port 3000"Use triple quotes for multiline prompts or prompts with quotes:
autocmd '"""find all log files
that contain "ERROR"
modified in the last hour"""'
autocmd '"""search for files with 'important' in the name"""'Supports multiple LLM providers:
- Anthropic (Claude) - default
- OpenAI (GPT)
- Groq (Llama)
- Grok (xAI)
- Deepseek
- Openrouter
Configure via autocmd --settings or environment variables:
export AUTOCMD_PROVIDER=groq
export GROQ_API_KEY=your_key_here
export AUTOCMD_MODEL=llama-3.3-70b-versatile # optionalautocmd --settings # Configure provider, API key, model, and streaming
autocmd --reset # Reset all configurationgit clone https://github.com/dvirzg/autocmd.git
cd autocmd
./dev-setup.sh
source ~/.zshrc # or ~/.bashrc
# Always uses the local code
autocmd-dev "check git status"uv tool uninstall autocmdThen remove the autocmd line from your shell config if you want to fully clean it up.
