# Function getDefaultRegistry

- getDefaultRegistry(): ModelRegistry

  Lazy global registry. Most consumers should accept a `ModelRegistry` via dependency injection instead, but this is the convenient default for migration from the existing module-level constants.

  The first call constructs the registry and loads the operator manifest overlay (#2547 4a) from `$NEXUS_MODELS_OVERLAY_PATH` or `$NEXUS_DATA_DIR/models-manifest.yaml`. Missing / malformed manifests never throw — rejections are logged at warn level and dropped.

  #### Returns ModelRegistry

  - Defined in packages/nexus-agents/src/config/model-registry.ts:292