Configuration¶
Elroy offers flexible configuration options to customize its behavior to your needs.
Configuration Methods¶
Elroy's configuration can be specified in three ways, in order of precedence:
-
Command Line Flags: Highest priority, overrides all other settings
-
Environment Variables: Second priority, overridden by CLI flags. All environment variables are prefixed with
ELROY_and use uppercase with underscores: -
Configuration File: Lowest priority, overridden by both CLI flags and environment variables
The configuration file location can be specified with the --config flag or defaults to ~/.config/elroy/config.yaml.
For default config values, see defaults.yml
Note: All configuration options can be set via environment variables with the prefix
ELROY_(e.g.,ELROY_CHAT_MODEL=gpt-4o). The environment variable name is created by converting the option name to uppercase and adding theELROY_prefix.