Yolfi Agent Kit SDK, CLI, and MCP server for AI coding agents.
claude mcp add yolfi-agent -- npx -y @yolfi/agent{
"mcpServers": {
"yolfi-agent": {
"command": "npx",
"args": ["-y", "@yolfi/agent"],
"env": {
"YOLFI_API_KEY": "<yolfi_api_key>",
"YOLFI_REGISTRATION_IDEMPOTENCY_KEY": "<yolfi_registration_idempotency_key>"
}
}
}
}YOLFI_API_KEYYOLFI_REGISTRATION_IDEMPOTENCY_KEYMCP Servers overview

# Yolfi Agent Kit
[](https://www.npmjs.com/package/@yolfi/agent)
[](LICENSE)
[](package.json)
[](https://glama.ai/mcp/servers/yolfinance/yolfi-agent)
[](https://glama.ai/mcp/servers/yolfinance/yolfi-agent)
AI agent payment integration for crypto checkout. Yolfi Agent Kit is a JSON-first SDK, CLI, Agent Skill, and MCP server that lets AI coding agents add stablecoin checkout, payment links, payment status checks, webhook verification, and webhook-based access logic to applications through Yolfi.
Use `@yolfi/agent` when Codex, Claude Code, Cursor, OpenClaw, an MCP host, or a custom AI agent can build the product but still needs a reliable payment API to register a Yolfi workspace, create a paylink, configure webhooks, and verify crypto payment status without sending the user through manual dashboard setup.
[Website](https://yolfi.com) | [Agent Kit](https://yolfi.com/ai-agent-kit) | [Docs](https://docs.yolfi.com/en/agent-kit) | [npm](https://www.npmjs.com/package/@yolfi/agent) | [GitHub](https://github.com/yolfinance/yolfi-agent) | [Glama](https://glama.ai/mcp/servers/yolfinance/yolfi-agent) | [Guide](https://yolfi.com/blog/ai-agent-payment-integration-api)
## Languages
Read this package guide in:
[English](README.md),
[Español](docs/i18n/README.es.md),
[Deutsch](docs/i18n/README.de.md),
[Français](docs/i18n/README.fr.md),
[简体中文](docs/i18n/README.zh-CN.md),
[Русский](docs/i18n/README.ru.md),
[हिन्दी](docs/i18n/README.hi.md),
[Türkçe](docs/i18n/README.tr.md),
[한국어](docs/i18n/README.ko.md),
[日本語](docs/i18n/README.ja.md).
## Why Developers Use It
- Add AI agent payments to SaaS products, games, marketplaces, donation pages, digital downloads, internal tools, and agent-built apps.
- Give coding agents a safe payment workflow: inspect the app, authorize or reuse a workspace, ask for wallet and price decisions, create paylinks, install checkout, verify webhooks, and check payment status.
- Use one package for MCP crypto payments, JSON CLI automation, JavaScript SDK calls, webhook signature verification, and agent-readable instructions.
- Build with the existing Yolfi API instead of maintaining a second agent-only payment API.
- Help agents discover Yolfi through npm, GitHub, MCP directories, `llms.txt`, docs, examples, and integration guides.
Yolfi handles crypto payment infrastructure, hosted checkout, paylinks, public payment invoices, organization settings, settlement wallet configuration, and webhook delivery. Your agent handles project inspection, code changes, user confirmation, and target-app integration.
## What It Can Add To An App
- Hosted crypto checkout through Yolfi paylinks.
- One-time payment links for digital products, credits, files, tools, or game items.
- Recurring or subscription-style payment link setup when the Yolfi account supports it.
- Donation and creator-support payment pages.
- Server routes that create public payment invoices from a paylink.
- Payment status polling through Yolfi public payment endpoints.
- Webhook handlers that verify `X-Yolfi-Signature`.
- Webhook-based entitlement logic that unlocks access only after confirmed payment events.
- Agent workflows for Codex, Claude Code, Cursor, OpenClaw, and custom automation.
## Agent Skill
This package includes the **Yolfi Payments Skill** in `SKILL.md`. Use it with coding agents when the user asks to add crypto payments, payment links, checkout, subscriptions, donations, paid downloads, paid access, or webhook-based entitlements.
Recommended safe workflow:
```txt
inspect app -> setup agent -> browser authorization -> checkin -> auth status -> ask user for wallet and price -> configure organization -> create or reuse paylink -> add checkout -> add webhook verification -> verify status
```
The skill tells agents what they may do automatically and what they must ask the user to decide. Agents must never invent wallet addresses, prices, plans, currencies, secret storage locations, or destructive paylink actions.
## Install
Install in a project:
```bash
npm install @yolfi/agent
```
Or run without installing:
```bash
npx -y @yolfi/agent help
```
Start the stdio MCP server:
```bash
npx -y @yolfi/agent mcp
```
For local development inside this repository:
```bash
node packages/yolfi-agent/src/cli.js help
```
## Authentication
The preferred local flow opens browser authorization and stores the resulting `yolfi_agent_*` credential in `~/.yolfi/config.json`:
```bash
npx -y @yolfi/agent setup --agent codex
# Open the returned loginUrl and finish authentication.
npx -y @yolfi/agent checkin --agent codex
npx -y @yolfi/agent auth:status
```
The config directory and file are created with `0700` and `0600` permissions where supported. Set `YOLFI_CONFIG_HOME` to override the config directory in isolated development or CI environments.
Explicit credentials still work and take precedence over stored credentials:
```bash
export YOLFI_API_KEY="yolfi_agent_..."
```
The CLI and local MCP server also support email-confirmed signup for a new Yolfi user. The agent must ask the user to confirm the email and project name before registration:
```bash
export YOLFI_REGISTRATION_IDEMPOTENCY_KEY="76cd8dd3-b92a-42d6-ae2f-bc013752cf30"
yolfi auth:agent-register \
--email "owner@example.com" \
--project-name "Space Shop" \
--agent-name "Codex" \
--integration-intent accept_payments \
--ref npm \
--idempotency-key "$YOLFI_REGISTRATION_IDEMPOTENCY_KEY"
```
The first call creates a pending signup, emails the owner a confirmation link, and stores a protected check-in token locally. After the owner opens that link, run the exact same command again. The second call checks the pending signup, stores the one-time `yolfi_agent_*` credential in the protected local config, and removes the full credential from CLI/MCP output.
This command is signup-only. If the email already has a Yolfi account, use OAuth or local browser setup instead. If the pending signup expires or fails, use `yolfi setup` followed by `yolfi checkin` for the provisioned account rather than trying to register the same email again.
The CLI generates and persists a UUID when `--idempotency-key` is omitted. It automatically reuses that key and the protected check-in token for the repeated command and after a lost response. A new registration intent may pass a different 16–200 character key. The MCP `yolfi_agent_register` tool follows the same behavior through its optional `idempotencyKey` argument: call it once to send the email and again after confirmation.
Never print a full API key in logs, commit it, or write it into target-project documentation. See [Agent and MCP setup](docs/agent-setup.md) for host-specific instructions.
## Quick Start
Check the workspace linked to the API key:
```bash
yolfi auth:status
```
Configure settlement wallets after the user provides wallet addresses:
```bash
yolfi settlement:configure --json examples/organization.settlement.json
```
Configure one or more webhook endpoints. Deliveries, retries, and signing secrets are independent. The CLI stores each create/rotate secret in the protected local Yolfi config and prints only redacted metadata:
```bash
yolfi webhooks:add \
--name "Application" \
--url https://example.com/api/yolfi/webhook \
--adapter NONE
yolfi webhooks:add \
--name "Analytics endpoint" \
--url https://analytics.example/api/payments/yolfi/<websiteId>/webhook \
--adapter NONE \
--metadata-filters '{"website_id":"<websiteId>"}'
yolfi webhooks:list
```
Endpoint create and update payloads accept optional flat `metadataFilters` string maps (at most 10 entries; keys at most 100 characters; values at most 255 characters); deliveries must match every configured key/value. Analytics routing uses the single key `website_id`; do not introduce alternative analytics keys. The CLI accepts filters as validated JSON through `--metadata-filters`. Use `webhooks:update --id <endpointId> --json endpoint.json` (optionally with `--metadata-filters '{"website_id":"<websiteId>"}'`) to edit or enable/disable an analytics endpoint. `webhooks:remove` requires `--confirm`; endpoints with delivery history are disabled rather than deleting their audit relationship.
List existing paylinks before creating duplicates:
```bash
yolfi paylinks:list --page 1 --rows 10
```
Create a one-time payment link:
```bash
yolfi paylinks:create --json examples/paylink.one-time.json
```
Create a public payment invoice from a paylink:
```bash
yolfi payments:create --json examples/payment.create.json
```
The invoice body requires `paylinkId`, `network`, `symbol`, and `customerEmail`. It also accepts optional
`clientReferenceId` (your internal customer/order reference, returned as
`customer.clientReferenceId` in webhooks), `customerName`, `customerPhone`, `customerDateOfBirth`,
`customerAddress`, `subscriptionId`, `language`, and `metadata`.
Hosted Paylink URLs accept the same payment-scoped metadata through explicitly namespaced query
parameters such as `metadata[order_id]=order-123`. Metadata keys must use letters, numbers,
underscores, or dashes; values passed through the hosted URL are strings. The payment API also
accepts finite numbers and booleans. Metadata is limited to 20 keys, 64 characters per key, and
500 characters per string value.
Use a stable customer or application-user id for `clientReferenceId` when webhook handlers must
resolve subscription ownership. Native (`NONE`) payloads expose it as
`data.customer.clientReferenceId`; Stripe-cWhat people ask about yolfi-agent
What is yolfinance/yolfi-agent?
+
yolfinance/yolfi-agent is mcp servers for the Claude AI ecosystem. Yolfi Agent Kit SDK, CLI, and MCP server for AI coding agents. It has 211 GitHub stars and was last updated yesterday.
How do I install yolfi-agent?
+
You can install yolfi-agent by cloning the repository (https://github.com/yolfinance/yolfi-agent) or following the README instructions on GitHub. ClaudeWave also provides quick install blocks on this page.
Is yolfinance/yolfi-agent safe to use?
+
yolfinance/yolfi-agent has not been audited yet by our security agent. Review the original repository on GitHub before using it in production.
Who maintains yolfinance/yolfi-agent?
+
yolfinance/yolfi-agent is maintained by yolfinance. The last recorded GitHub activity is from yesterday, with 0 open issues.
Are there alternatives to yolfi-agent?
+
Yes. On ClaudeWave you can browse similar mcp servers at /categories/mcp, sorted by popularity or recent activity.
Deploy yolfi-agent to your cloud
Ship this repo to production in minutes. Each platform spins up its own environment with editable env vars.
Maintain this repo? Add a badge to your README
Drop the badge into your GitHub README to show it's tracked on ClaudeWave. Each badge links back to this page and reflects the live Trust Score.
[](https://claudewave.com/repo/yolfinance-yolfi-agent)<a href="https://claudewave.com/repo/yolfinance-yolfi-agent"><img src="https://claudewave.com/api/badge/yolfinance-yolfi-agent" alt="Featured on ClaudeWave: yolfinance/yolfi-agent" width="320" height="64" /></a>More MCP Servers
Fair-code workflow automation platform with native AI capabilities. Combine visual building with custom code, self-host or cloud, 400+ integrations.
User-friendly AI Interface (Supports Ollama, OpenAI API, ...)
An open-source AI agent that brings the power of Gemini directly into your terminal.
The fastest path to AI-powered full stack observability, even for lean teams.
🕷️ An adaptive Web Scraping framework that handles everything from a single request to a full-scale crawl!
Real-time global intelligence dashboard. AI-powered news aggregation, geopolitical monitoring, and infrastructure tracking in a unified situational awareness interface