Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
8 changes: 2 additions & 6 deletions bin/nemoclaw.js
Original file line number Diff line number Diff line change
Expand Up @@ -623,13 +623,9 @@ async function onboard(args) {
async function setup() {
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)}`);
const { onboard: runOnboard } = require("./lib/onboard");
await runOnboard({ nonInteractive: false, resume: false });
}
Comment thread
cv marked this conversation as resolved.
Resolved

async function 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.

2 changes: 1 addition & 1 deletion scripts/walkthrough.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
# the TUI prompts the operator to approve or deny the request.
#
# Prerequisites:
# - NemoClaw setup complete (./scripts/setup.sh)
# - NemoClaw setup complete (nemoclaw onboard)
# - NVIDIA_API_KEY in environment
#
# Suggested prompts that trigger the approval flow:
Expand Down
Loading
Loading