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-proxy-setup

v2.2.0

Published

Claude API 中转站配置工具 - 一键配置环境变量

Readme

Claude Proxy Setup

Claude API 中转站一键配置工具

安装

方式1:全局安装(推荐)

npm install -g claude-proxy-setup
setup-claude-proxy

方式2:npx 运行(无需安装)

npx claude-proxy-setup

方式3:直接下载脚本

curl -fsSL https://www.88code.org/setup_api.sh | bash

功能特性

✅ 自动检测操作系统(Linux/macOS/Windows) ✅ 交互式引导配置 ✅ 支持 Claude API 和 Codex API (GPT-5) ✅ 自动配置环境变量 ✅ 连接测试验证 ✅ 提供代码使用示例

使用说明

配置 API

运行后会出现交互式界面:

  1. 选择 API 类型(Claude 或 Codex)
  2. 输入您的 API Key
  3. 选择配置方式(临时/永久)
  4. 自动测试连接

清理环境变量

自动清理(推荐): 运行 claude-proxy-setup 配置工具时,如果不需要 ANTHROPIC_MODEL,会自动清理该环境变量。清理功能已集成到主程序中。

手动清理: 如果需要单独清理 ANTHROPIC_MODEL 环境变量,有三种方式:

方式 1:Node.js 版本(推荐)

clean-anthropic-model

✅ 跨平台、功能完整、自动广播系统消息

方式 2:PowerShell 完整版(Windows)

clean-env-ps

✅ 原生 PowerShell 体验、彩色输出、详细的验证信息

方式 3:直接运行 PowerShell 脚本

# 从包安装目录运行
powershell -ExecutionPolicy Bypass -File "node_modules\claude-proxy-setup\clean-env.ps1"

说明: 所有三种方式功能相同,都支持:

  • 删除用户和系统环境变量
  • 广播 Windows 系统消息
  • 验证删除结果
  • 提供详细的错误处理

配置的环境变量

Claude API

  • ANTHROPIC_AUTH_TOKEN - 您的 API Key
  • ANTHROPIC_BASE_URL - https://www.88code.org/api

Codex API (GPT-5)

  • OPENAI_API_KEY - 您的 API Key
  • OPENAI_BASE_URL - https://www.88code.org/openai/v1

使用示例

Claude API (Python)

from anthropic import Anthropic

client = Anthropic()  # 自动读取环境变量

response = client.messages.create(
    model="claude-sonnet-4-20250514",
    max_tokens=1024,
    messages=[{"role": "user", "content": "Hello!"}]
)

print(response.content[0].text)

Codex API (Python)

from openai import OpenAI

client = OpenAI()  # 自动读取环境变量

response = client.chat.completions.create(
    model="gpt-5-medium",
    messages=[{"role": "user", "content": "Hello!"}]
)

print(response.choices[0].message.content)

服务地址

https://www.88code.org

License

MIT