A minimal, safe, and pleasant CLI tool to turn natural language into shell commands using DeepSeek API (with deepseek/deepseek-r1-0528-qwen3-8b:free model).
- Ensure you have Python 3 and the required packages:
pip install -r requirements.txt
- Copy
autoshell.pysomewhere in your PATH and make it executable:cp autoshell.py ~/bin/wtd chmod +x ~/bin/wtd # Or symlink: ln -s "$PWD/autoshell.py" ~/bin/wtd
- Create a
.envfile in~/binwith your OpenRouter API key:Replaceecho 'OPENROUTER_API_KEY=your_openrouter_api_key_here' > ~/bin/.env
your_openrouter_api_key_herewith your actual OpenRouter API key.
wtd make a file called notes.txt in my current directory- The tool will suggest a shell command, let you edit/confirm it, and then run it.
- Use
--dry-runto only show the command, not execute it.
- Blocks dangerous commands (e.g.,
rm -rf /,mkfs, etc.). - Prompts for confirmation/edit before running anything.
- Python 3
openaiandpython-dotenv(install withpip install -r requirements.txt)- macOS or Linux
- OpenRouter API key (get one at https://openrouter.ai/)