ag402

Manage Solana USDC payments for API calls via HTTP 402 responses.

9|2|Updated Feb 23, 2026
One-click install
npx skills add https://github.com/AetherCore-Dev/ag402 --skill ag402
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: ag402
Source: https://github.com/AetherCore-Dev/ag402/tree/main/adapters/openclaw/ag402-skill
Command: npx skills add https://github.com/AetherCore-Dev/ag402 --skill ag402

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill enables AI agents to automatically pay for API calls using Solana USDC, abstracting away the complexities of blockchain transactions and payment protocols.

Core Features & Use Cases

  • Autonomous Payments: Agents can pay for API access seamlessly via HTTP 402 responses.
  • Wallet Management: Initialize, check balance, deposit test funds, and view transaction history.
  • Secure Transactions: Implements SSRF protection, input validation, and API key authentication for sensitive commands.
  • Use Case: An AI agent needs to access a premium weather API. When it receives a 402 response, the ag402 Skill automatically uses the agent's pre-funded wallet to pay the required fee in USDC on Solana, allowing the API call to proceed without interruption.

Quick Start

Use the ag402 skill to set up your wallet and check its status.

Frequently Asked Questions about ag402

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do AI agents pay for API calls using Solana USDC?

AI agents pay for API calls using Solana USDC by intercepting HTTP 402 payment-required responses and autonomously executing secure blockchain transactions via the x402 protocol to unlock access.

What is the x402 protocol for autonomous AI agent payments?

The x402 protocol is a payment standard that enables AI agents to autonomously handle HTTP 402 responses by executing blockchain transactions, managing wallet initialization, and verifying balances to pay for API access.

How do I set up a wallet for AI agent payments on Solana?

You set up a wallet for AI agent payments on Solana by initializing a pre-funded USDC wallet, checking its balance, depositing test funds, and viewing transaction history to ensure sufficient funds for autonomous API execution.

Does the x402 protocol protect against SSRF vulnerabilities during autonomous API payments?

Yes, the x402 protocol implementation protects against SSRF vulnerabilities during autonomous API payments by enforcing strict input validation, API key authentication, and budget limits for secure transaction execution.

What are the budget limits for AI agents making autonomous API payments on Solana?

Budget limits for AI agents making autonomous API payments on Solana are configurable constraints that prevent overspending by capping the USDC transaction amounts when an agent responds to HTTP 402 payment requests.

When do I need the x402 protocol for my AI agent's API requests?

You need the x402 protocol for your AI agent's API requests when accessing premium web services that return HTTP 402 responses, requiring automated USDC payments on Solana to proceed without manual intervention.