Config files
Topchester config is JSONC.
Topchester loads config in this order. Later files override earlier files.
- Built-in defaults.
topchester.jsoncin the workspace root.~/.config/topchester/config.jsonc.TOPCHESTER_CONFIG=/path/to/config.jsonc.--config <path>.
Use topchester.jsonc for shared project policy. Use ~/.config/topchester/config.jsonc for personal provider setup, model choices, and default model preferences.
.topchester/ is for state, sessions, and caches. It is not a config layer.
Minimal user config
{
"models": {
"default": "openrouter/google/gemini-3.1-flash-lite",
},
}
Topchester automatically reads OPENROUTER_API_KEY for OpenRouter shorthand models.
On first startup, Topchester creates ~/.config/topchester/config.jsonc if it does not exist. The file contains this minimal config as comments:
// {
// "models": {
// "default": "openrouter/google/gemini-3.1-flash-lite",
// },
// }
Uncomment and edit it when you want personal model defaults. A comments-only config file is valid and behaves like empty config.