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

duojie-helper

v0.2.21

Published

Duojie API 一键配置助手 - 支持 Claude Code, Droid, OpenClaw, Cursor, Cline 等主流 AI 编程工具

Readme

Duojie Helper

🎮 Duojie API 一键配置助手 - 支持主流 AI 编程工具

一条命令,配置所有 AI 编程工具!

✨ 特性

  • 🚀 一键配置 - 交互式向导,傻瓜式操作
  • 🔄 智能合并 - 不覆盖已有配置,只添加/更新 Duojie 相关配置
  • 🛠️ 多工具支持 - Claude Code, OpenClaw, OpenCode, Cursor, Cline, Codex, Continue
  • 📊 状态检测 - 查看各工具配置状态
  • ↩️ 可撤销 - 随时撤销配置,恢复原状

🚀 快速开始

# 一键配置(推荐使用 @latest 确保最新版本)
npx duojie-helper@latest

# 或者全局安装
npm install -g duojie-helper
duojie

⚠️ 提示: 建议使用 npx duojie-helper@latest 以确保使用最新版本。如果遇到版本问题,可以清理 npx 缓存:

  • Windows: rd /s /q "%USERPROFILE%\.npm\_npx"
  • macOS/Linux: rm -rf ~/.npm/_npx

运行后会引导你:

  1. 输入 Duojie API Key
  2. 选择要配置的工具
  3. 自动配置所有可用模型!

📋 支持的工具

自动配置

| 工具 | 命令 | 说明 | |------|------|------| | Claude Code | claude | Anthropic 官方 CLI | | OpenClaw | openclaw | 多平台 AI 助手网关 | | OpenCode | opencode | 终端 AI 编码助手 | | Continue | continue | VS Code/JetBrains 插件 | | Codex CLI | codex | OpenAI Codex 命令行 |

手动配置(输出配置信息)

| 工具 | 命令 | 说明 | |------|------|------| | Cursor | cursor | AI 代码编辑器 (需 Pro 订阅) | | Cline | cline | VS Code AI 插件 |

🔧 命令

# 交互式配置向导
npx duojie-helper@latest
npx duojie-helper@latest init

# 配置单个工具
npx duojie-helper@latest config claude -k sk-xxx
npx duojie-helper@latest config opencode

# 查看配置状态
npx duojie-helper@latest status

# 列出支持的工具
npx duojie-helper@latest list

# 撤销配置
npx duojie-helper@latest revoke          # 撤销全部
npx duojie-helper@latest revoke claude   # 撤销单个

📖 使用示例

交互式配置(推荐)

$ npx duojie-helper@latest

╔═══════════════════════════════════════════════════════════╗
║   🎮  Duojie API 配置助手                                 ║
╚═══════════════════════════════════════════════════════════╝

? 请输入你的 Duojie API Key: ********
? 选择要配置的工具:
  ◉ 🤖 Claude Code - 自动配置
  ◉ 🦞 OpenClaw / Moltbot - 自动配置
  ◉ 🖥️  OpenCode - 自动配置
  ◯ 📝 Cursor - 输出配置信息

✅ 配置结果:
──────────────────────────────────────────────────
  ✓ Claude Code: 已配置 → ~/.claude/settings.json
  ✓ OpenClaw: 已配置 3 个模型 → ~/.openclaw/openclaw.json
  ✓ OpenCode: 已配置 3 个模型 → ~/.config/opencode/opencode.json
──────────────────────────────────────────────────

🎉 配置完成!

配置单个工具

# 配置 Claude Code
npx duojie-helper@latest config claude -k sk-your-api-key

# 配置 OpenCode(会提示输入 key)
npx duojie-helper@latest config opencode

查看状态

$ npx duojie-helper@latest status

📊 配置状态:

  ✓ Claude Code          已配置 Duojie API
  ✓ OpenClaw             已配置 Duojie API
  ✓ OpenCode             已配置 Duojie API
  ○ Continue             未配置
  ○ Cursor               未检测到

🔑 获取 API Key

访问 api.duojie.games 获取你的 API Key。

📝 配置文件位置

| 工具 | 配置路径 | |------|----------| | Claude Code | ~/.claude/settings.json | | OpenClaw | ~/.openclaw/openclaw.json | | OpenCode | ~/.config/opencode/opencode.json | | Continue | ~/.continue/config.json | | Codex | ~/.codex/config.toml | | Cursor | Cursor Settings → Models | | Cline | Cline 插件设置 |

⚠️ 注意事项

  1. 不会覆盖已有配置 - 工具只会添加或更新 Duojie 相关的配置项
  2. 重启生效 - 配置后需要重启相应的工具
  3. 可随时撤销 - 使用 revoke 命令可以撤销配置

🤝 贡献

欢迎提交 Issue 和 PR!

📄 License

MIT


Made with ❤️ by Duojie