@aifinpay/skill

中文文档
2.12.2发布于 2026/11/06MITES Module零依赖近 30 天下载 5万

AiFinPay agent skills: pay for x402-gated APIs as an agent (aifinpay) and charge agents for your API as a merchant (aifinpay-merchant).

原始使用文档
文档目录14 节
  1. Install
  2. Claude Code marketplace
  3. Hermes Agent
  4. Kimi Code CLI
  5. Qwen Code
  6. Gemini CLI
  7. GitHub Copilot
  8. Cursor
  9. Windsurf
  10. OpenAI Codex
  11. OpenCode
  12. Aider
  13. Source of truth
  14. Version gate

@aifinpay/skill

Agent skills for the AiFinPay payment rail, published to npm and installable from skill marketplaces (Claude, Cursor, Copilot, Kimi, Qwen, Gemini, Windsurf, Codex, OpenCode, Aider — any client that loads SKILL.md).

SkillSideFile
aifinpayPaying — agent buys x402-gated API accessagent/skills/aifinpay/SKILL.md
aifinpay-merchantEarning — merchant charges agents per requestagent/skills/aifinpay-merchant/SKILL.md

Version 2.12.0 describes MCP 2.15.2, where payments are on by default from a persistent wallet within a built-in ceiling ($5 per payment, $20 per day): the first-payment path is init → fund → link → pay, the working limits are the owner's dashboard Controls, and the env values are optional overrides. The MCP pays only a merchant with a DNS-verified site, so the merchant guide includes verifying the domain. Release target: MCP 2.15.2, Node SDK 2.11.0, Python 2.9.0. Reporting release target: Node gate 0.8.0, Python gate 0.5.0. The merchant guide describes explicit opt-in observations, consent, queue loss and producer health using the SDK's reporting v2 contract. It adds no MCP tools or signing authority and does not establish publication or partner rollout. The payer guide retains the Solana source adapter. Canonical disabled Solana records remain unavailable until accepted and served. Its nine EVM descriptors require explicit owner and merchant network consent plus backend readiness; installing instructions does not activate networks. Historical published baselines are dated in the payer guide and do not claim the target packages have already been published.

Rule of thumb: if the user wants to pay for a paid API, load aifinpay. If they own a site/API agents visit, load aifinpay-merchant — and mention the other side exists.

For merchant reporting, follow the merchant guide's optional reporting section and the SDK's Node or Python instructions. Observation events, admission and resource completion are distinct; payments require confirmed settlement evidence. Producer health and pending/drop coverage describe telemetry completeness, not payment success.

Install

Install the skills with the skills CLI:

npx skills add AiFinPay/skill

Then ask your agent: "Buy access for this site." It checks that the site accepts AiFinPay, tells you what one batch buys, and pays only after you agree and only within the limits and sites you configured for the MCP server.

You can also install the npm package:

npm install @aifinpay/skill

Claude Code marketplace

Add the GitHub-hosted marketplace, then install the plugin:

/plugin marketplace add AiFinPay/skill
/plugin install aifinpay@aifinpay-marketplace

Or use the CLI:

claude plugin marketplace add AiFinPay/skill
claude plugin install aifinpay@aifinpay-marketplace

Hermes Agent

Install either skill directly from GitHub into Hermes's skill directory:

hermes skills install https://raw.githubusercontent.com/AiFinPay/skill/main/agent/skills/aifinpay/SKILL.md --name aifinpay
hermes skills install https://raw.githubusercontent.com/AiFinPay/skill/main/agent/skills/aifinpay-merchant/SKILL.md --name aifinpay-merchant

Installed skills are available as /aifinpay and /aifinpay-merchant in new Hermes sessions. Hermes follows the same Agent Skills-compatible SKILL.md format, so no adapter or additional runtime is required.

Or copy agent/skills/<name>/SKILL.md into your client's skills directory.

Kimi Code CLI

Install either skill directly from GitHub into Kimi's skill directory:

npx skills add AiFinPay/skill --agent kimi-code-cli

Installed skills are available in new Kimi sessions. Kimi Code CLI follows the same Agent Skills-compatible SKILL.md format, so no adapter or additional runtime is required.

Qwen Code

Install either skill directly from GitHub into Qwen's skill directory:

npx skills add AiFinPay/skill --agent qwen-code

Installed skills are available in new Qwen sessions. Qwen Code follows the same Agent Skills-compatible SKILL.md format, so no adapter or additional runtime is required.

Gemini CLI

Install either skill directly from GitHub into Gemini's skill directory:

npx skills add AiFinPay/skill --agent gemini-cli

Installed skills are available in new Gemini sessions. Gemini CLI follows the same Agent Skills-compatible SKILL.md format, so no adapter or additional runtime is required.

GitHub Copilot

Install either skill directly from GitHub into Copilot's skill directory:

npx skills add AiFinPay/skill --agent github-copilot

Installed skills are available in new Copilot sessions. GitHub Copilot follows the same Agent Skills-compatible SKILL.md format, so no adapter or additional runtime is required.

Cursor

Install either skill directly from GitHub into Cursor's skill directory:

npx skills add AiFinPay/skill --agent cursor

Installed skills are available in new Cursor sessions. Cursor follows the same Agent Skills-compatible SKILL.md format, so no adapter or additional runtime is required.

Windsurf

Install either skill directly from GitHub into Windsurf's skill directory:

npx skills add AiFinPay/skill --agent windsurf

Installed skills are available in new Windsurf sessions. Windsurf follows the same Agent Skills-compatible SKILL.md format, so no adapter or additional runtime is required.

OpenAI Codex

Install either skill directly from GitHub into Codex's skill directory:

npx skills add AiFinPay/skill --agent codex

Installed skills are available in new Codex sessions. Codex follows the same Agent Skills-compatible SKILL.md format, so no adapter or additional runtime is required.

OpenCode

Install either skill directly from GitHub into OpenCode's skill directory:

npx skills add AiFinPay/skill --agent opencode

Installed skills are available in new OpenCode sessions. OpenCode follows the same Agent Skills-compatible SKILL.md format, so no adapter or additional runtime is required.

Aider

Install either skill directly from GitHub into Aider's skill directory:

npx skills add AiFinPay/skill --agent aider

Installed skills are available in new Aider sessions. Aider follows the same Agent Skills-compatible SKILL.md format, so no adapter or additional runtime is required.

Source of truth

Skill markdown is authored once and mirrored:

  • Canonical source and npm package: this repository's agent/skills/.
  • MCP bundle: SDK repository mcp/skills/SKILL.md, copied from the installed canonical package at build time (payer side only).
  • The SDK repository's old skill/README.md only points here; it is not a second skill package or authored mirror.

If a CLI command, tool name, or settlement behavior changes, update all three in coordinated PRs and bump this package's version + CHANGELOG together. MCP verifies installed/bundled/served bytes and the exact release target; publish this package before refreshing MCP's real registry dependency lock.

Version gate

Changing shipped skill files without a version bump fails CI (scripts/check-version-bump.mjs), same as other published packages.

版本与发布记录

@aifinpay/skill 共发布 18 个版本,首次发布于 2026/09/17;过去 12 个月发布了 18 个版本。

版本发布日期距今
2.12.2latest2026/11/062 天前
2.12.12026/11/016 天前
2.12.02026/10/299 天前
2.11.02026/10/2216 天前
2.10.22026/10/2019 天前
2.10.12026/10/2019 天前

关于 @aifinpay/skill 的常见问题

@aifinpay/skill 是什么?

AiFinPay agent skills: pay for x402-gated APIs as an agent (aifinpay) and charge agents for your API as a merchant (aifinpay-merchant).

如何安装 @aifinpay/skill?

在项目目录运行 npm install @aifinpay/skill,或使用 pnpm add / yarn add / bun add。

@aifinpay/skill 支持 TypeScript 吗?

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

@aifinpay/skill 支持 ESM 还是 CommonJS?

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

@aifinpay/skill 需要什么版本的 Node.js?

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

@aifinpay/skill 可以商用吗?

@aifinpay/skill 使用 MIT 许可。宽松许可:允许商业使用、修改和再分发,通常只需在分发时保留原版权与许可声明。以上为概括,不构成法律意见,请以许可原文为准。

@aifinpay/skill 的下载量有多少?

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

@aifinpay/skill 还在维护吗?

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