Install Locally
Get Rico running on your local machine in minutes. Follow the steps below to set up your own instance for full-featured API security scanning.
Prerequisites
- Python 3.9 or higher
- pip package manager
- Git (to clone the repository)
- An OpenAI API key (for AI-powered analysis)
Installation Steps
Clone the Repository
Download the Rico source code from GitHub.
git clone https://github.com/your-org/rico.git cd rico
Create a Virtual Environment
Isolate Rico's dependencies from your system Python.
python -m venv venv source venv/bin/activate # On Windows: venv\Scripts\activate
Install Dependencies
Install all required Python packages.
pip install -r requirements.txt
Configure Environment Variables
Set up your API key and configuration. Create a .env file in the project root.
# .env OPENAI_API_KEY=your-openai-api-key-here RICO_LOG_LEVEL=info RICO_MAX_DEPTH=3 RICO_TIMEOUT=30
Verify the Installation
Run Rico with the help command to verify everything is working.
python -m rico --help # Expected output: # Usage: rico [OPTIONS] COMMAND [ARGS]... # # Rico - AI-Driven API Security Scanner # # Commands: # scan Discover and classify API endpoints # attack Run AI-planned security tests # report Generate security reports # call Make targeted API requests
Run Your First Scan
Test Rico against a sample API to make sure it works end-to-end.
python -m rico scan https://jsonplaceholder.typicode.com # Rico will discover endpoints, classify them, # and output a structured JSON report.
Troubleshooting
ModuleNotFoundError when running Rico
Make sure your virtual environment is activated and all dependencies are installed with pip install -r requirements.txt.
OpenAI API key errors
Double-check your .env file has the correct OPENAI_API_KEY value. Ensure the key is valid and has sufficient credits.
Connection timeouts during scans
Increase the RICO_TIMEOUT value in your .env file. The default is 30 seconds per request.