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

pucoding-cli

v1.0.3

Published

Pucoding CLI for configuring Claude Code, Codex, and VS Code

Downloads

75

Readme

pucoding-cli

Pucoding 官方命令行工具,用于快速配置 Claude Code、Codex 和 VS Code 的 API 连接。

安装

npm install -g pucoding-cli

快速开始

安装完成后,直接运行进入交互式向导:

pucoding

向导会引导你完成以下步骤:

  1. 选择要配置的平台(Claude Code 或 Codex)
  2. 选择目标(原生客户端 或 VS Code)
  3. 输入 API Key(Base URL 已预填 Pucoding 默认地址)

pucoding.com 注册账号后即可获取 API Key。

命令列表

交互式向导

pucoding         # 进入主菜单
pucoding init    # 直接进入配置向导

Claude Code 配置

# 配置 Claude Code
pucoding claude configure --api-key 你的KEY

# 配置自定义 Base URL
pucoding claude configure --api-key 你的KEY --base-url https://pucoding.com

# 配置 VS Code 中的 Claude 插件
pucoding claude vscode --api-key 你的KEY

# 删除 Claude Code 配置
pucoding claude delete

Codex 配置

# 配置 Codex
pucoding codex configure --api-key 你的KEY

# 指定模型名(默认 gpt-5.4)
pucoding codex configure --api-key 你的KEY --model gpt-5.4

# 配置 VS Code 中的 Codex 插件
pucoding codex vscode --api-key 你的KEY

# 删除 Codex 配置
pucoding codex delete

其他命令

# 查看所有配置文件路径
pucoding paths

# 查看帮助
pucoding --help

默认地址

| 平台 | Base URL | |------|----------| | Claude Code | https://pucoding.com | | Codex | https://pucoding.com/v1 |

配置文件位置

配置完成后,工具会自动写入以下文件:

| 平台 | 文件路径 | |------|----------| | Claude Code | ~/.claude/settings.json | | Claude VS Code | ~/.claude/config.json | | Codex | ~/.codex/auth.json~/.codex/config.toml | | VS Code | VS Code 用户设置目录下的 settings.json |

Codex CLI 兼容性

为兼容新版 Codex CLI,工具会使用自定义 provider ID openai-custom,不会再覆写内置 openai provider。

model_provider = "openai-custom"
model = "gpt-5.4"
model_reasoning_effort = "high"
disable_response_storage = true

[model_providers.openai-custom]
name = "OpenAI"
base_url = "https://pucoding.com/v1"
wire_api = "responses"
requires_openai_auth = true

如果机器上已存在旧配置:

  • [model_providers.openai]
  • [model_providers.pucoding]
  • model_provider = "pucoding"
  • 缺少 model_provider 或缺少 [model_providers.openai-custom] 的半残配置

工具会在下一次配置或读取状态时自动迁移为 openai-custom,并保留原有 base_urlwire_api、认证相关字段。

默认模型为 gpt-5.4。在 CLI 中你也可以通过 --model 或交互式输入改成任意模型名。

配置生效说明

  • Claude Code / Codex:配置在下次启动应用时生效
  • Shell 环境变量:运行 pucoding codex configure 后需重启终端或重新加载 Shell 配置
  • VS Code:配置后需在 VS Code 中执行「重新加载窗口」

系统要求

  • Node.js >= 18