Getting Started
Prerequisites
Before installing Apex, you’ll need to install the required dependencies:
Install Bun
Bun is a fast JavaScript runtime required by Apex. Install it using one of the following methods:
After installation, restart your terminal to ensure bun is available in your
PATH.
Install nmap
nmap is required for network scanning functionality:
Installation
Once the prerequisites are installed, install Apex globally using npm:
Apex is now installed! You can run it from anywhere by typing pensar in your
terminal.
Configuration
Before running Apex, you need to configure your AI provider API key. Apex supports multiple providers, but Anthropic is recommended for best results.
Anthropic (Recommended)
Set your Anthropic API key:
Get your API key from console.anthropic.com.
Anthropic models (especially Claude Sonnet) provide the best performance for penetration testing tasks.
OpenAI
AWS Bedrock
Configure AWS credentials:
Ensure you have access to Anthropic Claude models in AWS Bedrock.
vLLM (Local Models)
Set your local vLLM endpoint:
Then configure the model name in Apex using the /models command.
Tip: Add these exports to your shell profile (.bashrc, .zshrc, etc.)
to persist them across terminal sessions.
Running Apex
Launch Apex by running:
This will start the interactive terminal interface where you can access all Apex commands.
Using Kali Linux Container (Optional)
For best performance and maximum compatibility with security tools, we recommend running Apex in the included Kali Linux container:
Linux Users: Consider using network_mode: host in docker-compose.yml
for comprehensive network scanning capabilities.
First Steps
Now that Apex is installed and configured, try these commands:
View all available commands and their descriptions.
Configure which AI model to use for testing.
View and modify Apex configuration settings.
Start a quick penetration test on a target.
Next Steps
Learn about all available commands in Apex.
Run your first quick penetration test.
Perform a comprehensive security assessment.
Learn how to save and resume testing sessions.
Need Help?
If you encounter any issues or have questions, reach out to our support team at team@pensarai.com.