Quick Start¶
Get started with Ask-Shell in 5 minutes!
1. Configure API Key¶
Before using Ask-Shell, you need to configure your OpenAI API Key.
Using .env file (Recommended)¶
# Copy the environment template
cp .env.example .env
# Edit .env and add your API key
# OPENAI_API_KEY=your-api-key-here
Using environment variable¶
2. Run Your First Task¶
Simple Command¶
Try a simple file listing task:
Ask-Shell will:
- 💭 Analyze your request
- 🔨 Generate the appropriate command
- ⚠️ Ask for confirmation (showing the command)
- ✅ Execute and show results
Complex Multi-Step Task¶
This is where Ask-Shell shines:
Watch as Ask-Shell:
- Step 1: Analyzes current directory structure
- Step 2: Creates necessary folders
- Step 3: Moves files to appropriate locations
- Step 4: Verifies the organization
- ✓ Complete: Task finished!
3. Try Different Modes¶
Interactive Mode¶
Stay in a continuous session:
Ask-Shell > list files in current directory
[... executes ...]
Ask-Shell > create a test file named hello.txt
[... executes ...]
Ask-Shell > exit
Auto Mode¶
Skip confirmations for faster execution:
Warning
Use auto mode carefully - it will execute commands without asking for confirmation!
Demo Mode¶
Try Ask-Shell without an API Key:
The AI will be simulated, showing you the interface and workflow.
4. Working Directory¶
Execute tasks in a different directory:
Example Workflows¶
Development Tasks¶
# Find and organize
ask "find all .log files older than 7 days and move to archive"
# Git workflow
ask "commit all changes with a meaningful message and push to origin"
# Code analysis
ask "find all TODO comments in Python files and create a summary"
System Maintenance¶
# Disk cleanup
ask "find and list all files larger than 100MB"
# Process management
ask "show all running Python processes with their memory usage"
# Backup
ask "create a timestamped backup of this directory"
File Organization¶
# Sort by type
ask "organize downloads folder by file type"
# Cleanup
ask "find and remove all .pyc files in this project"
# Search
ask "find all files containing 'error' in their content"
Understanding the Output¶
Ask-Shell provides rich visual feedback:
- 💭 Thinking Process - See the AI's reasoning in real-time
- ⚙️ Command Preview - Review the command before execution
- ⚠️ Safety Warnings - Get alerted about dangerous operations
- ✨ Syntax Highlighting - Commands are beautifully formatted
- 📊 Results - Clear output from command execution
Safety Features¶
Ask-Shell protects you with:
- 🛡️ AI-powered danger detection - Understands context
- 🚫 Command blacklist - Blocks catastrophic commands
- ✋ Interactive confirmation - You always have final say
- ✏️ Command editing - Modify before execution
Next Steps¶
- Learn about configuration options
- Explore advanced features
- See more examples
- Understand safety features
Pro Tips¶
Complex Tasks
The more complex your task, the more Ask-Shell's advantages shine! Don't hesitate to describe multi-step workflows.
Natural Language
Write naturally! "I need to..." works just as well as "do this..."
Context Matters
Ask-Shell remembers the conversation in interactive mode - you can reference previous commands!