@dvmkit/dvm-cli

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

Command-line client and agent skill for Digital Vending Machines: pay-per-use HTTPS services AI agents can find, pay, and call with no account or API key

原始使用文档
文档目录8 节
  1. Install
  2. For agents
  3. First job
  4. What's in the package
  5. Next steps
  6. Development
  7. Community
  8. License

dvm

The command-line client and agent skill for Digital Vending Machines: pay-per-use HTTPS services that AI agents can find, pay, and call with no account or API key.

Alpha software: run with small balances and review spend regularly. This is a pre-1.0 alpha; breaking changes are announced in the release notes.

Requires Node.js 22 or later.

Install

npm install --global @dvmkit/dvm-cli
dvm init

dvm init returns JSON with status: "created" on first setup and the message "Local setup is ready. Nothing has been funded yet, so nothing can be spent yet." It also reports the configuration path and wallet setup steps.

For agents

Copy the bundled dvm skill into your agent's skill directory. For Claude Code:

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

Codex uses ~/.codex/skills/ and other Agent Skills harnesses use ~/.agents/skills/; agent setup has the full list. Load the copied skill before asking your agent to run a job.

Keep the skill and CLI on the same package version. After npm update --global @dvmkit/dvm-cli, copy the skill again.

First job

For a first job, ask your agent: "Load the dvm skill, find a service for my task, and show me its price before spending." The skill's calling procedure takes over from discovery through submitting a job and retrieving its result. If payment is needed, its wallet procedure explains the human steps for connecting or funding a wallet. Commands return structured JSON by default; use --human for direct terminal reading. dvm messages <job-id> --wait instead writes one JSON object per line as the job runs, ending with a result or error line; the calling procedure explains how to read it.

What's in the package

Entry pointPurpose
dvmDiscover services, submit jobs, manage payments, and retrieve results.
skills/dvmTeach your agent the calling, wallet, credit, and recovery procedures.

Reference: every command, flag, JSON shape, and error code is in the dvm CLI reference.

Next steps

  • Agent setup: load the skill in your agent's harness.
  • Wallets: connect a wallet when a job needs payment.
  • Budgets: set limits before spending.

Development

See docs/development.md for building and verifying this repository. Release automation is documented in docs/releasing.md.

Community

Bug reports and discussions are welcome, but this repository does not accept unsolicited pull requests, including documentation and typo fixes. See CONTRIBUTING.md for the contribution policy and reporting routes.

Report suspected vulnerabilities only through the private route in SECURITY.md.

See SUPPORT.md for support boundaries and the Code of Conduct for community expectations.

License

Apache-2.0. See LICENSE and NOTICE. See TRADEMARKS.md for the distinction between Apache-licensed code and dvmkit names and marks.

版本与发布记录

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

版本发布日期距今
0.19.0latest2026/11/13今天
0.18.02026/11/13今天
0.17.02026/11/13今天
0.16.02026/11/121 天前
0.15.32026/11/085 天前
0.15.22026/11/076 天前

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

关于 @dvmkit/dvm-cli 的常见问题

@dvmkit/dvm-cli 是什么?

Command-line client and agent skill for Digital Vending Machines: pay-per-use HTTPS services AI agents can find, pay, and call with no account or API key

如何安装 @dvmkit/dvm-cli?

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

@dvmkit/dvm-cli 支持 TypeScript 吗?

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

@dvmkit/dvm-cli 支持 ESM 还是 CommonJS?

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

@dvmkit/dvm-cli 需要什么版本的 Node.js?

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

@dvmkit/dvm-cli 可以商用吗?

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

@dvmkit/dvm-cli 的下载量有多少?

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

@dvmkit/dvm-cli 还在维护吗?

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