LLM API Guide

Nemotron 3.5 Super VL Claude Code Setup

Connect NVIDIA Nemotron 3.5 Super VL to Claude Code through an Anthropic Messages gateway, configure your environment variables, and fix tool-calling and 400 errors.

A dark CRT terminal shows abstract pixel packets traveling through a broken and repaired network path for an AI coding setup.
Illustration, AI-generated

Summary

  1. Put an Anthropic Messages proxy such as LiteLLM in front of OpenRouter or your local vLLM / llama.cpp endpoint.
  2. Export ANTHROPIC_BASE_URL, ANTHROPIC_AUTH_TOKEN, ANTHROPIC_MODEL, and DISABLE_PROMPT_CACHING=1 before starting Claude Code.
  3. If you self-host with vLLM.

Claude Code only speaks the Anthropic Messages API (POST /v1/messages). NVIDIA's Nemotron-3.5-Super-VL-120B-A12B—whether you call it on OpenRouter, NVIDIA NIM, vLLM, or llama-server—is almost always served over an OpenAI-compatible /v1/chat/completions endpoint.

If you point ANTHROPIC_BASE_URL straight at an OpenAI-style server, Claude Code fails on the first turn. To make the setup work, you need a lightweight translation layer that accepts /v1/messages, strips or ignores Anthropic-specific cache headers, and forwards tool definitions cleanly. If you are calling the Meta Model API's Anthropic-compatible Messages endpoint, see setting Claude Code's base URL for Muse Ember.

Here is the exact setup I use to run Nemotron 3.5 Super VL inside Claude Code, both through a hosted API and on local hardware, along with the parser and newline bugs you will hit once the agent starts editing files.


On this page

Step 1: Pick Your Backend (Hosted API vs. Local Weights)

Nemotron 3.5 Super VL is a 120B total parameter Mixture-of-Experts model with 12B active parameters per token, a C-RADIO vision encoder for images and short video, and a 1M token context window under the permissive OpenMDW-1.1 license. Because all 120B parameters must stay in memory even though only 12B fire per token, your hardware determines which route makes sense.

Backend Option Memory / Hardware Needed Cost (as of 2026-10-29) Best For
OpenRouter (nvidia/nemotron-3.5-super-vl) None $0.15 / 1M input, $0.50 / 1M output (or :free tier with rate limits) as of 2026-10-29 Instant Claude Code setup without buying GPUs
vLLM (BF16 official weights) ~240 GB VRAM for weights + KV cache (4x H100 80GB or 2x GB200 on a single NVLink node) ~$55/hr on-demand cloud node (as of 2026-10-29) High-concurrency internal teams with strict data residency
vLLM / llama.cpp (NVFP4 or 4-bit GGUF) 64 GB–128 GB unified memory or VRAM (79 GB NVFP4; 86.9 GB UD-Q4_K_XL GGUF) Hardware upfront Local workstation (DGX Spark, 128 GB Mac Studio, or multi-GPU rig)

Don't confuse this model with the smaller pruned Nemotron-3.5-Bolt-74B-A9B if you are shopping for a 24 GB card. The full 120B Super VL does not fit on a single 24 GB consumer GPU unless you drop all the way to a 1-bit UD-IQ1_M GGUF (46.1 GB) and offload most experts to system RAM, which drags generation down into single-digit tokens per second. Unless I already have a 128 GB box sitting on my desk, I pay the $0.15 per million input tokens (as of 2026-10-29) on a hosted endpoint—see my breakdown of how OpenRouter pricing compares to direct APIs if you want to calculate the exact break-even.


Step 2: Bridge /v1/messages with LiteLLM Proxy

If your upstream provider does not expose a native Anthropic /v1/messages endpoint (the same requirement you hit when setting up Kimi K3.1 Pro in Claude Code), run LiteLLM Proxy locally to translate Claude Code's requests. If you want to use a gateway from an Android agent instead, see pointing Mika at your own endpoint.

Create a config.yaml file. Below are both configurations—keep the one that matches your backend:

yaml
model_list:
  # Option A: Hosted via OpenRouter
  - model_name: nemotron-3.5-super-vl
    litellm_params:
      model: openrouter/nvidia/nemotron-3.5-super-vl
      api_key: os.environ/OPENROUTER_API_KEY
      temperature: 1.0
      top_p: 0.95

  # Option B: Local vLLM or llama-server on port 8000
  - model_name: nemotron-3.5-super-vl-local
    litellm_params:
      model: openai/nemotron-3.5-super-vl
      api_base: http://127.0.0.1:8000/v1
      api_key: "local-no-key"
      temperature: 1.0
      top_p: 0.95

NVIDIA recommends temperature: 1.0 and top_p: 0.95 for coding and text reasoning, and dropping temperature to 0.6 when you primarily feed screenshots or UI mockups.

Start the proxy on port 4000:

bash
export OPENROUTER_API_KEY="sk-or-v1-your-key"
litellm --config config.yaml --port 4000

Step 3: Set Claude Code Environment Variables

Open a new terminal where you plan to run claude. You need to point the CLI at your local gateway and disable two Anthropic-specific behaviors that break third-party models:

bash
# 1. Remove any existing official key so Claude Code doesn't default to Anthropic
unset ANTHROPIC_API_KEY

# 2. Point Claude Code to the LiteLLM proxy (do not append /v1/messages)
export ANTHROPIC_BASE_URL="http://127.0.0.1:4000"
export ANTHROPIC_AUTH_TOKEN="sk-litellm-local"

# 3. Set the model alias defined in config.yaml
export ANTHROPIC_MODEL="nemotron-3.5-super-vl"
export ANTHROPIC_SMALL_FAST_MODEL="nemotron-3.5-super-vl"

# 4. Prevent 400 errors from Anthropic cache_control headers and Fast Mode checks
export DISABLE_PROMPT_CACHING=1
export CLAUDE_CODE_SKIP_FAST_MODE_NETWORK_ERRORS=1
export CLAUDE_CODE_SKIP_FAST_MODE_ORG_CHECK=1

If you skip DISABLE_PROMPT_CACHING=1, Claude Code attaches cache_control blocks to system prompts and tool definitions, which causes many OpenAI-compatible upstreams to reject the payload with a 400 error. (If you still get 400s after disabling caching, check my guide on fixing Claude Code API Error 400 messages to see whether your thinking budget or context limit is the culprit.)

Launch claude and run /status right away:

text
/status

Verify that Anthropic base URL reads http://127.0.0.1:4000 and the active model shows nemotron-3.5-super-vl. If Anthropic base URL is missing from /status, an old ANTHROPIC_API_KEY or a profile in ~/.claude/settings.json is overriding your shell exports. If the line stays missing, try pairing the base URL with an auth token.


Step 4: Local Server Flags That Actually Work with Claude Code

If you self-host the weights instead of using OpenRouter, a basic server launch will chat fine in a browser but fail inside Claude Code as soon as the model tries to run Bash, Read, or Edit.

Running with vLLM (BF16 or NVFP4)

When launching vLLM from the official Hugging Face checkpoint, you must enable automatic tool choice and pass the specific parser flags for Nemotron 3.5:

bash
vllm serve nvidia/NVIDIA-Nemotron-3.5-Super-VL-120B-A12B-BF16 \
  --served-model-name nemotron-3.5-super-vl \
  --tensor-parallel-size 4 \
  --trust-remote-code \
  --gpu-memory-utilization 0.85 \
  --max-num-seqs 32 \
  --limit-mm-per-prompt '{"video": 1, "image": 1}' \
  --enable-auto-tool-choice \
  --tool-call-parser qwen3_coder \
  --reasoning-parser nemotron_v3 \
  --speculative_config.method mtp \
  --speculative_config.num_speculative_tokens 3

Two pairs of flags matter here:

  1. --tool-call-parser qwen3_coder and --reasoning-parser nemotron_v3: Without these, vLLM does not convert Nemotron's output into structured tool_calls JSON. Claude Code will just print raw <tool_call> XML and <thought> blocks into your terminal instead of touching your files.
  2. --speculative_config.method mtp: Nemotron 3.5 Super VL has a built-in Multi-Token Prediction (MTP) head that predicts 3 speculative tokens per step. Leaving it on noticeably speeds up long file rewrites.

Running with llama-server (Unsloth GGUF)

If you are running an Unsloth GGUF quantization on a 128 GB unified-memory machine, download both the main model (UD-Q4_K_XL) and the vision projector (mmproj-BF16.gguf). Make sure your llama.cpp build is current (0.7.0 / b11669 or newer)—older builds fail on load with unknown projector type: nemotron_omni because they lack the C-RADIO omni projector definition, or crash on CUDA allocation before offloading experts.

bash
./llama-server \
  --model models/NVIDIA-Nemotron-3.5-Super-VL-120B-A12B-UD-Q4_K_XL.gguf \
  --mmproj models/mmproj-BF16.gguf \
  --alias nemotron-3.5-super-vl \
  --ctx-size 32768 \
  --temp 1.0 --top-p 0.95 --top-k 0 --min-p 0.0 \
  --jinja \
  --host 127.0.0.1 --port 8000

Pass --jinja so llama-server uses the embedded chat template for tool calls, and keep --ctx-size at 32768 or higher—Claude Code's system prompt and repository context easily blow past a 4K or 16K window on the first turn.


Real-World Traps and Troubleshooting

Once you have /status green and your first prompt returns, there are four specific issues I see with Nemotron 3.5 Super VL in agent workflows:

1. Silent Edit Failures in vLLM (Missing Trailing Newlines)

There is a known quirk when serving Nemotron 3.5 Super VL in vLLM with --tool-call-parser qwen3_coder. The model's Jinja chat template wraps tool parameter values in newlines (<parameter=NAME>\n...\n</parameter>), and the parser's _trim_wrapping_newlines function strips the trailing \n from the parameter payload itself.

  • How it shows up in Claude Code: When the model writes a POSIX file, the final newline disappears. Worse, when it calls the Edit tool with an old_string that ends in a newline, the exact-match check fails silently or loops because the stripped string no longer matches the file on disk.
  • Workaround: Tell Claude Code in your project's CLAUDE.md to avoid trailing newlines in search/replace blocks, or let it fall back to single-line anchors when an edit fails to match.

2. Don't Try to Piggyback on OpenCode's Free Endpoint

Because Nemotron 3.5 Super VL launched as a free drop-down option inside OpenCode, a lot of developers try to point Claude Code or a local proxy at OpenCode's Zen inference URL to get free tokens. Don't waste your evening on it. Upstream rejects requests with 403 FreeTierError (OpenCode's free tier can only be used from within OpenCode) if the tool names are capitalized like Claude Code's (Read, Write, Edit, Bash instead of lowercase read, write, edit, bash), or if your egress IP and client fingerprint don't match. If you want a free tier for testing, use OpenRouter's nvidia/nemotron-3.5-super-vl:free or NVIDIA's free developer credits on build.nvidia.com.

3. Vision Drops Silently Through Some Gateways

The main reason to run Nemotron 3.5 Super VL inside Claude Code instead of a pure text model is passing UI screenshots, terminal error captures, and architecture diagrams straight into the prompt. However, some proxy catalogs match model names against a generic ^nemotron rule and mark vision: false, silently dropping image blocks before they reach the model. Test vision on turn one by dragging a PNG into Claude Code and asking it to read the exact text inside the image. If it claims it cannot see images, inspect your gateway logs to confirm the base64 image block wasn't stripped.

4. Output Truncation at 16K Tokens

With thinking mode enabled (enable_thinking=True is the default), Nemotron 3.5 Super VL spends a chunk of its output budget inside <thought> tags before emitting the actual file diff. If your gateway or local server caps max_tokens at 4096 or 16384, large multi-file edits will cut off mid-JSON and break the tool call. Set max_tokens to at least 32768 in your proxy config when running heavy refactors, or use Nemotron for what it does best—turning UI screenshots, charts, and error captures into working frontend code—while keeping a frontier Claude model on standby for deep multi-file architecture changes.


Skip the Local Proxy Juggling

Running LiteLLM locally, hunting down cache_control 400 errors, and maintaining separate API keys for OpenRouter, NVIDIA, and Anthropic gets old fast when you just want to switch models mid-session. I built SeedRouter so you can point ANTHROPIC_BASE_URL at a single native /v1/messages endpoint and swap between open models like Nemotron 3.5 Super VL and frontier coding models without touching a local YAML proxy.

Sources and checks

  1. Anthropic Messages API
  2. Nemotron-3.5-Super-VL-120B-A12B
  3. OpenMDW-1.1 license
  4. LiteLLM Proxy
  5. Unsloth GGUF quantization
  6. build.nvidia.com