Skip to main content

A drop-in NVIDIA NIM proxy for Claude Code CLI and VSCode

Project description

🚀 NVIDIA NIM Proxy for Claude Code [v1.1.0]

Created By: Mirjan Ali Sha

A professional, high-performance drop-in replacement for the Anthropic API using NVIDIA NIM models. Optimized specifically for the Claude Code CLI and VSCode tools.

✨ Features

  • 🛡️ Privacy First: 100% Locally hosted. No data tracking, no telemetry, and zero log retention.
  • 🪶 Ultra Lightweight: Minimal footprint and dependency-light for maximum speed.
  • ⚡ Drop-in Compatible: Mimics Anthropic's message protocol perfectly.
  • 🔄 SSE Stability: Advanced indexing system to prevent "Content block not found" errors during long reasoning steps.
  • 🧠 Native Reasoning: Streams live "Thinking" blocks from GLM, DeepSeek, and specialized NIM models.
  • 🛠️ Sequential Tools: Fixed tool-hanging issues by ensuring strict block termination and index alignment.
  • 🛡️ Robust Fallback: Instantly retries if primary models fail.
  • 🔥 CLI Config: Manage all your settings directly from your terminal.

📦 Installation

0. Install Claude Code (If you haven't)

Claude Code requires Node.js. Install it globally via npm:

npm install -g @anthropic-ai/claude-code

1. Install the Proxy

# Clone the repository
git clone https://github.com/Mirjan-Ali-Sha/nim-proxy.git
cd nim-proxy

# Install in editable mode
pip install -e .
pip install nim-proxy

2. Configure Your API Key (Must)

Run the interactive config command:

nim-proxy config --key your_nvidia_api_key_here

3. Start the Server

# Standard mode (Quiet)
nim-proxy start

# Debug mode (Shows request payloads)
nim-proxy start --verbose

The proxy will run at http://localhost:8082 by default.


🔗 Connecting Claude Code

You need to point Claude Code to this proxy by setting the ANTHROPIC_BASE_URL and a dummy API Key.

One-Liner Quick Connect

Windows (PowerShell)

$env:ANTHROPIC_AUTH_TOKEN="nim-proxy"; $env:ANTHROPIC_BASE_URL="http://localhost:8082"; $env:ANTHROPIC_API_KEY="sk-ant-dummy"; claude

MacOS / Linux (Bash/Zsh)

export ANTHROPIC_AUTH_TOKEN="nim-proxy" ANTHROPIC_BASE_URL="http://localhost:8082" ANTHROPIC_API_KEY="sk-ant-dummy"; claude

Windows (PowerShell) - Permanent Setup

To set it up for your current session:

$env:ANTHROPIC_AUTH_TOKEN="nim-proxy"
$env:ANTHROPIC_BASE_URL="http://localhost:8082"
$env:ANTHROPIC_API_KEY="sk-ant-dummy"
claude

Permanent (Recommended): Add these lines to your PowerShell Profile (notepad $profile):

$env:ANTHROPIC_AUTH_TOKEN="nim-proxy"
$env:ANTHROPIC_BASE_URL="http://localhost:8082"
$env:ANTHROPIC_API_KEY="sk-ant-dummy"

macOS / Linux (Bash or Zsh)

To set it up for your current session:

export ANTHROPIC_AUTH_TOKEN="nim-proxy"
export ANTHROPIC_BASE_URL="http://localhost:8082"
export ANTHROPIC_API_KEY="sk-ant-dummy"
claude

Permanent: Add these lines to your ~/.bashrc or ~/.zshrc:

export ANTHROPIC_AUTH_TOKEN="nim-proxy"
export ANTHROPIC_BASE_URL="http://localhost:8082"
export ANTHROPIC_API_KEY="sk-ant-dummy"

🛠️ CLI Help

Use the built-in help setup generator:

nim-proxy --help
nim-proxy config --help
nim-proxy setup-env

To update model mappings:

nim-proxy config --opus deepseek-ai/deepseek-v4-pro --sonnet openai/gpt-oss-120b --haiku z-ai/glm-5.1 --fallback openai/gpt-oss-20b

⚠️ Legal Disclaimer

PLEASE READ CAREFULLY.

  1. Use at Your Own Risk: This tool is provided for educational and developmental purposes. The Author (Mirjan Ali Sha) assumes no responsibility for how this tool is used.
  2. Third-Party Terms: Users are strictly required to check and comply with the Licenses and Terms of Service of NVIDIA NIM and Anthropic. The Author is not responsible for any violations of these third-party agreements.
  3. No Liability: In no event shall the Author be liable for any claims, damages, or other liability, whether in an action of contract, tort, or otherwise, arising from, out of, or in connection with the software.

📜 License

This project is licensed under the MIT License. See the LICENSE file for the full text and additional legal disclaimers.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

nim_proxy-1.1.0.tar.gz (15.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

nim_proxy-1.1.0-py3-none-any.whl (15.8 kB view details)

Uploaded Python 3

File details

Details for the file nim_proxy-1.1.0.tar.gz.

File metadata

  • Download URL: nim_proxy-1.1.0.tar.gz
  • Upload date:
  • Size: 15.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.11

File hashes

Hashes for nim_proxy-1.1.0.tar.gz
Algorithm Hash digest
SHA256 03b26ab79385e069668178cb45d68fb969aa359e1dd82f3dd9d5d6eff3659350
MD5 f22ae0c161801d30d564ad3b743e01a0
BLAKE2b-256 d6f872c67237b2aab39647b05c8b3f51f0e308f617b61fa16ccf7f2fd89b48fb

See more details on using hashes here.

File details

Details for the file nim_proxy-1.1.0-py3-none-any.whl.

File metadata

  • Download URL: nim_proxy-1.1.0-py3-none-any.whl
  • Upload date:
  • Size: 15.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.11

File hashes

Hashes for nim_proxy-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ab3d4ac5a5efefe391b6545548ff03e36cf670bb691b14458a6a825f7626662b
MD5 a8f5a04200a2efad94a589ed9b69a4ae
BLAKE2b-256 8b1a592948178e5024ff172e57a9f02b07dfeba07d8dfbd42cd1bc53bdc05e46

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page