From 845ac89c54594e24efe5ea1549ec5b8ff118b247 Mon Sep 17 00:00:00 2001 From: Tinson Lai Date: Sat, 16 May 2026 07:21:26 +0000 Subject: [PATCH 1/2] feat(onboard): wizard honours NEMOCLAW_PROVIDER outside non-interactive (#3565) Signed-off-by: Tinson Lai --- docs/reference/commands.md | 2 +- src/lib/onboard.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/reference/commands.md b/docs/reference/commands.md index 67f39fce5ce..158c52f16bc 100644 --- a/docs/reference/commands.md +++ b/docs/reference/commands.md @@ -1134,7 +1134,7 @@ Set them before running `nemoclaw onboard`. | Variable | Format | Effect | |----------|--------|--------| -| `NEMOCLAW_PROVIDER` | provider key (e.g. `nvidia`, `openai`, `anthropic`, `ollama`, `vllm`, `compatible`) | Selects the inference provider in non-interactive onboarding. Must match one of the keys the wizard would prompt for. | +| `NEMOCLAW_PROVIDER` | provider key (e.g. `nvidia`, `openai`, `anthropic`, `ollama`, `vllm`, `compatible`) | Selects the inference provider during onboarding. The wizard skips the provider menu in both interactive and non-interactive runs when this is set. Invalid values fail fast with the list of accepted keys. | | `NEMOCLAW_HERMES_AUTH_METHOD` | `oauth` | Selects Hermes Provider authentication in non-interactive onboarding. Valid values: `oauth`, `nous-portal-oauth`, `api-key`, `nous-api-key`. | | `NEMOCLAW_HERMES_AUTH` | same as `NEMOCLAW_HERMES_AUTH_METHOD` | Back-compatible alias for Hermes Provider authentication selection. | | `NEMOCLAW_NOUS_AUTH_METHOD` | same as `NEMOCLAW_HERMES_AUTH_METHOD` | Nous-specific alias for Hermes Provider authentication selection. | diff --git a/src/lib/onboard.ts b/src/lib/onboard.ts index ce9b4b71a0b..41c29f156f3 100644 --- a/src/lib/onboard.ts +++ b/src/lib/onboard.ts @@ -6466,7 +6466,7 @@ async function setupNim( console.log(""); } } - const requestedProvider = isNonInteractive() ? getNonInteractiveProvider() : null; + const requestedProvider = getNonInteractiveProvider(); const requestedModel = isNonInteractive() ? getNonInteractiveModel(requestedProvider || "build") : null; From d17cfed96a96435aeb114f8c357c3b21f0306614 Mon Sep 17 00:00:00 2001 From: Tinson Lai Date: Sat, 16 May 2026 08:00:57 +0000 Subject: [PATCH 2/2] fix(onboard): skip provider menu in interactive mode when NEMOCLAW_PROVIDER is set Signed-off-by: Tinson Lai --- docs/reference/commands.md | 2 +- src/lib/onboard.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/reference/commands.md b/docs/reference/commands.md index 158c52f16bc..0dc0723bfe9 100644 --- a/docs/reference/commands.md +++ b/docs/reference/commands.md @@ -1134,7 +1134,7 @@ Set them before running `nemoclaw onboard`. | Variable | Format | Effect | |----------|--------|--------| -| `NEMOCLAW_PROVIDER` | provider key (e.g. `nvidia`, `openai`, `anthropic`, `ollama`, `vllm`, `compatible`) | Selects the inference provider during onboarding. The wizard skips the provider menu in both interactive and non-interactive runs when this is set. Invalid values fail fast with the list of accepted keys. | +| `NEMOCLAW_PROVIDER` | provider key (e.g. `build`, `openai`, `anthropic`, `anthropicCompatible`, `gemini`, `ollama`, `custom`, `vllm`, `nim-local`, `routed`, `hermesProvider`, `install-vllm`, `install-ollama`, `install-windows-ollama`, `start-windows-ollama`) | Selects the inference provider during onboarding. The wizard skips the provider menu in both interactive and non-interactive runs when this is set. Aliases: `cloud` → `build`, `nim` → `nim-local`, `hermes` / `hermes-provider` / `nous` / `nous-portal` → `hermesProvider`, `anthropiccompatible` → `anthropicCompatible`. Invalid values fail fast with the list of accepted keys. | | `NEMOCLAW_HERMES_AUTH_METHOD` | `oauth` | Selects Hermes Provider authentication in non-interactive onboarding. Valid values: `oauth`, `nous-portal-oauth`, `api-key`, `nous-api-key`. | | `NEMOCLAW_HERMES_AUTH` | same as `NEMOCLAW_HERMES_AUTH_METHOD` | Back-compatible alias for Hermes Provider authentication selection. | | `NEMOCLAW_NOUS_AUTH_METHOD` | same as `NEMOCLAW_HERMES_AUTH_METHOD` | Nous-specific alias for Hermes Provider authentication selection. | diff --git a/src/lib/onboard.ts b/src/lib/onboard.ts index 41c29f156f3..2166437f517 100644 --- a/src/lib/onboard.ts +++ b/src/lib/onboard.ts @@ -6590,7 +6590,7 @@ async function setupNim( let recoveredModel: string | null = null; hermesAuthMethod = null; - if (isNonInteractive()) { + if (isNonInteractive() || requestedProvider) { let providerKey = requestedProvider; if (!providerKey) { const recordedProvider = readRecordedProvider(sandboxName);