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 🙏

© 2025 – Pkg Stats / Ryan Hefner

claude-xingchen

v3.0.2

Published

Claude AI proxy - Use official Claude CLI with managed authentication

Readme

Claude Xingchen - Claude AI Proxy

使用托管认证的官方Claude CLI代理。

安装

首先确保已安装官方Claude CLI:

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

然后安装此代理:

npm install -g claude-xingchen

使用方法

1. 登录到代理服务:

claude-proxy login
# 输入用户名和密码

2. 检查登录状态:

claude-proxy status

3. 使用官方Claude CLI:

方式A:登录后,使用claude-proxy命令代替claude命令:

# 进入交互模式(官方CLI的完整体验)
claude-proxy

# 直接提问
claude-proxy "What is 2+2?"

# 使用官方CLI的所有功能
claude-proxy --help
claude-proxy -c              # 继续上次会话
claude-proxy --model opus    # 选择模型

4. 登出:

claude-proxy logout

工作原理

  • claude-proxy login - 登录到代理服务器获取访问令牌
  • claude-proxy logout - 清除本地认证
  • claude-proxy status - 查看登录状态
  • 其他命令 - 设置认证环境变量并调用官方Claude CLI

完全兼容官方CLI的所有功能和选项。

方式B(拦截器直连官方CLI):

# 登录获取JWT(同上)
claude-proxy login

# 使用拦截器启动官方CLI(对话内容将经我方网关)
CLAUDE_PROXY_BASE=http://your-gateway.example.com/claude-api \
claude-intercept -p "你好"

# 可选:设置别名后直接使用 claude
echo "alias claude='CLAUDE_PROXY_BASE=http://your-gateway.example.com/claude-api claude-intercept'" >> ~/.bashrc
source ~/.bashrc

注意:claude-intercept 不修改官方CLI交互体验,只在网络层将 api.anthropic.com 改道到我方网关,并注入登录JWT。

配置

配置文件存储在:~/.claude/config.json

故障排查

官方CLI未找到

# 安装官方CLI
npm install -g @anthropic-ai/claude-code

未登录错误

# 登录到代理服务
claude-proxy login

许可证

MIT