x402-erc7710
できること
このスキルは、AIエージェントがオンラインサービスに支払うデモを構築するためのものです。リクエストごとの支払いと、設定された上限の範囲内で継続的な支出を許可する権限を組み合わせます。
使う場面
- ✓エージェントに、ウェブサービスへリクエストごとに支払わせたいとき。
- ✓エージェントに、設定された予算の範囲内で、サブスクリプションの支払いを続けさせたいとき。
- ✓有料のウェブサービスが、応答する前に支払いを求めるかを確認したいとき。
スキルのリンク
https://github.com/internet-court/internet-court-skill/blob/main/integrations/x402-erc7710/SKILL.mdコピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。
使い方
いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。
貼り付け用メッセージ
Claude Code、Codex、Cursorの場合:プロジェクトのフォルダで実行するとスキルがインストールされます。
SKILL.mdをダウンロードして、エージェントのスキル用フォルダに入れてください。
AIへの頼み方の例
“エージェントがウェブサービスにリクエストごとに支払うが、その支出は設定された予算の範囲内に収まるようにしたいです。”
毎週5つの新しいスキル。1分で読めます。
仕組み
このスキルは二つの部分を説明します。ウェブサービスは応答する前に支払いを求めることがあり、別の権限が、エージェントが時間をかけて使える金額を管理します。エージェントは、単発のリクエストには前者を、継続的な支出には後者を使います。
技術的な内容(元のSKILL.md)
作者による元のテキスト(英語)をGitHubからそのまま表示しています。
x402 + ERC-7710
Use this skill when a user wants a payment or subscription demo where an agent pays for HTTP resources through x402 and spends only within a bounded delegated permission.
Core Model
- x402 is the per-request payment rail. A protected resource can respond with HTTP
402 Payment Required, payment requirements, and a retry path where the client submits a signed payment payload. A facilitator can verify and settle the payment before the server returns the resource. - ERC-7710 is the capability redemption interface. It standardizes how a delegation manager validates permission context and executes delegated actions on behalf of a delegator.
- ERC-7715 is the wallet permission request layer that can be used to obtain scoped permissions for ERC-7710-style delegation.
Use x402 for "pay now for this HTTP request." Use ERC-7710/7715 for "this agent may keep paying under these constraints."
Discovery-First Boundary
When the user has only asked to use or inspect a paid HTTP service, stay in discovery mode:
- Identify the relevant endpoint or resource.
- Confirm whether it returns
402 Payment Required. - Summarize the advertised x402 requirements: network, token, amount, payee, route, and
extra.assetTransferMethodwhen present. - State that no paid request has been made.
- Ask whether the user wants to set up bounded payment authority.
Do not draft a subscription, mandate, cadence, schedule, spend cap, expiration, or wallet permission until the user asks for setup or confirms they want to continue. Do not infer "daily", "weekly", or "recurring" authority from a product objective alone; wait for the user to approve delegation design.
Good discovery response shape:
I found the paid endpoint and its x402 requirements.
- Endpoint: GET /path
- Network: ...
- Token: ...
- Price: ...
- Payee: ...
I have not made a paid request. Do you want me to help set up bounded payment authority for this task?
Trust Objection Mode
When the user objects to trusting the agent with money, keep the options distinct:
- Basic: an agent-controlled funded wallet. This is not a scoped x402/ERC-7710 permission unless another component enforces it. The main limit is the wallet balance.
- Guarded: a user-approved smart-account or wallet permission that limits service, route, token, payee, amount, budget period, request count, and expiry.
- Adjudicated: guarded permission plus signed intent/receipt evidence and a review path that can continue, constrain, or revoke future use.
Do not assign exact route, price, cadence, or expiry values to the Basic option. Those constraints belong in Guarded or Adjudicated setup after the user chooses that path.
Adjudicated Setup Mode
When the user selects adjudicated authority, proceed to setup instead of drafting a final mandate artifact immediately.
The right response is operational:
- confirm adjudicated mode;
- state that setup may take a while;
- list the steps to create an agent session key, prepare the bounded wallet permission request, open user wallet approval, store the permission artifact, verify the x402 requirements, configure signed evidence, and prepare the review path;
- ask the user to approve the guarded wallet permission in their wallet UI;
- wait for the user's approval message.
Do not ask for arbitrary expiration, schedule, or spend-cap choices in this beat unless the previous conversation lacks enough facts to create a safe testnet permission request. Do not claim the permission is ready before the user approves it.
Subscription Pattern
For subscriptions, do not make x402 stateful. Keep x402 as the request payment protocol and put recurrence in the delegated spend policy.
Recommended policy fields:
type AgentSpendPolicy = {
delegator: `0x${string}`;
delegate: `0x${string}`;
token: `0x${string}`;
allowedPayTo: `0x${string}`;
allowedResourcePattern: string;
maxPerRequest: bigint;
maxPerPeriod: bigint;
periodSeconds: number;
validAfter: number;
validUntil: number;
chainId: number;
revocable: boolean;
};
Execution flow:
- User grants a scoped permission through wallet UX, ideally ERC-7715 when available.
- The returned permission context is stored by the agent or subscription manager.
- Agent requests an x402-protected endpoint.
- Server returns payment requirements.
- Agent verifies requirements against the policy: network, token, amount, merchant, route, expiry, and remaini
よくある質問
有料サービスを見るだけの場合は?
エージェントは、そのサービスが支払いを求めるかを確認し、価格と条件を要約します。あなたが指示するまで、有料のリクエストは行いません。
一回の支払いと継続的な支払いのどちらにも使えますか?
はい。一回のリクエストはリクエストごとの流れを使い、継続的な支出は権限の流れを使います。
このスキルはすぐに実際の支払いを設定しますか?
いいえ。まずサービスを確認し、その後で支払いの権限を設定したいかを尋ねます。
詳細
作者による元の説明
Design and implement demos combining x402 HTTP payments with ERC-7710 smart contract delegations and ERC-7715 wallet permission requests for subscriptions, bounded agent budgets, recurring spend, pay-per-use APIs, and agentic commerce.
人気
- GitHubのスター
- 7.0k
- ランキング
- #13600
- ライセンス
- —
- 更新日
- 2026/10/26
コメント
- …
このリポジトリの他のスキル
internet-court
7.0kエージェントが、他のAIエージェントや有料サービスと安全に支払い、雇用、取引できるよう支援し、適切な専門ガイドを案内します。
genlayer-erc7710-connector
7.0kエージェントが、AIによるレビューの結果を権限の仕組みにつなぎ、悪いレビューがエージェントの権限を制限または取り消せるよう支援します。
genlayer-intelligent-contracts
7.0kエージェントが、別のエージェントが委任された範囲を守ったかを判定するAIの審査役について、ルール、証拠、出力を定義できるよう支援します。
0g-compute
7.0kエージェントに、テスト済みのコードパターンを使って、分散型GPUネットワーク0Gの上で、チャットボット、画像ツール、音声機能を作る方法を教えます。
似ているスキル
add-model-provider
394k安全なセットアップコマンドで新しいAIモデルプロバイダーをOpenClawに接続し、APIキーを平文で残さず、ライブテストを行うようエージェントを支援します。
acp-router
394kClaude CodeやCursorなどのコーディングアシスタントに、OpenClaw経由でタスクを渡し、その作業がそのツール内で行われるようエージェントを支援します。
browser-automation
394kログイン、タブ、応答しなくなったページからの復旧を含め、Webページを段階的に操作するようエージェントに教えます。