Environment variables#

Settings centralises configuration read from environment variables and optional .env files. It reads, in order:

  • .env in the current working directory

  • ~/.domyn_swarm/.env

Variables use the prefix DOMYN_SWARM_ (case-insensitive) unless the field declares an explicit alias — the Field column below shows the alias where one exists. Values are parsed and validated by Pydantic.

Settings#

Centralized environment configuration for domyn-swarm. Env var naming: DOMYN_SWARM_<FIELD_NAME> (custom aliases below). A .env file in CWD or ~/.domyn_swarm/.env is read automatically.

Variable

Type

Default

Description

DOMYN_SWARM_LOG_LEVEL

str

'INFO'

Global logging level, e.g. DEBUG, INFO or WARNING.

DOMYN_SWARM_HOME

Path

PosixPath('/home/runner/.domyn_swarm')

Path to domyn-swarm home directory

DOMYN_SWARM_DEFAULTS

`Path

None`

computed

DOMYN_SWARM_API_TOKEN

`SecretStr

None`

None

VLLM_API_KEY

`SecretStr

None`

computed

SINGULARITYENV_VLLM_API_KEY

`SecretStr

None`

computed

DOMYN_SWARM_MAIL_USER

`str

None`

None

LEPTONAI_API_TOKEN

`SecretStr

None`

None

LEPTON_WORKSPACE_ID

`str

None`

None

DOMYN_SWARM_ASCII

bool

False

Use ASCII glyphs instead of Unicode emojis in CLI output

DOMYN_SWARM_SKIP_DB_UPGRADE

bool

False

If true, skip automatic database schema upgrades on CLI startup