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

@greenhill/callx

v0.1.4

Published

AI runtime switcher for Claude Code and OpenCode

Readme

callx

codexclaudeopencode 一样用 npm install -g 安装的 AI 召唤器。

callx 是一个 Node CLI:

  • 全局安装命令是 call
  • 用户配置统一读取 ~/.config/callx
  • 第一次运行时如果配置目录不存在,会自动初始化

运行时只认这一套结构:

~/.config/callx/
├── providers.json
├── skillpacks/
│   ├── code-skill/
│   └── send-email/
├── sprites/
│   ├── claude-01/
│   └── open-01/
└── .default

安装

前置条件:

  • Node.js 18+
  • OpenCode: npm install -g opencode-ai
  • Claude Code: npm install -g @anthropic-ai/claude-code

安装:

npm install -g @greenhill/callx

如果你是在本地开发这个仓库,也可以直接:

npm install -g .

配置

第一次运行任意 call 命令时,如果 ~/.config/callx 不存在,会自动创建:

  • ~/.config/callx/providers.json
  • ~/.config/callx/skillpacks/
  • ~/.config/callx/sprites/

然后编辑:

$EDITOR ~/.config/callx/providers.json

示例:

{
  "deepseek": {
    "base_url": "https://api.deepseek.com/v1",
    "api_key": "sk-xxx",
    "format": "openai",
    "remark": "日常编码"
  },
  "minimax": {
    "base_url": "https://api.minimaxi.com/anthropic",
    "api_key": "sk-xxx",
    "format": "anthropic",
    "remark": "Claude 兼容线路"
  }
}

其中 remark 是可选字段,用来标记用途、线路或账号备注,运行 call -s 时会显示出来。

使用

call -l
call -d open-01
call
call claude-01
call open-01 -a run "hi"
call -s
call update

更新

如果是通过 npm 全局安装的,直接:

call update

它会执行 npm 全局升级,不会改动 ~/.config/callx。配置里的 providers.jsonsprites/skillpacks/ 都由用户自己维护。

发布

发 npm 包之前,先确保:

  • 你已经登录 npm:npm login --registry=https://registry.npmjs.org/
  • git 工作区是干净的

常用命令:

npm run pack:check
npm run release:patch
npm run publish:npm

如果想一步完成升级版本并发布:

npm run release:patch:publish

版本管理建议:

  • 修复 bug 用 patch
  • 加兼容性功能用 minor
  • 有破坏性变更用 major

创建新 Sprite

mkdir -p ~/.config/callx/sprites/my-agent/{agents,commands,modes,plugins,skills,tools,themes}
cat > ~/.config/callx/sprites/my-agent/config.json <<'EOF'
{
  "cli": "opencode",
  "provider": "deepseek",
  "model": "deepseek/deepseek-chat",
  "autoupdate": true,
  "skill_links": ["code-skill"]
}
EOF

然后:

call -l
call my-agent

约定

  • providers.json 是唯一运行时 provider 配置
  • skillpacks/ 是技能源目录
  • sprites/ 是所有 AI 角色目录
  • 每个 sprite 启动时会自动把 skill_links 链接到自己的 skills/

许可证

GPL-3.0