100% free AI setup guides — no credit card needed
AI Coding AssistantsBeginner

Run GLM-5.2 in Claude Code with NVIDIA API Key Rotation

Install GLM-5.2 in Claude Code with NVIDIA, secure API key rotation, proxy support, rate limits, health checks, and copy-ready commands.

15 min12 steps23 viewsUpdated Aug 5, 2026
Your Progress0%

0 of 12 steps complete

GLM-5.2Claude CodeNVIDIA APIAPI key rotationclaude-glmClaude Code RouterZ.aiPowerShell

What this guide does

This tutorial connects Claude Code to NVIDIA's OpenAI-compatible API and runs z-ai/glm-5.2 through the claude-glm router.

The router keeps API keys outside Claude Code Router, rotates requests across keys you own, applies a conservative per-key rate limit, supports HTTP/HTTPS proxies, and provides health and usage commands.

Fastest installation

npm install --global github:STEVOHCODER/claude-glm-router
claude-glm

The first run guides you through provider, model, proxy, rate-limit, and API-key setup.

Before you begin

  • Use only NVIDIA API keys that belong to you.
  • Key rotation does not bypass provider terms or guarantee unlimited usage.
  • Node.js 24 or newer is required.
  • The project is an independent compatibility tool, not an official Anthropic, NVIDIA, or Z.ai product.

Source and updates: claude-glm-router on GitHub.

Understand the GLM-5.2 routing architecture

1 screenshot

Claude Code does not send your request directly to NVIDIA. The local router translates the request, selects an available key, and forwards it to the configured provider.

Claude Code
    |
    v
Claude Code Router
127.0.0.1:3456
    |
    v
claude-glm key rotator
127.0.0.1:3466
    |
    +--> NVIDIA key 1
    +--> NVIDIA key 2
    +--> NVIDIA key N
    |
    v
https://integrate.api.nvidia.com/v1/chat/completions
    |
    v
z-ai/glm-5.2

Local traffic stays on 127.0.0.1. Only provider requests go through your configured internet connection or proxy.

Screenshots

Check Node.js and PowerShell requirements

Install the claude-glm router

Start the guided setup

Know which local files are created

1 screenshot

Select NVIDIA and GLM-5.2

Set the rate limit and optional proxy

Add and rotate NVIDIA API keys safely

Verify the installation before launching Claude

Choose a quota and fallback mode

Start, stop, or update the router

Launch Claude Code with GLM-5.2

1 screenshot

Related AI setup guides

Community Feedback

Did this guide work for you?

0/1000
Be the first to leave feedback!