Skip to main content
The 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:
  1. Responsible Use Disclosure: Review and accept ethical hacking guidelines
  2. Provider Configuration: Set up AI provider API keys if not already configured

Main Interface

The TUI offers multiple screens accessible via keyboard shortcuts:
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.

Chat Interface

Configuration Files

The TUI stores configuration in:

Examples

Launch TUI

Pensar TUI Main Screen

First-Time Setup Flow

After accepting, if no AI provider is configured:

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:
  1. Ensure your terminal supports 256 colors
  2. Try a different theme: Ctrl+T in the TUI
  3. Resize your terminal window (minimum 80x24)

Performance Issues

For slow TUI performance:

Environment Variables

The TUI respects these environment variables:
string
Anthropic API key for Claude models (recommended)
string
OpenAI API key for GPT models
string
OpenRouter API key for multi-model access
flag
Disable colored output (for accessibility)

Advanced Configuration

Custom Themes

The TUI supports multiple themes:
  • Apex (default)
  • Catppuccin
  • Dracula
  • Tokyo Night
  • Nord
  • Gruvbox
  • And more…
Change themes via Ctrl+T or in the Config menu.

Keyboard Customization

Edit ~/.pensar/config.json to customize shortcuts:

Next Steps

Getting Started

Complete setup guide for first-time users

Workflows

Learn about pentest workflows and methodologies