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

@agent-hubs/runtime-client

v0.1.1

Published

Agent Hub local runtime client for connecting local Codex CLI to a shared Gateway.

Readme

@agent-hubs/runtime-client

Agent Hub 本机 Runtime Client,用于把本机 Codex CLI 接入共享 Gateway。

安装后会提供两个命令:

  • agent-runtime:推荐正式命令
  • gateway:兼容旧脚本的别名

前置要求

  • Node.js >=20
  • 本机已安装并登录 Codex CLI

先确认本机能执行:

codex --help

Windows:

where codex
codex --help

安装

正式安装方式:

npm install -g @agent-hubs/runtime-client

安装后验证:

agent-runtime --help

如果使用本地 tarball 调试:

npm install -g agent-hubs-runtime-client-0.1.0.tgz

启动本机 Runtime Client

Mac/Linux:

agent-runtime runtime serve --provider codex --gateway-url http://<gateway-host>:3010

Windows CMD:

agent-runtime runtime serve --provider codex --gateway-url http://<gateway-host>:3010

启动后会自动:

  • 探测本机 codex 可执行文件
  • 执行 codex --help 自检
  • 注册到共享 Gateway
  • 定时发送心跳
  • 领取任务并在本机执行 Codex CLI
  • 回传结果

绑定机器人

先在平台机器人编辑页重新签发 botKey,然后在同一台 runtime 机器上执行:

交互式引导:

agent-runtime onboard

执行后会依次提示:

  1. 选择 Agent 类型:codex / claude_code / custom
  2. 输入 Gateway URL
  3. 输入 Platform API URL
  4. 输入 botKey

非交互式命令:

agent-runtime onboard \
  --provider codex \
  --gateway-url http://<gateway-host>:3010 \
  --platform-url http://<api-host>:3001/api/v1 \
  --bot-key botkey_xxx

Windows CMD 单行:

agent-runtime onboard --provider codex --gateway-url http://<gateway-host>:3010 --platform-url http://<api-host>:3001/api/v1 --bot-key botkey_xxx

发布与升级

维护者发布新版本前先升级版本号:

npm version patch --workspace @agent-hubs/runtime-client

发布到 npm registry:

npm publish --workspace @agent-hubs/runtime-client --access public --otp <6位验证码>

发布成功后验证:

npm view @agent-hubs/runtime-client version
npm install -g @agent-hubs/runtime-client
agent-runtime --help

说明:

  • @agent-hubs/runtime-client 是 npm 包名。
  • agent-runtime 是安装后提供的命令名。
  • 如果 npm 账号开启了发布 2FA,发布时需要传 --otp

查看状态

agent-runtime sessions --provider codex --gateway-url http://<gateway-host>:3010

解绑

agent-runtime unbind --provider codex --gateway-url http://<gateway-host>:3010 --session-id codex-session-xxx

环境变量

  • AGENT_HUB_GATEWAY_URL
  • AGENT_HUB_PLATFORM_URL
  • GATEWAY_CODEX_TIMEOUT_MS

示例:

AGENT_HUB_GATEWAY_URL=http://127.0.0.1:3010 agent-runtime runtime serve --provider codex