Torna agli aggiornamenti
New releaseAug 20, 2026

apex v2.3.0-canary.52dcca8a

Test di sicurezza offensiva basati su AI tramite agenti autonomi, direttamente nel tuo terminale.

Condividi

Pensar Apex

AI-powered penetration testing using autonomous agents — directly in your terminal. Run blackbox and whitebox pentests that explore, reason, and surface real vulnerabilities.

Want to run from the cloud or integrate it with your CI/CD? See Pensar Console.

npm version npm prerelease version Apache 2.0 License Documentation Discord

Use Cases

Developers

  • Run /pentest before merging a PR — catch vulnerabilities as naturally as running tests
  • Get actionable findings with severity scores, evidence, and suggested fixes — no security background needed
  • Integrate into CI/CD via headless CLI commands or Pensar Console

Security Engineers

  • Deploy agent-driven swarm testing across large attack surfaces
  • Use /operator mode for manual investigation, exploit chaining, and validation
  • Automate repetitive testing workflows with persistent memory that accumulates across engagements
  • Scale across teams and projects through Pensar Console

Installation

MethodCommand
Quick Install (macOS/Linux)curl -fsSL https://pensarai.com/install.sh | bash
Homebrewbrew tap pensarai/tap && brew install apex
npmnpm install -g @pensar/apex
Windows (PowerShell)irm https://www.pensarai.com/apex.ps1 | iex

Usage

Open the Apex TUI:

pensar

Herdr

Apex automatically reports its state when launched inside Herdr. The sidebar shows working during a turn, blocked when approval, plan review, or answers are needed, and idle when Apex is ready for input. Terminal-attached CLI agent commands also report their activity. No plugin or additional Apex configuration is required.

Herdr 0.9.2 or later can restore the current conversation after a server restart. Keep pensar on your PATH; Apex supplies a resume command with the session ID, active model, and obfuscation setting. The saved session restores its operator mode and approval settings. Restored sessions wait for your next prompt.

You can also reopen a session directly:

pensar --resume <session-id>
pensar --resume <session-id> --model <model-id>

State reporting and release also work with older Herdr versions. Reports run in the background with a short timeout, and Herdr failures do not interrupt Apex.

Headless CLI

Run pentests without the TUI for scripting, CI, or evalgate integration:

# Basic pentest
pensar pentest --target https://example.com

# With extended thinking and task-driven mode
pensar pentest --target https://example.com --extended-thinking --task-driven

# Whitebox (with source code access)
pensar pentest --target https://example.com --cwd ./my-app

# Targeted pentest with specific objectives
pensar targeted-pentest --target https://example.com --objective "Test authentication bypass"
FlagCommandDescription
--target <url>pentest, targeted-pentestTarget URL (required)
--cwd <path>pentestSource code path for whitebox mode
--mode <mode>pentestexfil for pivoting and flag extraction
--model <model>pentest, targeted-pentestAI model (default: auto-selected)
--extended-thinkingpentestEnable extended thinking for supported models
--task-drivenpentestEnable task-driven architecture (experimental)
--prompt <text|@file>pentestCustom guidance for the agent
--threat-model <text|@file>pentestThreat model to guide testing
--objective <text>targeted-pentestTesting objective (repeatable)

Hoonify inference

Connect Hoonify in /providers or set HOONIFY_API_KEY, then select a discovered model in /models. Headless commands accept --model-provider hoonify --model <catalog-model-id>. See Hoonify setup for model discovery, token budgets, and live checks.

Inference.net

Connect Inference.net in /providers or set INFERENCE_API_KEY, then select DeepSeek V4.1 Flash 1017 Cyber in /models. This is the only Inference.net model currently available in Apex. Headless commands accept --model inference:deepseek-v4.1-flash-1017-cyber.

Your team needs approved model access before inference will succeed; saving a valid API key does not grant model access. Apex uses the provider's default reasoning behavior and the catalog limits of 1,040,000 context tokens and 393,216 output tokens.

Custom inference endpoints

Bring an OpenAI-compatible endpoint and bearer token through customProviders configuration or the APEX_CUSTOM_PROVIDERS worker environment variable. Select it with --model-provider <id> --model <model>, or choose its declared models in the operator's /models picker. See custom inference setup for GLM settings, headless job configuration, and a live connection test.

Logging

Apex routes diagnostic/operational logging through a centralized structured logger (src/core/logger). It writes one-line JSON to stderr when output is not a TTY — keeping it separate from the program's stdout and easy to ship to a log pipeline (e.g. CloudWatch) — and pretty, colorized output in an interactive terminal. User-facing CLI/TUI output stays on stdout.

Set the level (most → least verbose: debug < info < warn < error, default info):

pensar pentest --target https://example.com --log-level debug   # or --verbose / --quiet
PENSAR_LOG_LEVEL=debug pensar ...                                # via environment
PENSAR_DEBUG=1 pensar ...                                        # back-compat alias for debug

Categorie