pensar command (with no subcommand) launches the interactive Terminal UI (TUI), providing a full visual interface for penetration testing workflows.
Syntax
Description
The TUI provides an interactive environment for:- Guided Pentesting: Step-by-step workflows for blackbox and whitebox testing
- Session Management: View, resume, and organize past pentest sessions
- Real-time Chat: Interact with AI agents during security assessments
- Visual Dashboard: Monitor agent progress, findings, and system status
- Configuration: Manage AI providers, models, and tool settings
Features
First-Time Setup
On first launch, the TUI guides you through:- Responsible Use Disclosure: Review and accept ethical hacking guidelines
- Provider Configuration: Set up AI provider API keys if not already configured
Main Interface
The TUI offers multiple screens accessible via keyboard shortcuts:- Chat
- Sessions
- Operator Dashboard
- Configuration
Interactive chat interface with AI security agents. Send messages, review findings, and collaborate on vulnerability discovery.Key Features:
- Real-time streaming responses
- Tool call visualization
- Finding annotations
- Session context preservation
Keyboard Shortcuts
Press
Ctrl+P at any time to see all available shortcuts.Global Navigation
| Shortcut | Action |
|---|---|
Ctrl+P | Open command palette |
Ctrl+N | New chat session |
Ctrl+S | View sessions |
Ctrl+T | Toggle theme |
Ctrl+C | Exit / Cancel |
Esc | Close dialog / Go back |
Chat Interface
| Shortcut | Action |
|---|---|
Enter | Send message |
Shift+Enter | New line |
↑ / ↓ | Navigate message history |
Ctrl+L | Clear chat |
Configuration Files
The TUI stores configuration in:Examples
Launch TUI

First-Time Setup Flow
Normal TUI Session
Use Cases
1. Interactive Pentest Learning
Start conversations with AI agents to learn about:- Vulnerability discovery techniques
- Exploitation methodologies
- Security best practices
2. Manual Vulnerability Research
Use the TUI to manually explore targets with AI assistance:3. Session Review and Reporting
Review past pentest findings:Troubleshooting
TUI Won’t Launch
Display Issues
If you experience rendering problems:- Ensure your terminal supports 256 colors
- Try a different theme:
Ctrl+Tin the TUI - Resize your terminal window (minimum 80x24)
Performance Issues
For slow TUI performance:Environment Variables
The TUI respects these environment variables:Anthropic API key for Claude models (recommended)
OpenAI API key for GPT models
OpenRouter API key for multi-model access
Disable colored output (for accessibility)
Advanced Configuration
Custom Themes
The TUI supports multiple themes:- Apex (default)
- Catppuccin
- Dracula
- Tokyo Night
- Nord
- Gruvbox
- And more…
Ctrl+T or in the Config menu.
Keyboard Customization
Edit~/.pensar/config.json to customize shortcuts:
Related Commands
- pentest - Run automated pentests from CLI
- targeted-pentest - Focused vulnerability testing
- doctor - Check system configuration
Next Steps
Getting Started
Complete setup guide for first-time users
Workflows
Learn about pentest workflows and methodologies

