← 返回 Skills 市场
jbpin

Agentcredit

作者 jbpin · GitHub ↗ · v0.5.0 · MIT-0
cross-platform ✓ 安全检测通过
163
总下载
0
收藏
0
当前安装
6
版本数
在 OpenClaw 中安装
/install agentcredit
功能描述
Provides instant $1-$5 USDC microloans on Base mainnet for AI agents, with fast disbursement, credit checks, and flexible repayment options.
使用说明 (SKILL.md)

AgentCredit — Flash Microloans for AI Agents

Description

AgentCredit provides instant USDC microloans ($1-$5) for AI agents on Base mainnet. When your agent needs USDC for any purpose — x402 payments, API calls, on-chain operations, or agent-to-agent transfers — AgentCredit disburses funds to your wallet in under 2 seconds.

Security & Trust

Credentials & Signing

This skill requires EIP-191 wallet signatures for write operations (register, request loan). Your agent must have access to wallet signing capabilities.

Key points:

  • This skill does NOT store or request private keys
  • Direct loan requests (REST API / MCP) require an EIP-191 signature
  • In facilitator mode, credit is extended transparently during x402 settlement — no additional signature needed (the x402 payment itself is cryptographic proof)
  • Read operations (check_credit, list loans) require NO signatures

On-Chain Addresses

  • Pool wallet: 0x510a64F194CB6196d34C93717d88f13aCF0C979f (BaseScan)
  • USDC contract: 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913 (BaseScan)
  • Network: Base mainnet (CAIP-2: eip155:8453)

How Facilitator Mode Works

AgentCredit operates as an x402 facilitator. When your agent encounters an x402 payment it can't cover, AgentCredit transparently extends a microloan to top up the wallet and complete the payment — no interruption, no human in the loop. The agent repays from subsequent revenue.

This is the core use case: autonomous agents should never fail a payment because of a temporary liquidity gap. Built-in safeguards prevent abuse:

  • Max $5 per loan, max $10 total exposure, max 3 outstanding loans
  • Agents must register (one-time, with EIP-191 signature) before credit is available
  • First 100 x402 settlements are free with no registration
  • Overdue loans block further facilitator settlements until repaid

Limits & Caps

Constraint Value
Max single loan $5 USDC
Max outstanding 3 loans per wallet
Max total exposure $10 per wallet
Pool cap $1,000 USDC

Source & Links

Capabilities

  • Check credit: Query available credit balance and tier for any registered wallet
  • Request loan: Borrow $1-$5 USDC instantly, disbursed on Base in ~2 seconds
  • Repay loan: Repay via x402, direct USDC transfer, or on-chain tx confirmation
  • x402 facilitator: Use as your x402 facilitator URL — credit is extended transparently when your balance is short

Integration

As x402 Facilitator (recommended — fully autonomous)

import { wrapFetch } from '@x402/fetch';
const fetchWith402 = wrapFetch(fetch, walletClient, {
  facilitatorUrl: 'https://agentlending.spekn.com',
});

First 100 settlements free. Register for credit to unlock autonomous borrowing when your balance is short.

As MCP Server

{
  "mcpServers": {
    "agentcredit": {
      "type": "streamable-http",
      "url": "https://agentlending.spekn.com/mcp"
    }
  }
}

Tools: check_credit, request_loan, repay_loan

As REST API

POST /agents/register        — Register wallet (EIP-191 signature required)
GET  /agents/:wallet/credit  — Check credit (no auth)
GET  /agents/:wallet/loans   — List loans (no auth)
POST /loans/request          — Request loan (EIP-191 signature required)
GET  /loans/:id/pay          — Repay via x402 (returns 402)

Full docs: https://agentlending.spekn.com/llms-full.txt

Fee Model

Loans are designed for fast repayment — borrow, use, repay within hours. The exponential curve makes early repayment near-free and penalizes holding.

Timing $1 loan cost (BB tier) Effective rate
1 hour ~$1.005 0.5%
4 hours (target term) ~$1.006 0.6%
24 hours ~$1.02 2%
7 days (penalty zone) ~$2.50 150%
  • Origination fee: $0.005 flat per loan
  • Interest: exponential curve — the rate accelerates over time by design, to incentivize repayment within the 1-4 hour target window
  • Why exponential? Flat rates would make it rational to hold loans indefinitely. The steep 7-day cost exists as a deterrent, not a revenue model — agents that repay promptly (as intended) pay fractions of a cent
  • Higher tiers (BBB, AA+) get lower rates as a reward for good repayment history

Authentication

Write operations require EIP-191 signatures with server-issued nonces for replay protection:

  1. Get a nonce: GET /auth/nonce?wallet=\x3Caddr>&action=register|request_loan — returns a single-use nonce valid for 5 minutes
  2. Sign the message (include the nonce):
    • Register: sign AgentCredit:register:\x3Cwallet_lowercase>:\x3Cnonce>
    • Request loan: sign AgentCredit:request_loan:\x3Cwallet_lowercase>:\x3CamountUsdc>:\x3Cnonce>
  3. Send request with signature and nonce in the body

Read operations and repayments do not require signatures.

Discovery

安全使用建议
This skill appears internally consistent with a Base-USDC microloan facilitator: it correctly requires wallet signatures for writes and exposes REST/MCP endpoints. Before installing: verify the operator (spekn.com) and the GitHub repo and confirm the listed Base addresses on BaseScan; ensure your agent's wallet client requires explicit interactive approvals for signing (do not embed private keys); test only with tiny amounts first; consider disabling autonomous invocation or requiring explicit user consent for write operations so the agent cannot take loans without your approval; if you need more assurance, ask the publisher for source code reproducible builds or an audit of the lending pool and server endpoints.
功能分析
Type: OpenClaw Skill Name: agentcredit Version: 0.5.0 AgentCredit is a microloan service for AI agents on the Base network, facilitating USDC loans ($1-$5) via EIP-191 signatures and x402 payment protocols. The documentation (SKILL.md) provides clear instructions for integration, transparently lists on-chain addresses (e.g., 0x510a...979f), and outlines a fee structure designed to incentivize quick repayment. No evidence of malicious intent, data exfiltration, or prompt injection was found; the service operates through standard API and MCP interfaces (agentlending.spekn.com).
能力标签
cryptorequires-walletcan-make-purchasescan-sign-transactionsrequires-sensitive-credentials
能力评估
Purpose & Capability
The name/description (instant USDC microloans on Base) align with what the SKILL.md instructs: using an HTTP API/facilitator URL, EIP-191 signatures for write operations, and known on-chain addresses. Nothing in the spec asks for unrelated cloud credentials or system access.
Instruction Scope
Instructions are focused on loan operations, registration, and using the facilitator URL. They require wallet signing capability for write ops but do not instruct the agent to read unrelated files or environment variables. Note: facilitator mode is described as 'transparent' for x402 settlements, which means agents may obtain loans without additional user prompts if the agent is allowed to act autonomously.
Install Mechanism
Instruction-only skill with no install steps, code files, or downloads — lowest-risk installation surface. The skill relies on external web endpoints (agentlending.spekn.com) but does not write code to disk.
Credentials
No environment variables or private keys are requested. The only required capability is EIP-191 signing via the agent's wallet client, which is proportionate for on-chain loan operations. However, granting an agent signing power (or embedding a signing key) is high-impact: ensure signing requires explicit user approval and private keys are never handed to the skill.
Persistence & Privilege
Skill is not always-enabled and does not request modification of other skills or system-wide settings. Autonomous invocation is allowed (platform default); combined with facilitator behavior this can let an autonomous agent take microloans, so consider runtime approval controls.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install agentcredit
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /agentcredit 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v0.5.0
Update authentication to use server-issued nonces for replay protection
v0.4.0
Version 0.4.0 - Expanded and clarified the fee model, including a table with example loan costs and timing. - Added details on why the exponential interest model is used, and how it incentivizes fast repayment. - Explained tiered rates for agents with good repayment history. - Added clearer guidance on the expected loan lifecycle and intended use. - Other minor copy and formatting improvements for clarity.
v0.3.1
Fixed credentials section — facilitator mode extends credit transparently via x402 proof, no additional signature needed.
v0.3.0
Reframed facilitator mode as core feature. Removed warning framing — autonomous credit extension is the value proposition, not a risk. Added built-in safeguards section.
v0.2.0
Added security section: credential declaration, on-chain addresses with BaseScan links, facilitator mode warning, limits/caps table, source links. Recommended MCP over facilitator mode for explicit control.
v0.1.0
AgentCredit 0.1.0 — Initial Release - Launches instant USDC microloans ($1–$5) for AI agents on Base mainnet with two-second disbursement. - Provides tools to check credit, request loans, and repay via USDC/x402 with minimal fees and no KYC. - Supports integration as x402 facilitator, MCP server, or REST API. - Limits loans to 3 outstanding / $10 per wallet; quick, EIP-191 signature-based authentication. - Full API and documentation links provided for onboarding.
元数据
Slug agentcredit
版本 0.5.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 6
常见问题

Agentcredit 是什么?

Provides instant $1-$5 USDC microloans on Base mainnet for AI agents, with fast disbursement, credit checks, and flexible repayment options. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 163 次。

如何安装 Agentcredit?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install agentcredit」即可一键安装,无需额外配置。

Agentcredit 是免费的吗?

是的,Agentcredit 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Agentcredit 支持哪些平台?

Agentcredit 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Agentcredit?

由 jbpin(@jbpin)开发并维护,当前版本 v0.5.0。

💬 留言讨论