autoshell (wtd)
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).
Installation
- Ensure you have Python 3 and the required packages:
sh pip install -r requirements.txt - Copy
autoshell.pysomewhere in your PATH and make it executable:sh 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:sh echo 'OPENROUTER_API_KEY=your_openrouter_api_key_here' > ~/bin/.envReplaceyour_openrouter_api_key_herewith your actual OpenRouter API key.
Usage
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.
Safety
- Blocks dangerous commands (e.g.,
rm -rf /,mkfs, etc.). - Prompts for confirmation/edit before running anything.
Requirements
- Python 3
openaiandpython-dotenv(install withpip install -r requirements.txt)- macOS or Linux
- OpenRouter API key (get one at https://openrouter.ai/)
Log in or sign up for Devpost to join the conversation.