npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@wxyhjkd/claude-proxy

v1.0.7

Published

Claude CLI with configurable proxy support - route requests through custom domains

Readme

Claude Proxy

A configurable wrapper for @anthropic-ai/claude-code that allows you to use a custom proxy domain.

Installation

From npm (Recommended)

npm install -g @wxyhjkd/claude-proxy

From Source

git clone https://github.com/wxyhjkd/claude-proxy.git
cd claude-proxy/modified-claude-code
npm install
npm link  # This will override the global 'claude' command

Commands

After installation, this package provides two commands:

  • claude - Overrides the original claude command with proxy support
  • ccproxy - Alternative command name for the same functionality

Configuration

Environment Variable (Recommended)

export CLAUDE_PROXY_DOMAIN="your-proxy-domain.com"
export CLAUDE_DEBUG="true"  # Optional: enable debug logging

Required Configuration

The CLAUDE_PROXY_DOMAIN environment variable is required. The package will not work without it.

Usage

CLI Usage

# Set proxy domain
export CLAUDE_PROXY_DOMAIN="my-proxy.example.com"

# Use modified claude command (overrides original)
claude "help me code"

# Or use ccproxy alias
ccproxy "help me code"

Programmatic Usage

import { query } from './sdk.mjs';

// Set environment variable before importing
process.env.CLAUDE_PROXY_DOMAIN = "my-proxy.example.com";

// Use the modified SDK
for await (const chunk of query({ prompt: "Hello" })) {
  console.log(chunk);
}

How It Works

  1. Reads the original @anthropic-ai/claude-code files
  2. Replaces api.anthropic.com with your configured proxy domain
  3. Creates a temporary modified version and executes it

Temporary Files

This package creates temporary files during execution:

  • Location: ${tmpdir}/claude-proxy/claude-code@${version}/
  • Contents: Modified CLI script and required assets (yoga.wasm, vendor folder)
  • Cleanup: Files are kept by default for better performance (can be enabled)
  • Purpose: Ensures the modified claude CLI has access to all necessary dependencies
  • Enable Cleanup: Set CLAUDE_PROXY_CLEANUP=true to clean temp files on exit

Example temp directory: /tmp/claude-proxy/[email protected]/

Configuration Options

  • CLAUDE_PROXY_DOMAIN: Your proxy domain (required)
  • CLAUDE_DEBUG: Set to "true" to enable debug logging (optional)
  • CLAUDE_QUIET: Set to "true" to disable the proxy notification message (optional)
  • CLAUDE_PROXY_CLEANUP: Set to "true" to enable temp file cleanup on exit (optional, default: disabled)

Examples

# Use different proxy domains
export CLAUDE_PROXY_DOMAIN="proxy1.example.com"
claude "write a function"
# Output: [Claude Proxy] Using proxy domain: proxy1.example.com

export CLAUDE_PROXY_DOMAIN="proxy2.example.com" 
ccproxy "debug this code"
# Output: [Claude Proxy] Using proxy domain: proxy2.example.com

# One-liner usage
CLAUDE_PROXY_DOMAIN="my-proxy.com" claude "help me code"

# Quiet mode (no proxy notification)
CLAUDE_QUIET=true claude "help me code"

# Debug mode
CLAUDE_DEBUG=true claude "help me code"

# Enable temp file cleanup (files deleted on exit)
CLAUDE_PROXY_CLEANUP=true claude "help me code"