mirror of
https://github.com/openclaw/openclaw.git
synced 2026-03-12 15:30:39 +00:00
56 lines
1.4 KiB
Markdown
56 lines
1.4 KiB
Markdown
---
|
|
summary: "Use NVIDIA's OpenAI-compatible API in OpenClaw"
|
|
read_when:
|
|
- You want to use NVIDIA models in OpenClaw
|
|
- You need NVIDIA_API_KEY setup
|
|
title: "NVIDIA"
|
|
---
|
|
|
|
# NVIDIA
|
|
|
|
NVIDIA provides an OpenAI-compatible API at `https://integrate.api.nvidia.com/v1` for Nemotron and NeMo models. Authenticate with an API key from [NVIDIA NGC](https://catalog.ngc.nvidia.com/).
|
|
|
|
## CLI setup
|
|
|
|
Export the key once, then run onboarding and set an NVIDIA model:
|
|
|
|
```bash
|
|
export NVIDIA_API_KEY="nvapi-..."
|
|
openclaw onboard --auth-choice skip
|
|
openclaw models set nvidia/nvidia/llama-3.1-nemotron-70b-instruct
|
|
```
|
|
|
|
If you still pass `--token`, remember it lands in shell history and `ps` output; prefer the env var when possible.
|
|
|
|
## Config snippet
|
|
|
|
```json5
|
|
{
|
|
env: { NVIDIA_API_KEY: "nvapi-..." },
|
|
models: {
|
|
providers: {
|
|
nvidia: {
|
|
baseUrl: "https://integrate.api.nvidia.com/v1",
|
|
api: "openai-completions",
|
|
},
|
|
},
|
|
},
|
|
agents: {
|
|
defaults: {
|
|
model: { primary: "nvidia/nvidia/llama-3.1-nemotron-70b-instruct" },
|
|
},
|
|
},
|
|
}
|
|
```
|
|
|
|
## Model IDs
|
|
|
|
- `nvidia/llama-3.1-nemotron-70b-instruct` (default)
|
|
- `meta/llama-3.3-70b-instruct`
|
|
- `nvidia/mistral-nemo-minitron-8b-8k-instruct`
|
|
|
|
## Notes
|
|
|
|
- OpenAI-compatible `/v1` endpoint; use an API key from NVIDIA NGC.
|
|
- Provider auto-enables when `NVIDIA_API_KEY` is set; uses static defaults (131,072-token context window, 4,096 max tokens).
|