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

pdh-ai-cli

v1.0.8

Published

AI CLI configuration tool for pdhlzy.com - configure API keys for Claude Code, Codex, Gemini CLI, OpenCode and OpenClaw

Readme

PDH AI CLI

面向 pdhlzy.com 的 AI CLI 一键配置工具

用于快速配置以下工具接入 pdhlzy.com

  • Claude Code
  • Codex
  • Gemini CLI
  • OpenCode
  • OpenClaw

安装与使用

临时运行

npx pdh-ai-cli

全局安装

npm install -g pdh-ai-cli
pdh-ai

默认接入地址

  • Claude:https://pdhlzy.com
  • Codex / OpenAI:https://pdhlzy.com/v1
  • Gemini:https://pdhlzy.com

Codex 临时配置说明

  • 如果你要使用 Codex / Codex App 的当前会话配置,建议你先进入原来正在使用的项目目录,再运行:
pdh-ai
  • 如果不想原始项目任务、项目上下文或历史视图看起来像丢失,请尽量在原项目目录中运行本脚本。
  • 对于 Codex App 临时配置:
    • 临时修改当前接口配置
    • 保留原有记录和旧会话
    • 使用期间不要关闭当前窗口
    • 完成后按提示恢复配置
    • 恢复完成后,如需继续使用原配置,请重新打开 Codex App

配置目标

Claude Code

写入 ~/.claude/settings.json

{
  "env": {
    "ANTHROPIC_API_KEY": "你的 Key",
    "ANTHROPIC_BASE_URL": "https://pdhlzy.com"
  }
}

Codex

会修改:

  • ~/.codex/auth.json
  • ~/.codex/config.toml

并自动设置 pdh provider。

Gemini CLI

写入 ~/.gemini/.env

GEMINI_API_KEY=你的 Key
GOOGLE_GEMINI_BASE_URL=https://pdhlzy.com

OpenCode

写入 ~/.config/opencode/opencode.json

OpenClaw

写入 ~/.openclaw/openclaw.json

备份机制

修改配置前会自动生成备份文件:

原文件名.bak.<timestamp>

发布信息

  • npm 包名:pdh-ai-cli
  • 全局命令:pdh-ai

License

MIT

Acknowledgement

This package is a modified redistribution for PDH usage. Please retain the original MIT license terms when publishing further derivatives.