This VS Code extension helps you generate and execute shell commands using natural language descriptions. It integrates with OpenAI's API to convert your task descriptions into executable shell commands.
- Convert natural language tasks to shell commands using AI
- Execute the generated commands directly in VS Code
- Copy generated commands to clipboard
- View detailed output in a dedicated output channel
- An OpenAI API key
This extension contributes the following settings:
shellCommandAssistant.openaiApiKey: Your OpenAI API keyshellCommandAssistant.defaultModel: Default OpenAI model to use (gpt-4o-mini, gpt-4o, or gpt-3.5-turbo)
- Press
Ctrl+Shift+P(orCmd+Shift+Pon Mac) to open the Command Palette - Type "Shell Command Assistant: Run Task" and press Enter
- Enter a natural language description of what you want to do (e.g., "find all JavaScript files modified in the last week")
- Review the generated command
- Choose to execute it or copy it to your clipboard
- Install the extension
- Open settings (
Ctrl+,orCmd+,on Mac) - Search for "Shell Command Assistant"
- Add your OpenAI API key
- "List all files in the current directory"
- "Find all JavaScript files that contain the word 'function'"
- "Show disk usage in human-readable format"
- "Create a backup of the current project"