Installation
Pensar Apex can be installed using multiple methods depending on your platform and preferences. Choose the installation method that best suits your workflow.Prerequisites
Before installing Pensar Apex, ensure you have:API Key
An API key from one of the supported AI providers:
- Anthropic (Recommended)
- OpenAI
- OpenRouter
- AWS Bedrock access
- Or a local vLLM server
After installation, run
pensar doctor to check for optional dependencies like nmap and install additional penetration testing tools.Installation Methods
- Quick Install (macOS/Linux)
- Homebrew (macOS/Linux)
- npm (Cross-platform)
- Windows (PowerShell)
The fastest way to install Pensar Apex on macOS and Linux:This script will:
- Detect your system architecture
- Download the appropriate binary
- Install it to
/usr/local/bin/pensar - Make it executable and add to PATH
What does the install script do?
What does the install script do?
The installation script:
- Detects your operating system and architecture (arm64/x64)
- Downloads the latest compiled binary from the release server
- Installs the binary to
/usr/local/bin/(requires sudo) - Sets executable permissions
- Verifies the installation by running
pensar version
Verify Installation
After installation, verify that Pensar Apex is installed correctly:Configuration
Set Up AI Provider API Key
Pensar Apex requires an AI provider API key to function. Set your API key as an environment variable:To make these environment variables persistent, add them to your shell configuration file (
~/.bashrc, ~/.zshrc, or ~/.profile).First Launch
On first launch, Pensar Apex will:- Display the Responsible Use Disclosure (press Enter to accept)
- If no API key is configured, route to the Provider Manager screen
- Create a configuration directory at
~/.pensar/
Post-Install Setup with pensar doctor
After installation, run the diagnostic tool to check your environment and install recommended dependencies:
What pensar doctor Checks
System Tools
System Tools
- nmap: Network scanning and port enumeration tool (highly recommended)
- Offers to install nmap automatically if a supported package manager is detected
AI Providers
AI Providers
Checks which AI provider API keys are configured:
- Anthropic (
ANTHROPIC_API_KEY) - OpenAI (
OPENAI_API_KEY) - OpenRouter (
OPENROUTER_API_KEY) - AWS Bedrock (
BEDROCK_API_KEYor IAM credentials) - vLLM local model (
LOCAL_MODEL_URL)
Installing nmap
Thepensar doctor command can automatically install nmap on supported systems:
Kali Linux Container (Recommended)
For the best pentesting experience, run Pensar Apex in the included Kali Linux container with all security tools preconfigured:Linux users: For comprehensive network scanning, consider using
network_mode: host in docker-compose.yml to allow the container direct access to your network interfaces.Upgrading Pensar Apex
To upgrade to the latest version, use the built-in upgrade command:upgrade command automatically detects your installation method and uses the appropriate upgrade mechanism:
- npm:
npm install -g @pensar/apex@latest - Homebrew:
brew upgrade pensarai/tap/apex - Binary: Re-downloads from
https://pensarai.com/install.sh
Manual upgrade methods
Manual upgrade methods
Depending on your installation method:npm:Homebrew:Binary (macOS/Linux):Windows (PowerShell):
Troubleshooting
Command not found: pensar
Command not found: pensar
The installation directory is not in your PATH.Solution:
- Check where pensar was installed:
- Add the directory to your PATH in
~/.bashrcor~/.zshrc: - Reload your shell configuration:
Permission denied during installation
Permission denied during installation
Insufficient permissions to install to system directories.Solution:
- Run installation with
sudo(be cautious) - Use npm with user-owned global directory
- Install via Homebrew which handles permissions automatically
No AI provider configured
No AI provider configured
Missing or incorrect API key configuration.Solution:
- Set your API key environment variable:
- Verify it’s set:
- Run
pensar doctorto confirm configuration
nmap not found
nmap not found
nmap is not installed on your system.Solution:
Run
pensar doctor and follow the prompts to install nmap automatically, or install manually:Next Steps
Quickstart Guide
Learn how to run your first penetration test with Pensar Apex

