Skip to content

Configuration

Two sources matter:

  1. 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.
  2. Settings → MAESTRO: who writes chains, clarifications, the chain model, memory and IdeaL, web research, evolution platform, app lock. It writes the CareConfig fields below into ~/.config/care/config.toml and 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.

CareConfig (in care/config.py) is read from four layers, in increasing precedence:

  1. defaults in care.config.CareConfig;
  2. ~/.config/care/config.toml (user-global);
  3. ./care.toml in the working directory (per project);
  4. 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.

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:

Terminal window
CARE_MEMORY__BASE_URL=http://localhost:8002
CARE_MEMORY__RETRIEVAL_BACKEND=ideal
CARE_MEMORY__IDEAL_NAMESPACE=my-team

CareConfig has twelve sections:

SectionEnv prefixPurpose
mageCARE_MAGE__*Chain generator: mode, research, limits, topology. Provider/URL/model/key for CLI, TUI, legacy workbench.
memoryCARE_MEMORY__*GigaEvo Memory URL and key, read-only mode, chain memory backend, IdeaL namespace and project.
platformCARE_PLATFORM__*Evolution platform URLs and key, mutation and validation models.
hubCARE_HUB__*Agent hub for /deploy and maestro deploy.
uploadCARE_UPLOAD__*External chain-upload target (/upload).
sandboxCARE_SANDBOX__*Skill sandbox: backend (docker default, e2b, firejail, local), limits, network policy.
toolsCARE_TOOLS__*@carl_tool directory, bundled builtins, web search, code execution, tool synthesis, STARM solvers.
telemetryCARE_TELEMETRY__*Opt-in event sink (Langfuse).
defaultsCARE_DEFAULTS__*Answer language, TUI language, DAG display, history size, reduced motion; in the app: who writes chains, clarify mode, chain model.
chatCARE_CHAT__*TUI modes and stage policies.
contextCARE_CONTEXT__*CARE.md standing context and long-term memory.
artifactsCARE_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.

VariableMeaning
CARE_SECRET_STOREDevelopment 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_WORKSPACEAn 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_DBSQLite file of the dataset studio. Default ~/.local/state/care/benchmark-factory/factory.sqlite3.
MAESTRO_APP_LOCK_MODEForce the app lock for one launch: disabled or touch-id.
CARE_LOG_FILE, CARE_LOG_LEVELWrite a log file; level (default INFO).
CARE_CHAT__LOOP_MAX_ITERTUI Interactive loop cap (default 5).
CARE_CHAT__GENERATION_MAX_ATTEMPTSTUI generation retries (default 3).
CARE_CHAT__AD_HOC_HISTORY_TURNS, CARE_CHAT__AD_HOC_HISTORY_CHARSTUI 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.

  • 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=file they are written as values into the app’s .env and ~/.config/care/config.toml, both owner-only. Any process running as your user can read them. With CARE_SECRET_STORE=keychain the files hold only keystore:// references and the values live in the macOS Keychain.
  • maestro init writes the generator key in plain text to .env.
  • maestro migrate-secrets moves literal *_api_key values from ~/.config/care/config.toml into the OS keystore and rewrites the file with keystore:// references.