Configuration essentials
Find settings layers, save scopes, and the full configuration reference.
Prefer the Settings Center
Use /settings, desktop Settings, or:
Shell
pancode configure --settingsConfigure and desktop Settings share eight sections: Connections, Chat, Fleet, Context & Memory, Permissions & Limits, Appearance, Integrations, and Advanced. Terminal /settings groups the same controls into its own areas and lists the settings people change; every key still works in settings.yaml. The guided controls help you select a discovered model instead of typing a model ID. See Connect a model for the walkthrough.
Know where a change is saved
| Layer | File or scope |
|---|---|
| User defaults | settings.yaml in PanCode's configuration directory |
| Shared project settings | .pancode/settings.yaml |
| Local project settings | .pancode/settings.local.yaml |
| Active session | The session/project/global choices offered by supported terminal controls |
Find the resolved locations on your machine:
Shell
pancode paths --jsonsafety.sandbox (auto, required, off) controls the OS sandbox for dispatched native workers' commands and for your own session's shell commands at default. safety.sandboxNetwork lets sandboxed worker commands reach the network; the session sandbox keeps network access. Objects merge by key; arrays and scalars replace the lower layer. Credential-bearing keys in project settings are ignored. Project saves require trusted project settings.
Saved routes seed a new session. A settings write from another process does not redirect a conversation already running; use that session's model controls.
Look up an exact key
The full reference covers supported settings keys, defaults, CLI flags, project file ownership, and MCP trust. Use Read the full guide above or ask PanCode to retrieve the relevant bundled documentation before editing YAML.
Settings validation is strict. For an older installation, pancode upgrade applies the registered migration and preserves a version-1 backup. For connection and installation diagnostics, use doctor.
A session started in a repository subdirectory reads the repository's .pancode/ settings, agents, skills, rules, hooks, and MCP servers. PanCode writes an allow-list .pancode/.gitignore, so authored files can be committed while generated files stay out. A blanket .pancode/ rule in your own .gitignore still hides them.