CachyCLI
Guide12 / Configuration
Guide · 12

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

SettingDefaultWhat it changes
ui.themecachy-nightColours of the interface
tools.respect_gitignoretrueHide ignored folders from search and pickers
toolset.bash.timeout_secs120How long a command may run before it is stopped
session.auto_compact_threshold_percent85When a long chat is summarised automatically
subagents.enabledtrueAllow side tasks in their own context
memory.enabledfalseKeep cross-session notes about a project

Environment variables

Handy in scripts and containers:

VariableEffect
CACHY_MODELDefault model for new sessions
CACHY_AGENT_BACKENDopencode, native or acp
CACHY_THEMETheme name
CACHY_MEMORY1 to keep project notes
CACHY_SEARCH_ENDPOINTYour 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.