Configuration
In the desktop app
Section titled “In the desktop app”Two sources matter:
- Settings → Chat model (harness settings): provider, key and models. By default this model does all of MAESTRO’s model work in the app: writing and running chains, generation, repair, dataset work, workshop drafts, idea translation.
- Settings → MAESTRO: who writes chains, clarifications, the chain
model, memory and IdeaL, web research, evolution platform, app lock. It
writes the
CareConfigfields below into~/.config/care/config.tomland the app’s.env. Every save needs a full restart. See Settings.
The CARE_MAGE__* provider, URL, model and key are used by the desktop app
only when CARE_DEFAULTS__CHAIN_MODEL=custom (development line); then
chain generation, execution and repair run on that endpoint. Otherwise they
configure the CLI, the TUI and the legacy workbench, and serve as the
evolution platform’s fallback model. CARE_MAGE__MODE and the research
switches apply in the app either way.
The four layers
Section titled “The four layers”CareConfig (in care/config.py) is read from four layers, in increasing
precedence:
- defaults in
care.config.CareConfig; ~/.config/care/config.toml(user-global);./care.tomlin the working directory (per project);CARE_*environment variables (highest). At start, the CLI also loads./.env; variables already set in the shell win over it.
maestro init writes a starter .env for the CLI and the
TUI; maestro doctor shows which variables are set, the
resolved config path, installed extras and live probes of Memory, MAGE and the
platform.
TOML and env mapping
Section titled “TOML and env mapping”Nested fields use a double underscore in env form:
[memory]base_url = "http://localhost:8002"retrieval_backend = "ideal"ideal_namespace = "my-team"is the same as:
CARE_MEMORY__BASE_URL=http://localhost:8002CARE_MEMORY__RETRIEVAL_BACKEND=idealCARE_MEMORY__IDEAL_NAMESPACE=my-teamSections
Section titled “Sections”CareConfig has twelve sections:
| Section | Env prefix | Purpose |
|---|---|---|
mage | CARE_MAGE__* | Chain generator: mode, research, limits, topology. Provider/URL/model/key for CLI, TUI, legacy workbench. |
memory | CARE_MEMORY__* | GigaEvo Memory URL and key, read-only mode, chain memory backend, IdeaL namespace and project. |
platform | CARE_PLATFORM__* | Evolution platform URLs and key, mutation and validation models. |
hub | CARE_HUB__* | Agent hub for /deploy and maestro deploy. |
upload | CARE_UPLOAD__* | External chain-upload target (/upload). |
sandbox | CARE_SANDBOX__* | Skill sandbox: backend (docker default, e2b, firejail, local), limits, network policy. |
tools | CARE_TOOLS__* | @carl_tool directory, bundled builtins, web search, code execution, tool synthesis, STARM solvers. |
telemetry | CARE_TELEMETRY__* | Opt-in event sink (Langfuse). |
defaults | CARE_DEFAULTS__* | Answer language, TUI language, DAG display, history size, reduced motion; in the app: who writes chains, clarify mode, chain model. |
chat | CARE_CHAT__* | TUI modes and stage policies. |
context | CARE_CONTEXT__* | CARE.md standing context and long-term memory. |
artifacts | CARE_ARTIFACTS__* | Where files produced by chains are copied. |
Keys per section: Section reference. The
annotated list of variables is .env.example in the MAESTRO repository.
Variables outside CareConfig
Section titled “Variables outside CareConfig”| Variable | Meaning |
|---|---|
CARE_SECRET_STORE | Development line. Where the app keeps keys: file (default; values in the app’s .env and config.toml, mode 0600) or keychain (keystore:// references, values in the macOS Keychain). See Where keys are stored. |
CARE_DESKTOP_WORKSPACE | An absolute folder the packaged app uses for its .env and relative paths. Default: the current folder, or ~/Documents/Maestro when started from Finder. |
CARE_BENCHMARK_FACTORY_DB | SQLite file of the dataset studio. Default ~/.local/state/care/benchmark-factory/factory.sqlite3. |
MAESTRO_APP_LOCK_MODE | Force the app lock for one launch: disabled or touch-id. |
CARE_LOG_FILE, CARE_LOG_LEVEL | Write a log file; level (default INFO). |
CARE_CHAT__LOOP_MAX_ITER | TUI Interactive loop cap (default 5). |
CARE_CHAT__GENERATION_MAX_ATTEMPTS | TUI generation retries (default 3). |
CARE_CHAT__AD_HOC_HISTORY_TURNS, CARE_CHAT__AD_HOC_HISTORY_CHARS | TUI follow-up context: turns (default 6) and characters per turn (default 1200). |
Developer-only variables for the desktop app select the harness runtime and
its data directory; see maestro app --help. The app sets further internal
MAESTRO_HARNESS_* variables for its tool process; do not set them by hand.
Secrets
Section titled “Secrets”- In the desktop app, keys are entered in native dialogs (the IdeaL key on
the IdeaL sign-in page). With the default
CARE_SECRET_STORE=filethey are written as values into the app’s.envand~/.config/care/config.toml, both owner-only. Any process running as your user can read them. WithCARE_SECRET_STORE=keychainthe files hold onlykeystore://references and the values live in the macOS Keychain. maestro initwrites the generator key in plain text to.env.maestro migrate-secretsmoves literal*_api_keyvalues from~/.config/care/config.tomlinto the OS keystore and rewrites the file withkeystore://references.