Configure
Configuration
One format, five layers, merged not replaced.
#Precedence
- Remote
.well-knowndefaults ship with the app. - Global config applies to every project you open.
- CODEY_CONFIG env var points at one override file.
- Project
codey.jsonapplies to the current repo. - .codey/ folder holds local session and agent state.
#Paths
| Platform | Global config | State |
|---|---|---|
| macOS | ~/.config/codey/codey.json | ~/.local/share/codey |
| Linux | ~/.config/codey/codey.json | ~/.local/share/codey |
| Windows | %APPDATA%/codey/codey.json | %LOCALAPPDATA%/codey |
#Project file
codey.json
{
"model": "anthropic/claude-sonnet-4-5",
"theme": "codey",
"permissions": { "bash": "ask" }
}- One shape everywhere — global and project files share the same schema.
- Deep-merged — project keys override global keys, nothing else is dropped.
- Secrets stay out — use
{env:NAME}or{file:~/.secrets/key}instead of raw values.