Artifact efc17aa3df9323fd536925ee74bed682f4dbb1d85300bff986a72d299c59294d:
- File
docs/reference/settings.md
— part of check-in
[bcb82b941e]
at
2026-11-23 11:55:36
on branch keysource
— Keep the credential store's key in the Keychain or a key file, not behind a passphrase
A new store gets a random 32-byte master key kept in the login Keychain (macOS, /usr/bin/security run as a child with the command on stdin) or the keyring (secret-tool), else ~/.pic/master.key at 0600. The source is recorded in picu_credential_key.source; a passphrase store keeps working as before. pic auth rekey keychain|file|passphrase reseals every sealed row in one transaction, and a typed passphrase is followed once by the offer to stop asking. --passphrase-fd and PIC_PASSPHRASE_COMMAND (setting passphraseCommand) give a passphrase with no terminal. pic remote opens a keychain or file store with no prompt. Every OS service stays in platform.c behind secret_key, secret_keep and secret_drop. (user: dmestas, size: 4755) [annotate] [blame] [check-ins using]
# Settings Settings live in `~/.pic/pic.sqlite`. Read and change them with `pic settings [KEY [VALUE]]` and `pic settings --unset KEY`, or in the terminal interface's `/settings`. Object settings take Pi's `settings.json` shape as JSON, for example `pic settings compaction '{"reserveTokens":16384}'`. | Key | Type | Default | What it does | |---|---|---|---| | `defaultModel` | `provider/id` | anthropic/claude-opus-5-5 | the model when `--model` is not given; `pic models --default NAME` or Ctrl+S in the model picker sets it | | `defaultThinkingLevel` | level | medium | the thinking level when no per-model level is saved | | `thinkingLevel:MODEL` | level | none | the thinking level saved for one model, used before `defaultThinkingLevel` | | `passphraseCommand` | shell command | none | prints the credential store's passphrase (its first line) instead of asking on the terminal; `PIC_PASSPHRASE_COMMAND` wins | | `activeKey:PROVIDER` | label | none | the key PROVIDER's requests use (`default`, a stored name, `env`, `file`); `pic auth use` and `/key` set it | | `hideThinking` | true, false | false | show a one-line marker instead of the reply's thinking (Ctrl+T toggles it) | | `defaultTools` | comma list | read,bash,edit,write | the tools a request offers; same entries as `--tools` | | `toolExecution` | parallel, sequential | parallel | whether a reply's tool calls run at once or one by one, as Pi's; Tool execution in `/settings` | | `cacheRetention` | short, long, none | short | the prompt cache retention: long is 1 hour (OpenAI 24 hours); `PI_CACHE_RETENTION=long` too | | `theme` | name | system | the terminal interface's colour theme: dark, light, light/dark, system or a custom theme | | `notifyWhenDone` | true, false | true | ring the bell and ask for a desktop notification when a reply is ready and the window is not focused | | `tuiMode` | fullscreen, regular | fullscreen | how the terminal interface draws; `--tui-mode` for one run | | `fullscreenExitOutput` | transcript, resume-hint | transcript | what fullscreen leaves in the scrollback on exit | | `fullscreenScrollbar` | auto, always, hidden | auto | the fullscreen scrollbar | | `fullscreenCopyOnSelect` | true, false | true | copy a mouse selection to the clipboard | | `fullscreenWheelScrollLines` | auto, 1, 2, 3, 5, 10 | auto | lines per mouse wheel step | | `skillBudget` | characters | 1% of the model's context window x 4 | the most the system prompt's skill list may take; 0 is no limit; see Skills in `pic help prompts-and-skills` | | `compaction` | object | see below | Pi's compaction settings | | `compaction.enabled` | boolean | true | automatic compaction, overflow recovery included; not `pic compact` | | `compaction.reserveTokens` | tokens | 16384 | compact when the context passes the window minus this | | `compaction.keepRecentTokens` | tokens | 20000 | about this much recent context is kept verbatim (a lapse trim counts it in provider tokens) | | `compaction.modelOverrides` | object | none | per-model values, keyed `"provider/model"` | | `branchSummary` | object | see below | Pi's branch summary settings | | `branchSummary.reserveTokens` | tokens | 16384 | a branch summary sends at most the window minus this | | `branchSummary.skipPrompt` | boolean | false | leave a branch in `/tree` without asking "Summarize branch?" | | `retry` | object | none | `retry.enabled`, saved by the RPC command `set_auto_retry`; only RPC mode reads it | | `lapseCompaction` | on, off | on | lapse compaction; `--lapse`, `PIC_LAPSE` | | `lapseSeconds` | seconds | the cache's lifetime | how long the prompt cache is assumed to live; `--lapse-seconds`, `PIC_LAPSE_SECONDS` | | `lapseFloorTokens` | tokens | 100000 | lapse compaction waits below this context; `--lapse-floor`, `PIC_LAPSE_FLOOR` | | `lapseHoldout` | 0 to 1 | 0.1 | the share of lapses left uncompacted, to measure the savings; `PIC_LAPSE_HOLDOUT` | | `lapseMode` | trim, summary | trim | how a lapse compacts: drop older context with no request, or Pi's summary | | `rewindMaxBytes` | bytes | 1048576 | the largest file whose contents are saved before write or edit changes it, for rewind; 0 saves none; applies from the next request | | `doubleEscapeAction` | rewind, tree, fork, none | rewind | what Esc twice on an empty editor opens; Pi's default is tree | | `imageRetentionDays` | days | 30 | `pic prune` drops image bytes older than this; 0 never | | `piSessionFiles` | 1, 0 | 0 | also write `~/.pic/sessions` files when exporting Pi session lines | | `remote.relay` | URL | https://remote.zeitforge.app | the relay `pic remote` and pairing use | | `remote.invite` | string | unset | the invitation the relay needs to make this computer's mailbox; `pic settings remote.invite INVITE` |