Command Context: This guide uses Terminal Commands for installation and setup. These run in your terminal/command prompt, not inside Gemini CLI.
SuperGemini installs in under 2 minutes with an interactive installer. The process involves installing the Python package and running the component installer to configure your Gemini CLI environment.
Method 1: pipx (Recommended for CLI tools)
# Install with pipx for isolated environment
pipx install SuperGemini
SuperGemini installMethod 1b: pip (Traditional Python)
# Install with pip (may cause dependency conflicts)
pip install SuperGemini
SuperGemini installMethod 2: NPM (Cross-platform)
npm install -g supergemini
SuperGemini installMethod 3: Development
git clone https://github.com/SuperGemini-Org/SuperGemini_Framework.git
cd SuperGemini_Framework
pip install -e ".[dev]"
SuperGemini install --dry-run| Command Type | Where to Run | Format | Example |
|---|---|---|---|
| π₯οΈ Installation | Terminal/CMD | SuperGemini [command] |
SuperGemini install |
| π§ Configuration | Terminal/CMD | python3 -m SuperGemini |
python3 -m SuperGemini --version |
| π¬ Development | Gemini CLI | /sg:[command] |
/sg:analyze "idea" |
| β‘ Workflow | Gemini CLI | /sg:[command] --flags |
/sg:test --coverage |
Important: Installation commands run in your terminal. Once installed, you'll use
/sg:commands inside Gemini CLI for development tasks.
What Gets Installed:
- 18 slash commands (/sg:*) for workflow automation
- 13 specialized AI agents with domain expertise
- 5 behavioral modes for different contexts
- 6 MCP server configurations for enhanced capabilities
- Core instruction files in ~/.gemini directory
Dry-run Preview:
SuperGemini install --dry-run # Preview changes without installingRequired:
- Python 3.8+ with pip
- Gemini CLI installed and working
- 50MB free space for components
Optional but Recommended:
- Node.js 16+ (for MCP servers like Context7, Magic)
- Git (for version control integration)
- 1GB RAM for optimal performance
Run these commands to verify your system is ready:
# Verify Python (should be 3.8+)
python3 --version
# Verify Gemini CLI availability
gemini --version
# Optional: Check Node.js for MCP servers
node --version
# Check available disk space
df -h ~If any checks fail, see Prerequisites Setup below.
Node.js Installation:
# Linux (Ubuntu/Debian)
curl -fsSL https://deb.nodesource.com/setup_lts.x | sudo -E bash -
sudo apt-get install -y nodejs
# macOS
brew install node
# Windows
winget install OpenJS.NodeJS
# Or download from https://nodejs.org/Choose Your Preferred Method:
Python Users (Recommended: pipx):
# For CLI tools - isolated environment (recommended)
pipx install SuperGemini
# Traditional installation
pip install SuperGeminiJavaScript/Node.js Users:
npm install -g supergeminiDevelopment/Contributors:
git clone https://github.com/SuperGemini-Org/SuperGemini_Framework.git
cd SuperGemini_Framework
pip install -e ".[dev]"Interactive Installation (Default):
SuperGemini installThe installer will:
- Detect your system configuration
- Show available components with descriptions
- Let you select which components to install
- Configure MCP servers if desired
- Create backups before making changes
Choose your installation type:
# π Express Installation (Recommended for most users)
SuperGemini install --yes # Interactive setup with auto-confirm
# π― Minimal Installation (Fastest - Core features only)
SuperGemini install --profile minimal --yes
# πΌ Standard Installation (Balanced - Core + Commands + Modes)
SuperGemini install --profile standard --yes
# π οΈ Full Installation (Complete - All features including MCP servers)
SuperGemini install --profile full --yes For specific needs:
# Preview without installing
SuperGemini install --dry-run
# Custom component selection
SuperGemini install --components core mcp modes
# Custom installation directory
SuperGemini install --install-dir /custom/path
# Speed optimizations (skip checks)
SuperGemini install --skip-validation --no-backup --yesInstallation Steps:
- System Check - Validates Python, Gemini CLI, permissions
- Component Discovery - Scans available components and dependencies
- User Selection - Interactive menu for component choices
- Backup Creation - Saves existing ~/.gemini configuration
- File Installation - Copies framework files with merge logic
- MCP Configuration - Sets up .gemini.json for selected servers
- Verification - Tests installation and provides next steps
Progress Indicators:
- β Step completion checkmarks
- π Real-time progress bars for file operations
β οΈ Warnings for potential issues- π Summary statistics (files installed, space used)
Verify Installation:
# Check SuperGemini version
SuperGemini --version
# List installed components
SuperGemini install --list-components
# Test basic functionality
echo "Test analysis" | gemini
# Then try: /sg:analyze README.md
# Verify MCP servers (if installed)
ls ~/.gemini/.gemini.jsonExpected Results:
- β Version number displays correctly
- β Components list shows installed items
- β Slash commands available in Gemini CLI
- β MCP servers connect successfully
Files in ~/.gemini:
~/.gemini/
βββ GEMINI.md # Main instruction file with @imports
βββ FLAGS.md # Behavioral flags system
βββ RULES.md # Development rules
βββ PRINCIPLES.md # Engineering principles
βββ MCP_*.md # MCP server instructions
βββ MODE_*.md # Behavioral modes
βββ .gemini.json # MCP server configurations
βββ [your files] # Preserved customizations
Component Breakdown:
- Core: Essential framework files and behavioral instructions
- Commands: 18 slash commands for workflow automation
- Modes: 5 behavioral modes for different contexts
- Agents: 13 specialized AI personas
- MCP: Configuration for 6 MCP servers
- MCP Docs: Documentation for MCP server usage
Try These Commands:
# Interactive requirements discovery
/sg:analyze "mobile app idea"
# Analyze existing code
/sg:analyze src/
# Generate implementation workflow
/sg:workflow "user authentication system"
# Get command help
/sg:indexLearning Path:
- Start with
/sg:analyzefor project discovery - Use
/sg:analyzeto understand existing code - Try
/sg:implementfor feature development - Explore
/sg:indexfor command discovery
Update SuperGemini:
# Update core package
pip install --upgrade SuperGemini
# or: npm update -g supergemini
# Update components
SuperGemini update
# Update specific components
SuperGemini install --components mcp modes --forceVersion Management:
- Updates preserve user customizations
- New components available via
SuperGemini install --list-components - Selective updates possible for individual components
Automatic Backups:
- Created before every installation/update
- Stored in ~/.gemini.backup.YYYYMMDD_HHMMSS
- Include all customizations and configurations
Manual Backup Management:
# Create backup
SuperGemini backup --create
# List available backups
SuperGemini backup --list
# Restore from backup
SuperGemini backup --restore ~/.gemini.backup.20241201_143022
# Manual backup (alternative)
cp -r ~/.gemini ~/.gemini.backup.manualComplete Removal (Two-Step Process):
SuperGemini requires a two-step uninstall process for complete removal:
# Step 1: Remove SuperGemini components from ~/.gemini
SuperGemini uninstall
# Step 2: Remove the Python/npm package itself
pip uninstall SuperGemini
# or: npm uninstall -g supergemini
β οΈ Why Two Steps?
- Step 1 removes framework files from your ~/.gemini directory while preserving your personal files
- Step 2 removes the SuperGemini command-line tool itself
- This design prevents accidental deletion of user customizations
Interactive Options:
# Interactive component selection
SuperGemini uninstall # Choose what to remove
# Complete removal (all components)
SuperGemini uninstall --complete # Remove all SuperGemini files
# Preserve specific data
SuperGemini uninstall --keep-backups # Keep backup files
SuperGemini uninstall --keep-logs # Keep log files
SuperGemini uninstall --keep-settings # Keep user settingsWhat Gets Preserved:
- β Your custom GEMINI.md content
- β Personal configuration files
- β Project-specific customizations
- β Created backups (unless --complete used)
- β Other tools' files in ~/.gemini
Missing Python?
# Linux (Ubuntu/Debian)
sudo apt update && sudo apt install python3 python3-pip
# macOS
brew install python3
# Windows
# Download from https://python.org/downloads/
# Or use winget
winget install pythonMissing Gemini CLI?
- Visit https://gemini.ai/code for installation instructions
- SuperGemini enhances Gemini CLI, so you need it first
MCP Server Requirements: Some MCP servers require Node.js for optimal functionality:
- Context7: Library documentation lookup
- Magic: UI component generation (requires API key)
- Sequential: Advanced reasoning
- Playwright: Browser automation
- Morphllm: Code transformations (requires API key)
- Serena: Project memory (Python-based)
Install Node.js 16+ for full MCP capabilities.
Common Issues:
Permission Denied:
# Linux/macOS: Use --user flag
pip install --user SuperGemini
# Or fix permissions
sudo chown -R $USER ~/.geminiPython Version Issues:
# Verify Python 3.8+
python3 --version
# Use specific Python version
python3.9 -m pip install SuperGeminiGemini CLI Not Found:
- Install Gemini CLI from https://gemini.ai/code
- Verify with:
gemini --version - Check PATH configuration
Get Help:
- GitHub Issues: https://github.com/SuperGemini-Org/SuperGemini_Framework/issues
- Include: OS, Python version, error message, steps to reproduce
Custom Installation Directory:
# Install to custom location
SuperGemini install --install-dir /path/to/custom/gemini
# Set environment variable
export GEMINI_CONFIG_DIR=/path/to/custom/gemini
SuperGemini installDevelopment Setup:
# Clone repository
git clone https://github.com/SuperGemini-Org/SuperGemini_Framework.git
cd SuperGemini_Framework
# Create virtual environment
python -m venv venv
source venv/bin/activate # Linux/macOS
venv\Scripts\activate # Windows
# Install in development mode
pip install -e ".[dev]"
# Run tests
SuperGemini install --dry-run
python scripts/validate_pypi_ready.pyRecommended Next Steps:
- Learn Commands: Start with Commands Guide
- Try Examples: Explore Examples Cookbook
- Configure MCP: Set up MCP Servers
- Understand Modes: Read Behavioral Modes
- Join Community: Follow development on GitHub
Essential Guides:
- π Quick Start Guide - 5-minute setup
- π§ Commands Reference - All 18 commands
- π§ Best Practices - Optimization tips
- π Troubleshooting - Problem solving
Installation Summary:
- Time: 2-5 minutes typical installation
- Space: 50MB for full installation
- Requirements: Python 3.8+, Gemini CLI, 1GB RAM recommended
- Platform: Linux, macOS, Windows supported
- Usage: Immediate access to 21 commands and 6 behavioral modes
What's Next: Your Gemini CLI now has enhanced capabilities. Try /sg:analyze for your first SuperGemini experience!
Documentation Roadmap:
Beginner (π± Start Here)
- Quick Start Guide - 5-minute setup
- Commands Reference - Basic usage
Intermediate (πΏ Growing)
- Behavioral Modes - Context optimization
- MCP Servers - Enhanced capabilities
- Examples Cookbook - Practical patterns
Advanced (π² Expert)
- Technical Architecture - System design
- Contributing Code - Development
- Best Practices - Optimization strategies