TheDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/usestrix/strix/llms.txt
Use this file to discover all available pages before exploring further.
strix command is the main entry point for running AI-powered penetration tests. You can scan web applications, GitHub repositories, local code, domains, and IP addresses.
Usage
Quick Examples
Options
Target to test. Can be:
- URL (e.g.,
https://example.com) - GitHub repository (e.g.,
https://github.com/user/repoorgit@github.com:user/repo.git) - Local directory path (e.g.,
./my-project) - Domain name (e.g.,
example.com) - IP address (e.g.,
192.168.1.42)
Custom instructions for the penetration test. Use this to:
- Focus on specific vulnerability types (e.g., “Focus on IDOR and XSS”)
- Specify testing approaches (e.g., “Perform thorough authentication testing”)
- Provide test credentials (e.g., “Use credentials: admin:password123”)
- Highlight areas of interest (e.g., “Check login API endpoint for security issues”)
--instruction-file.Path to a file containing detailed custom instructions for the penetration test.Use this when you have lengthy or complex instructions saved in a file.Example:
--instruction-file ./detailed_instructions.txtCannot be used with --instruction.Run in non-interactive mode (no TUI, exits on completion).By default, Strix runs in interactive mode with a text-based user interface (TUI). Use this flag for CI/CD pipelines or automated scanning.In non-interactive mode:
- No TUI is displayed
- Vulnerabilities are printed to stdout in real-time
- Process exits automatically when scan completes
- Exit code 2 is returned if vulnerabilities are found
Scan mode controlling depth and thoroughness.Options:
quick- Fast CI/CD checks with basic coveragestandard- Routine testing with balanced speed/depthdeep- Thorough security reviews (default)
Path to a custom config file (JSON) to use instead of
~/.strix/cli-config.json.This allows you to maintain multiple configuration profiles for different environments.Display the Strix version and exit.
Environment Variables
Strix requires certain environment variables to be configured. See the Configuration guide for details.Required
STRIX_LLM- Model name to use with litellm (e.g.,openai/gpt-4)
Optional
LLM_API_KEY- API key for the LLM provider (not needed for local models, Vertex AI, AWS, etc.)LLM_API_BASE- Custom API base URL for local models (e.g., Ollama, LMStudio)PERPLEXITY_API_KEY- API key for Perplexity AI web search (enables real-time research)STRIX_REASONING_EFFORT- Reasoning effort level:none,minimal,low,medium,high,xhigh(default:high)
Output
Strix creates a timestamped directory instrix_runs/ containing:
- Vulnerability reports in JSON and Markdown formats
- Tool execution logs
- Agent activity traces
- Scan metadata and statistics
Exit Codes
In non-interactive mode, Strix uses exit codes to indicate scan results:0- Scan completed successfully, no vulnerabilities found1- Error occurred during execution2- Scan completed successfully, vulnerabilities were found
See Also
- Interactive Mode - Using the TUI interface
- Non-Interactive Mode - Automation and CI/CD integration
- Examples - Common use cases and workflows