First, install SQLMap globally on your system:
# Kali/Debian/Ubuntu
sudo apt install sqlmap
# macOS
brew install sqlmap
# Or from source
git clone https://github.com/sqlmapproject/sqlmap.git
cd sqlmap
sudo python setup.py install
# Verify installation
sqlmap --version
# Clone the repository
git clone https://github.com/atiilla/sqlmap-ai.git
cd sqlmap-ai
# Install the package
pip install -e .
# Or install from PyPI
pip install sqlmap-ai
# Run installation check (creates config files)
sqlmap-ai --install-check
Choose one or more AI providers to use:
.env file:
GROQ_API_KEY=your_groq_api_key_here
.env file:
DEEPSEEK_API_KEY=your_deepseek_api_key_here
.env file:
OPENAI_API_KEY=your_openai_api_key_here
.env file:
ANTHROPIC_API_KEY=your_anthropic_api_key_here
ollama serve
ollama pull llama3.2
.env file:
ENABLE_OLLAMA=true
OLLAMA_MODEL=llama3.2
If using Ollama, you can select different models:
# List available models
sqlmap-ai --list-ollama-models
# Interactive model selection
sqlmap-ai --config-wizard
Popular models:
# Interactive setup
sqlmap-ai --config-wizard
This will:
# Check if everything is working
sqlmap-ai --check-providers
# List available Ollama models (if using Ollama)
sqlmap-ai --list-ollama-models
| Provider | Setup | Speed | Privacy | Cost |
|---|---|---|---|---|
| Groq | API Key | Fastest | Cloud | Free tier available |
| DeepSeek | API Key | Fast | Cloud | Affordable |
| OpenAI | API Key | Fast | Cloud | Pay per use |
| Anthropic | API Key | Fast | Cloud | Pay per use |
| Ollama | Local install | Fast | Local | Free |