> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.pensar.dev/apex/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.pensar.dev/apex/_mcp/server.

# /config

> View and manage Apex configuration settings

## 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

```bash
/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

> **Info**
>
> 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.

| Command                                   | Description                                    |
| ----------------------------------------- | ---------------------------------------------- |
| `pensar config headers list`              | Show defaults (sensitive values masked)        |
| `pensar config headers list --show`       | Show 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 clear`             | Remove every header (asks confirmation)        |
| `pensar config headers import <file>`     | Replace defaults from a JSON/`Name:Value` file |

```bash
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`.

## Related Commands

#### [/providers](/apex/tui-slash-commands/providers)

Configure AI provider API keys

#### [/models](/apex/tui-slash-commands/models)

Select AI model

#### [/themes](/apex/tui-slash-commands/themes)

Customize visual appearance

#### [/login](/apex/tui-slash-commands/login)

Connect to Pensar Console