Installation¶
Quick Installation (Recommended)¶
Smart-Shell is designed for easy installation with a single command that handles all dependencies and environment setup automatically.
Quick install (recommended for most users):
curl -sSL https://raw.githubusercontent.com/Lusan-sapkota/smart-shell/main/install.sh | bash
The installation script will:
- Check and install all required dependencies
- Install Smart-Shell using pipx (for better isolation)
- Create desktop entries for easy access
- Set up command completion for Bash and Zsh
- Apply fixes for common Python module path issues
- Automatically run the setup wizard to configure your API key
If you're behind a corporate firewall or have restricted internet access, you might need to manually install dependencies first:
pip install --user google-genai rich click pyyaml requests google-api-core
After installation, use Smart-Shell from any terminal:
smart-shell
CLI Commands¶
smart-shell— Start Smart-Shell in interactive modesmart-shell run <prompt>— Convert natural language to Bash/Zsh commandssmart-shell --interactiveor-i— Start interactive mode explicitlysmart-shell setup— Configure API key and settingssmart-shell models— List available AI modelssmart-shell history— Show command historysmart-shell --helporsmart-shell help— Show CLI helpsmart-shell --versionorsmart-shell version— Show version informationsmart-shell --dry-runor-d— Show command without executingsmart-shell --yesor-y— Auto-confirm all prompts (for automation)smart-shell --model <name>or-m <name>— Use specific AI model
Manual Installation Options¶
The install script offers three installation methods:
- System-wide installation (requires sudo)
- Installs Smart-Shell for all users on the system
-
Requires administrator privileges
-
User installation (recommended)
- Uses pipx for isolated installation in your user directory
- No administrator privileges required
-
Automatically installed if pipx is not found
-
Virtual environment (for development)
- Creates a dedicated virtual environment
- Useful for development or testing
For development setup, see Development.
For troubleshooting and more, see the FAQ.
Dependencies¶
Smart-Shell requires the following Python packages:
google-genai- Google's Gemini AI SDKrich- For beautiful terminal formattingclick- For command-line interfacepyyaml- For configuration managementrequests- For API communicationgoogle-api-core- Core Google API functionality
The installation script handles all these dependencies automatically.