Repository navigation
docs: clarify sub-agent setup prerequisites #5521
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🧩 Analysis chain
🏁 Script executed:
Repository: NVIDIA/NemoClaw
Length of output: 103
🏁 Script executed:
Repository: NVIDIA/NemoClaw
Length of output: 41
🏁 Script executed:
Repository: NVIDIA/NemoClaw
Length of output: 230
🏁 Script executed:
rg -l 'openclaw-patch' --type pythonRepository: NVIDIA/NemoClaw
Length of output: 90
🏁 Script executed:
rg -i 'vlm-demo|openclaw-patch' --max-count 20Repository: NVIDIA/NemoClaw
Length of output: 3377
🏁 Script executed:
cat docs/inference/set-up-sub-agent.mdx | head -100Repository: NVIDIA/NemoClaw
Length of output: 6305
🌐 Web query:
openclaw-patch.py NVIDIA_API_KEY brevdev nemoclaw-demos vlm-demo usage💡 Result:
The term openclaw-patch.py refers to a specific utility script provided within the brevdev/nemoclaw-demos repository [1][2], designed to help users configure and patch OpenClaw environments, particularly for setting up advanced sub-agents like the Vision Language Model (VLM) demo [3][2]. Usage Summary: 1. Context and Purpose: The script is part of the vlm-demo and openclaw-omni-demo workflows [1][3][2]. It is used to programmatically modify the OpenClaw configuration (openclaw.json) to include auxiliary providers, such as the NVIDIA Omni provider, and to update agent configurations for task-specific delegation [3][2]. 2. NVIDIA API Key: To use the NVIDIA provider (required for these demos), you must set the NVIDIA_API_KEY environment variable [4][3]. This key is obtained from build.nvidia.com and follows the nvapi- prefix format [4][5][6]. OpenClaw natively recognizes this variable for authentication without needing explicit provider configuration in many cases [4]. 3. Patching Workflow: When running the VLM or Omni sub-agent demos, the workflow typically involves: - Using the provided openclaw-patch.py script to automate the injection of the sub-agent provider and agent list settings into your local openclaw.json [3][2]. - Ensuring the sandbox environment is correctly configured with the necessary network policies and credentials [3][7][2]. - Validating the setup via provided verification scripts (e.g., verify-omni-demo.sh) [3]. Important Technical Notes: - Config Management: OpenClaw has evolved its configuration management. While older or community workflows like those in brevdev/nemoclaw-demos use custom scripts like openclaw-patch.py [2], recent versions of OpenClaw have introduced a native openclaw config apply command to handle JSON5 configuration patches directly [8]. - Plugin Caveats: Be aware that some older versions of the NVIDIA provider plugin had issues with correctly persisting API keys, which could lead to validation errors in models.json [9]. Ensure your OpenClaw installation is up to date to avoid these issues. - Security: Never share or commit your NVIDIA_API_KEY to public repositories [5]. Use environment variables to keep keys out of shell history and configuration files whenever possible [4].
Citations:
🌐 Web query:
github.com brevdev nemoclaw-demos vlm-subagent openclaw-patch.py💡 Result:
The reference to openclaw-patch.py in the context of brevdev/nemoclaw-demos likely relates to automated scripts for configuring or patching OpenClaw environments. The brevdev/nemoclaw-demos repository provides a collection of guides and demo setups for users who have completed the initial installation of NemoClaw [1]. Within this repository, specifically in the openclaw-omni-demo project, there is a focus on configuring sub-agents, such as the Nemotron Omni vision sub-agent [1][2]. While the repository contains several scripts to automate these setups—such as
apply-omni-subagent.sh,verify-omni-demo.sh, andfix-spark-gateway.sh[2]—the specific filename openclaw-patch.py is not listed as a primary, documented component of the main demo directory structure [2][3]. However, OpenClaw-related patching and configuration scripts are common in the ecosystem; for instance, the mahsumaktas/openclaw-patchkit repository utilizes various Python-based patching strategies and scripts for maintaining OpenClaw environments [4][5]. Additionally, there is a documentedapply_patchtool within the OpenClaw framework used for structured file changes [6], and other community packs have historically included files such asensure-openclaw-postfix-patch.py[7]. If you are looking for specific functionality related to patching an OpenClaw instance for a VLM sub-agent, the recommended approach is to use thescripts/apply-omni-subagent.shprovided in theopenclaw-omni-demofolder, which handles the necessary modifications toopenclaw.json,policy.yaml, and workspace agent files [2].Citations:
Use an environment variable instead of a positional argument for the API key.
The search results confirm a security best practice: "Never share or commit your NVIDIA_API_KEY to public repositories. Use environment variables to keep keys out of shell history and configuration files whenever possible."
Passing
"$NVIDIA_API_KEY"as a positional argument in the command line exposes the secret in shell history and process listings. Update the docs to show the helper accepting the key via theNVIDIA_API_KEYenvironment variable instead:Also verify with the
vlm-demomaintainers that the script supports environment variable input, or confirm whether the recommended approach is to useapply-omni-subagent.shfrom the openclaw-omni-demo folder instead.🤖 Prompt for AI Agents