@dvmkit/dvmctl

中文文档
0.20.0发布于 2026/11/11Apache-2.0ES Module构建来源已验证近 30 天下载 4483

Build and deploy Digital Vending Machines: pay-per-use HTTPS services that AI agents can find, pay, and call with no account or API key

原始使用文档
文档目录9 节
  1. Install
  2. For agents
  3. First DVM
  4. Reference
  5. Security
  6. Contributing
  7. Support
  8. Trademarks
  9. License

dvmctl

Build and deploy Digital Vending Machines: pay-per-use HTTPS services that AI agents can find, pay, and call with no account or API key. Ships the build-dvm agent skill.

Alpha software. This is a pre-1.0 alpha; breaking changes are announced in the release notes.

Install

Node.js 22 or later and npm are required.

Install the CLI:

npm install --global @dvmkit/dvmctl

For agents

Install the complete bundled skill directory so its task modules and payment recipes remain available. For Claude Code:

mkdir -p ~/.claude/skills
cp -R "$(npm root --global)/@dvmkit/dvmctl/skills/build-dvm" ~/.claude/skills/

Codex uses ~/.codex/skills/ and other Agent Skills harnesses use ~/.agents/skills/; agent setup has the full list.

After npm update --global @dvmkit/dvmctl, copy the skill again.

The skill entry routes new builds, testing, deployment, operation, recovery, and retirement to separate files. Read only the procedure for the current task. Exact command and SDK contracts live in the published docs.

First DVM

After copying the skill, ask your agent: “Load build-dvm, create a service in my-dvm, and prove a local job works before deployment.” The new-builder procedure covers handler, environment, and testing decisions.

To scaffold directly, run dvmctl create my-dvm, enter the directory, install its dependencies, then run npm run typecheck, npm test, and dvmctl validate. Start local development with dvmctl dev handler.ts. The generated README explains the environment. Follow the skill's testing procedure to prove a job round-trip, then its deployment procedure when local checks pass.

Reference

Commands return structured output by default. Use --human for terminal output and dvmctl --help for the command list.

To launch unlisted, deploy, then run dvmctl visibility my-dvm --hidden. The DVM may appear in discovery before that command completes; hiding it keeps it callable by URL. Run dvmctl visibility my-dvm --listed to list it again. See the deployment procedure for org scope and permissions.

Builder keys, recovery words, and records live in ~/.dvmkit; set DVMKIT_CONFIG_DIR before creating them to select another directory. This is separate from DVMCTL_CONFIG_DIR, which moves authentication state in ~/.dvmctl; caller wallet state uses DVM_CONFIG_DIR (default ~/.dvm).

Payment setup, secrets, content holds, financial export, and retirement are covered by the skill's task procedures and the dvmctl reference.

The CLI pins @dvmkit/sdk in package.json, and new scaffolds inherit that exact version. dvmctl dev and dvmctl serve use the CLI's pinned SDK, print its version, and warn when the project's installed SDK differs. The local /_dev test page also shows the serving SDK version.

Security

Report vulnerabilities privately; see SECURITY.md.

Contributing

Issues and discussions are welcome; pull requests are closed automatically. See CONTRIBUTING.md.

Support

For help, see SUPPORT.md.

Trademarks

See TRADEMARKS.md for name and logo usage.

License

Apache-2.0. See LICENSE and NOTICE.

版本与发布记录

@dvmkit/dvmctl 共发布 38 个版本,首次发布于 2026/09/06;过去 12 个月发布了 38 个版本。最新版本附带 npm provenance 构建来源证明,可追溯到公开的 CI 构建记录。

版本发布日期距今
0.20.0latest2026/11/112 天前
0.19.02026/11/112 天前
0.18.02026/11/112 天前
0.17.32026/11/103 天前
0.17.22026/11/094 天前
0.17.12026/11/085 天前

其他发布通道:bootstrap → 0.0.0,next → 0.5.0-rc.5。

关于 @dvmkit/dvmctl 的常见问题

@dvmkit/dvmctl 是什么?

Build and deploy Digital Vending Machines: pay-per-use HTTPS services that AI agents can find, pay, and call with no account or API key

如何安装 @dvmkit/dvmctl?

在项目目录运行 npm install @dvmkit/dvmctl,或使用 pnpm add / yarn add / bun add。它还提供命令行工具 dvmctl,可以用 npx dvmctl 直接运行。

@dvmkit/dvmctl 支持 TypeScript 吗?

该包的 package.json 没有声明类型入口。需要类型提示时,可以在 npm 上查找社区维护的 @types/dvmkit__dvmctl 是否存在。

@dvmkit/dvmctl 支持 ESM 还是 CommonJS?

以 ES Module 形式发布,推荐使用 import 引入。在 CommonJS 项目中,Node.js 20.19+ / 22.12+ 可以直接 require() 不含顶层 await 的 ES Module,更早的版本需要改用动态 import()。

@dvmkit/dvmctl 需要什么版本的 Node.js?

package.json 的 engines 字段要求 Node.js >=22。版本不符时 npm 默认只给出警告,开启 engine-strict 后会拒绝安装。

@dvmkit/dvmctl 可以商用吗?

@dvmkit/dvmctl 使用 Apache-2.0 许可。宽松许可:允许商业使用、修改和再分发,并附带明确的专利授权;分发时需保留许可与 NOTICE 文件,修改过的文件要注明改动。以上为概括,不构成法律意见,请以许可原文为准。

@dvmkit/dvmctl 的下载量有多少?

根据 npm 官方下载统计,@dvmkit/dvmctl 在 2026/10/13 – 2026/11/11 这 30 天内被下载 4,483 次,日均约 149 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入,适合横向比较热度,不能直接等同于使用人数。

@dvmkit/dvmctl 还在维护吗?

最新版本 0.20.0 发布于 2026/11/11(2 天前);至今共发布 38 个版本,其中过去 12 个月发布了 38 个;首次发布于 2026/09/06。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。