diff --git a/docs/reference/commands.md b/docs/reference/commands.md index f869ca2c9a6..b4847270e80 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. `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 6648423ad66..5edbca63c0a 100644 --- a/src/lib/onboard.ts +++ b/src/lib/onboard.ts @@ -6239,7 +6239,7 @@ async function setupNim( console.log(""); } } - const requestedProvider = isNonInteractive() ? getNonInteractiveProvider() : null; + const requestedProvider = getNonInteractiveProvider(); const requestedModel = isNonInteractive() ? getNonInteractiveModel(requestedProvider || "build") : null; @@ -6363,7 +6363,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);