Skip to main content

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

Project description

🚀 nim-proxy

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.
  • 🧠 Native Reasoning: Streams live "Thinking" blocks from GLM and DeepSeek models.
  • 🛡️ 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 .

2. Configure Your API Key (Must)

Run the interactive config command:

nim-proxy config --key your_nvidia_api_key_here

3. Start the Server

nim-proxy start

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


🔗 Connecting Claude Code

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

Manual Setup

Windows (PowerShell)

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

MacOS / Linux (Bash/Zsh)

export ANTHROPIC_AUTH_TOKEN="nim-proxy"; export ANTHROPIC_API_KEY="sk-ant-dummy"; export ANTHROPIC_BASE_URL="http://localhost:8082"; 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

📜 License

MIT

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.0.0.tar.gz (12.1 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.0.0-py3-none-any.whl (12.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: nim_proxy-1.0.0.tar.gz
  • Upload date:
  • Size: 12.1 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.0.0.tar.gz
Algorithm Hash digest
SHA256 d7dee7d3c833051ee552fe4f151201f4bf1735d4fbd1bc01ad2175b576b22bc1
MD5 200daa7bbcdd268369c29a358c139ae5
BLAKE2b-256 fef2b466abcb208ffbf78733a28b0b194b15259446487e032d2ace55dc61261c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: nim_proxy-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 12.6 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.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b426c60376a5440180a5c66f3b738b7c14cbed9f562c422947369df5cb9b283d
MD5 d2ba68b0e4f97b9cfcff49edae51f5e1
BLAKE2b-256 1cbcc3e96b948fca5685ca6c7e9d93203cd123a4eeac9ef566e21ee0d8e5047a

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