Skip to content

Configuration ​

Last updated Nov 27, 2026 View as Markdown

The configuration holds your choices about how agents run:

PartWhat it holds
Targetsthe harness, provider, model, effort, and login that runs an agent
Secretswhere each secret value lives, such as a 1Password item
MCP configurationsthe values an agent's MCP servers need, such as a token
Agent settingsone 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.

~/.config/pandra/config.toml
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)
...

The config.toml reference lists every key.

Released under the Apache License 2.0