AgentFin
/install agentfin
AgentFin — Virtual Cards for Agents
You have access to the AgentFin API. Use it to check your balance, get virtual card credentials for online purchases, and fetch OTP codes for 3DS verification.
Authentication
All requests require a Bearer token. Use the AGENTFIN_API_KEY environment variable.
Authorization: Bearer $AGENTFIN_API_KEY
Base URL: https://agentfin.tech/api
Endpoints
Check Balance & Card Status
curl -H "Authorization: Bearer $AGENTFIN_API_KEY" \
https://agentfin.tech/api/me
Response includes balance (USD string), card object with maskedPan and status, and depositAddress for USDT top-ups.
Get Card Credentials (for online purchases)
curl -H "Authorization: Bearer $AGENTFIN_API_KEY" \
https://agentfin.tech/api/cards/{cardId}/sensitive
Returns pan, cvv, expiryMonth, expiryYear, cardHolderName, billingAddress. Rate limited to 10 requests/minute.
Important: Use the cardId from the /api/me response (card.cardId field).
Fetch Latest OTP Code (for 3DS verification)
curl -H "Authorization: Bearer $AGENTFIN_API_KEY" \
https://agentfin.tech/api/inbox/latest-otp
Returns the most recent email with extracted OTP codes. The extractedCodes field is an array of strings. Use the first element as the verification code.
If a purchase triggers 3DS, wait 10-30 seconds for the OTP email to arrive, then call this endpoint.
Top Up Card Balance
curl -X POST -H "Authorization: Bearer $AGENTFIN_API_KEY" \
-H "Content-Type: application/json" \
-d '{"amount": 50, "currency": "USD"}' \
https://agentfin.tech/api/cards/{cardId}/topup
Moves funds from your account balance to the card. The card is prepaid — you cannot spend more than the loaded amount.
View Transaction History
curl -H "Authorization: Bearer $AGENTFIN_API_KEY" \
https://agentfin.tech/api/me/transactions
Returns all deposits, card charges, top-ups, and refunds.
Typical Purchase Flow
- Check balance with
GET /api/me— ensure sufficient funds - Get card credentials with
GET /api/cards/{cardId}/sensitive - Use PAN, CVV, expiry to fill in payment form on merchant site
- If 3DS is triggered, wait ~15 seconds then
GET /api/inbox/latest-otp - Submit the OTP code from
extractedCodes[0] - Purchase complete
Important Notes
- The card is prepaid. You cannot spend more than the loaded balance.
- Card credentials are rate-limited (10/min). Cache them for the duration of a purchase session.
- OTP codes arrive via email to a dedicated inbox. There may be a 10-30 second delay.
- Fund the account by sending USDT (TRC20) to the deposit address from
GET /api/me.
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install agentfin - 安装完成后,直接呼叫该 Skill 的名称或使用
/agentfin触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
AgentFin 是什么?
Issue virtual Visa/MC cards funded by USDT. Check balance, get card credentials, fetch OTP codes — all via REST API. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 409 次。
如何安装 AgentFin?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install agentfin」即可一键安装,无需额外配置。
AgentFin 是免费的吗?
是的,AgentFin 完全免费(开源免费),可自由下载、安装和使用。
AgentFin 支持哪些平台?
AgentFin 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 AgentFin?
由 elvismusli(@elvismusli)开发并维护,当前版本 v1.0.0。