Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 3 additions & 8 deletions bin/nemoclaw.js
Original file line number Diff line number Diff line change
Expand Up @@ -620,16 +620,11 @@ async function onboard(args) {
await runOnboard({ nonInteractive, resume });
}

async function setup() {
async function setup(args = []) {
console.log("");
console.log(" ⚠ `nemoclaw setup` is deprecated. Use `nemoclaw onboard` instead.");
console.log(" Running legacy setup.sh for backwards compatibility...");
console.log("");
await ensureApiKey();
const { defaultSandbox } = registry.listSandboxes();
const safeName =
defaultSandbox && /^[a-z0-9][a-z0-9-]*[a-z0-9]$/.test(defaultSandbox) ? defaultSandbox : "";
run(`bash "${SCRIPTS}/setup.sh" ${shellQuote(safeName)}`);
await onboard(args);
}

async function setupSpark() {
Expand Down Expand Up @@ -1188,7 +1183,7 @@ const [cmd, ...args] = process.argv.slice(2);
await onboard(args);
break;
case "setup":
await setup();
await setup(args);
break;
case "setup-spark":
await setupSpark();
Expand Down
19 changes: 14 additions & 5 deletions scripts/brev-setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
# SPDX-License-Identifier: Apache-2.0
#
# Brev VM bootstrap — installs prerequisites then runs setup.sh.
# Brev VM bootstrap — installs prerequisites then runs nemoclaw onboard.
#
# Run on a fresh Brev VM:
# export NVIDIA_API_KEY=nvapi-...
Expand All @@ -12,7 +12,7 @@
# 1. Installs Docker (if missing)
# 2. Installs NVIDIA Container Toolkit (if GPU present)
# 3. Installs openshell CLI from GitHub release (binary, no Rust build)
# 4. Runs setup.sh
# 4. Installs nemoclaw CLI and runs nemoclaw onboard

set -euo pipefail

Expand Down Expand Up @@ -177,9 +177,18 @@ elif command -v nvidia-smi >/dev/null 2>&1; then
fi
fi

# --- 5. Run setup.sh ---
# --- 5. Install nemoclaw CLI and run onboard ---
REPO_DIR="$(cd "$SCRIPT_DIR/.." && pwd)"

info "Installing nemoclaw CLI..."
export npm_config_prefix="$HOME/.local"
export PATH="$HOME/.local/bin:$PATH"
(cd "$REPO_DIR/nemoclaw" && npm install && npm run build) >/dev/null 2>&1
(cd "$REPO_DIR" && npm install --ignore-scripts && npm link) >/dev/null 2>&1
info "nemoclaw $(nemoclaw --version) installed"

# Use sg docker to ensure docker group is active (usermod -aG doesn't
# take effect in the current session without re-login)
info "Running setup.sh..."
info "Running nemoclaw onboard..."
export NVIDIA_API_KEY
exec sg docker -c "bash $SCRIPT_DIR/setup.sh"
exec sg docker -c "nemoclaw onboard --non-interactive"
324 changes: 0 additions & 324 deletions scripts/setup.sh

This file was deleted.

Loading
Loading