/config

Overview

The /config command opens the configuration dialog where you can view and modify Apex settings. All configuration is stored locally in ~/.pensar/config.json.

Usage

$/config

Configuration File

Apex stores all configuration at ~/.pensar/config.json. This includes:

  • AI provider API keys — configured via /providers
  • Selected model — configured via /models
  • Theme settings — configured via /themes
  • Auth tokens — configured via /login
  • Workspace info — workspace ID and slug from Pensar Console

Most configuration is managed through dedicated commands (/providers, /models, /themes, /login). The /config dialog provides a unified view of your current settings.

Default HTTP Headers

Default custom HTTP headers can be managed from the shell via pensar config headers. These defaults are snapshotted into every new session at create time — existing sessions are not retroactively updated. To mutate a running session, use the /headers command inside the operator dashboard.

CommandDescription
pensar config headers listShow defaults (sensitive values masked)
pensar config headers list --showShow defaults with values revealed
pensar config headers add "Name: Value"Add a header (errors on duplicate)
pensar config headers set "Name: Value"Add or overwrite a header
pensar config headers remove <Name>Remove a single header
pensar config headers clearRemove every header (asks confirmation)
pensar config headers import <file>Replace defaults from a JSON/Name:Value file
$pensar config headers set "X-API-Key: abc123"
$pensar config headers add "Authorization: Bearer $TOKEN"
$pensar config headers list

To skip the global snapshot for a single session, pass --no-global-headers to pensar pentest, pensar targeted-pentest, or /operator.