pensar doctor

Overview

The pensar doctor command performs a health check on your Pensar Apex installation. It verifies that optional dependencies are installed and offers to install missing ones automatically.

Usage

$pensar doctor

What It Checks

System Tools

  • nmap — network scanner used for port scanning and service detection. If nmap is not found, doctor offers to install it via your system package manager (Homebrew, apt, dnf, or pacman).

AI Providers

Checks which AI provider API keys are configured via environment variables:

ProviderEnvironment Variable
AnthropicANTHROPIC_API_KEY
OpenAIOPENAI_API_KEY
GoogleGOOGLE_GENERATIVE_AI_API_KEY
OpenRouterOPENROUTER_API_KEY
AWS BedrockBEDROCK_API_KEY
AWS IAMAWS_ACCESS_KEY_ID
vLLMLOCAL_MODEL_URL

Example Output

Pensar Doctor
=============
System Tools
------------
✓ nmap (Nmap 7.94)
AI Providers
------------
✓ Anthropic
· OpenAI
· Google
· OpenRouter
· AWS Bedrock
· AWS IAM
· vLLM (local)

API keys configured via /providers in the TUI are stored in ~/.pensar/config.json and are not detected by pensar doctor. The doctor command only checks environment variables.