Skills nvidia-model-config
Add the NVIDIA provider to OpenClaw with SecretRef apiKey (no plaintext in openclaw.json). Documents shell vs systemd gateway env so the key actually resolves. Includes Mixtral, Kimi, Nemotron Super, Nemotron Ultra, and MiniMax M2.5 model entries.
install
source · Clone the upstream repo
git clone https://github.com/openclaw/skills
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/openclaw/skills "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/0xli/nvidia-model-config" ~/.claude/skills/clawdbot-skills-nvidia-model-config && rm -rf "$T"
manifest:
skills/0xli/nvidia-model-config/SKILL.mdsource content
NVIDIA Model Config Skill
Overview
This skill packages three reusable pieces:
- A script (
) that inserts the NVIDIA provider block into anyscripts/merge_nvidia_config.py
file and configuresopenclaw.json
as a SecretRef by default.apiKey - Model entries for Mixtral, Moonshot Kimi, Kimi K2.5, Nemotron Super (1M ctx), Llama 3.1 Nemotron Ultra 253B (128K ctx), and MiniMax M2.5 (204.8K ctx) — delete extras or add more from
.openclaw models list --provider nvidia --all - Instructions for backups, secrets, and where
must be set so the gateway can resolve it (this is not onlyNVIDIA_API_KEY
).openclaw.json
Use the skill whenever you want to replicate the NVIDIA
models.providers.nvidia entry without guessing which keys or nested objects to copy.
Quick start
- Copy or download this skill (e.g.,
).rsync -av skills/nvidia-model-config /path/to/other/workspace/skills/ - Obtain your NVIDIA API key and keep it secret (do not commit it).
- Run the script from the target workspace:
python skills/nvidia-model-config/scripts/merge_nvidia_config.py \ --config openclaw.json --key "YOUR_KEY" --setup-env ~/.config/openclaw/gateway.env --setup-systemd --backup
defaults to--config
in the current directory.openclaw.json
provides the API key (alternatively, set--key
in your shell).NVIDIA_API_KEY
writes the key to a dedicated environment file (e.g.,--setup-env
).~/.config/openclaw/gateway.env
creates a systemd user override to load the environment file for the gateway.--setup-systemd
saves the original file as--backup
before overwriting.openclaw.json.bak- By default, the script writes
as:models.providers.nvidia.apiKey{"source":"env","provider":"default","id":"NVIDIA_API_KEY"}
Manual Environment Setup
If you prefer not to use
--setup-systemd, you must set your key in the runtime environment where the OpenClaw gateway runs.
Interactive shell / CLI only (e.g. testing
openclaw in a terminal):
export NVIDIA_API_KEY="$YOUR_KEY"
Gateway under systemd (typical on Linux) — the service does not read
~/.bashrc. Put the key in a file the unit loads, for example:
- File:
(mode~/.config/openclaw/gateway.env
):600
NVIDIA_API_KEY=your_key_here
- User unit drop-in
:~/.config/systemd/user/openclaw-gateway.service.d/override.conf
[Service] Environment=NVIDIA_API_KEY= EnvironmentFile=-/home/YOUR_USER/.config/openclaw/gateway.env
The empty
Environment=NVIDIA_API_KEY= clears any inherited value so EnvironmentFile is the single source of truth. Then:
systemctl --user daemon-reload systemctl --user restart openclaw-gateway.service
You can also keep a personal
~/.config/openclaw/secrets.env and source it from ~/.bashrc for CLI-only use; that does not replace the gateway env above.
If you want to preview the changes before writing, add
--dry-run and capture the printed JSON.
What the script does
- Removes legacy plaintext copies of
from config (NVIDIA_API_KEY
andenv.vars.*
) when present.env.* - Creates or updates the
block with bundled NVIDIA models (Nemotron Super 1M ctx, Nemotron Ultra 253B ~128K ctx, MiniMax M2.5 ~204.8K ctx, plus Mixtral/Kimi entries). NVIDIA may returnmodels.providers.nvidia
if your key is not entitled to a model; pick a model that matches your account and catalog.403 - Keeps the
/api
values in sync with NVIDIA’sbaseUrl
endpoint.integrate.api.nvidia.com - Supports an explicit legacy mode when needed:
NVIDIA_API_KEY="$YOUR_KEY" \ python skills/nvidia-model-config/scripts/merge_nvidia_config.py \ --config openclaw.json --inline-key
Use
--inline-key only for short-lived local tests.
Optional adjustments
- Set default model with
(full id isopenclaw models set nvidia/<model-id>
+ provider model id, e.g.nvidia/
when the provider entry id isnvidia/nvidia/nemotron-3-super-120b-a12b
).nvidia/nemotron-3-super-120b-a12b - If the target install manages agent defaults manually, add fallback entries under
so clients can recover if the primary model fails.agents.defaults.model.fallbacks - Double-check other agents’
lists if they need aliases.models
Distribution tips
- Bundle this skill directory and any instructions or scripts you use into a
/.zip
file to share with teammates..skill - In your documentation, point operators to this SKILL so Codex can reload it and the script automatically when they ask to “add NVIDIA models.”
- Keep real API keys outside of Git. Use environment variables or SecretManagers and rely on the script to merge them at runtime.