Guide12 / Configuration
Topics
Configuration
One settings file for your machine, optionally one per project. Everything has a sensible default, so you only write what you want to change.
The settings file
~/.cachy/config.toml
[ui] theme = "cachy-night" # or cachy-day, tokyonight, rosepine-moon, oscura-midnight show_thinking = true [models] default = "my-model" [toolset.bash] timeout_secs = 120 # how long a command may run [tools] respect_gitignore = true # never search ignored folders [session] auto_compact_threshold_percent = 85
Per project
A file in the project overrides the one in your home folder. Teams use it to share tool servers and defaults.
.cachy/config.toml inside the repository
[mcp_servers.linear] command = "npx" args = ["-y", "mcp-remote", "https://mcp.linear.app/mcp"]
Order of precedence
Project settings win over machine settings; flags and environment variables win over both.
Common options
| Setting | Default | What it changes |
|---|---|---|
ui.theme | cachy-night | Colours of the interface |
tools.respect_gitignore | true | Hide ignored folders from search and pickers |
toolset.bash.timeout_secs | 120 | How long a command may run before it is stopped |
session.auto_compact_threshold_percent | 85 | When a long chat is summarised automatically |
subagents.enabled | true | Allow side tasks in their own context |
memory.enabled | false | Keep cross-session notes about a project |
Environment variables
Handy in scripts and containers:
| Variable | Effect |
|---|---|
CACHY_MODEL | Default model for new sessions |
CACHY_AGENT_BACKEND | opencode, native or acp |
CACHY_THEME | Theme name |
CACHY_MEMORY | 1 to keep project notes |
CACHY_SEARCH_ENDPOINT | Your own web-search endpoint |
- ▪Put the file under version control if you like; it holds no secrets unless you add some.
- ▪Check what is in effect for a folder with
cachycli inspect.