---
url: /configure.md
---
# Configuration

The configuration holds your choices about how agents run:

| Part | What it holds |
| --- | --- |
| [Targets](/configure/targets.md) | the harness, provider, model, effort, and login that runs an agent |
| [Secrets](/secrets.md) | where each secret value lives, such as a 1Password item |
| [MCP configurations](/mcp-servers/allowing.md) | the values an agent's MCP servers need, such as a token |
| [Agent settings](/configure/agent-settings.md) | one agent's target, permission mode, and environment variables |

`pandra run` works without it; on a terminal, Pandra asks for what an agent still needs and offers to save your answers here. Pandra reads one file, `~/.config/pandra/config.toml` (`$XDG_CONFIG_HOME/pandra/config.toml` when that variable is set, also on macOS), and never a file in a project, so cloning a repository never changes which model runs or which credentials are used. `--config-file FILE` (or `PANDRA_CONFIG_FILE`) reads another file, and `--no-config` reads none.

```toml
# ~/.config/pandra/config.toml
[defaults]
target = "claude"

[targets.claude]
harness = "claude-code"

[targets.claude-work]
harness = "claude-code"
model = "claude-opus-5-5"
env.CLAUDE_CODE_OAUTH_TOKEN = { secret = "claude-work-token" }

[harnesses.claude-code]               # written by `pandra harness use claude-code@2.1.317`
version = "2.1.317"

[secrets.slack-token]
1password = "op://Work/Slack/token"

[secrets.claude-work-token]
keychain = { service = "pandra", account = "claude-work-token" }

[mcp.slack-work]
inputs.tenant-id = "T0123"
inputs.token = { secret = "slack-token" }

[agents."github.com/acme/notifier"]
target = "claude-work"
env.SLACK_CHANNEL = "alerts"
mcp.slack = "slack-work"
```

`pandra config show` lists each value with the line that set it, then the defaults the file leaves out:

```text
$ pandra config show
defaults.target = "claude"                                     config.toml:3
targets.claude.harness = "claude-code"                         config.toml:6
targets.claude-work.model = "claude-opus-5-5"                  config.toml:10
...
agents."github.com/acme/notifier".mcp.slack = "slack-work"     config.toml:29
defaults.permission-mode = "auto"                              (default)
nested.max-depth = 1                                           (default)
...
```

* [Targets and harness settings](/configure/targets.md): choose the harness, model, and login, and set options for each harness.
* [Agent settings](/configure/agent-settings.md): one agent's target, permission mode, and variables; editing the file; and which setting wins.
* [Instructions and skills](/configure/instructions-and-skills.md): add Pandra-level instructions and skills, which you keep beside `config.toml`, to the agents you run.
* [Setting up an agent](/configure/setup.md): configure everything one agent needs in one step.

The [`config.toml` reference](/reference/config-toml.md) lists every key.
