搜索

PythonReactSEOPDF
OpenClaw

x402-creation

Monetize your agent's API or tools using the x402 protocol and USDC micropayments. Enables provisioning, earnings tracking, and withdrawals.

gatex4020 来源安装数☆ 0 仓库 Stars

安装与使用

请根据来源仓库和你的 AI 工具说明安装此技能。先阅读技能文件和依赖要求,再添加到工作流。

SkillHub CLI

skillhub install gatex402/x402-agentic-creation

打开来源仓库,查看说明和兼容环境后,按来源提供的命令或步骤安装。

将来源链接提供给你的 Agent,让它先读取说明、核对依赖,并向你说明将执行的安装步骤。

查看来源 ↗使用指南

技能说明

x402-agentic-creation

The monetization layer for the Agentic Web.

Enable your agent to autonomously earn USDC on Base or Solana by monetizing its own API endpoints or services. This skill handles provisioning, earnings tracking, and automated withdrawals via the x402 protocol.

Official Website | LLM Documentation

Platform Data

  • Protocol: x402 (HTTP 402 Payment Required)
  • Currency: USDC (Stablecoin)
  • Networks: Base Mainnet (Ethereum L2), Solana Mainnet
  • Fees: 1% platform fee (99% provider revenue)
  • Payouts: Daily automated withdrawals
  • Min Price: $0.001 per request

x402 Protocol Flow

  1. Challenge: Gateway returns HTTP 402 with payment headers.
  2. Transfer: Agent submits USDC transfer to specified address.
  3. Verification: Facilitator confirms transaction on-chain.
  4. Dispatch: Gateway forwards the authorized request to the provider.

Activation

Add this skill to your agent to allow it to:

  • Provision: Register a new API gateway instance on GateX402.
  • Monetize: Set USDC pricing per request for its tools/endpoints.
  • Withdraw: Transfer USDC earnings to its wallet.

Tools

provision_api

Use this tool to register a new API on the GateX402 gateway.

  • Required Inputs:
    • api_name — Human-readable name for the API.
    • network — CAIP-2 network ID (e.g. eip155:8453 for Base Mainnet, solana:5eykt4UsFv8P8NJdTREpY1vzqAQZSSfL for Solana Mainnet).
    • origin_url — Your API’s base URL (the backend you are monetizing), e.g. https://your-api.example.com. Do not use the gateway URL (api.gatex402.dev).
    • routes — Array of { path_pattern, method, price_usdc } (e.g. path_pattern: "/v1/chat", method: "POST", price_usdc: 0.01).
  • Outcome: Returns only api_slug, provider_id, and a short message in a boundary-wrapped response. The management token is stored by the runtime via `storeManagementTok...

来源信息

Source
github
Repository
openclaw/skills
Path
skills/gatex402/x402-agentic-creation
Version
—
Commit
4e6db803bc7a662ddb68fbdb9f63cb09b4cf595b
分类来源
rules
状态
active
可见性
public

这些信息来自收录时的来源分析,可能滞后;使用前请核对最新来源文件。

README

x402-creation

The monetization layer for the Agentic Web.

GateX402 is an API monetization platform. This repository provides a production-ready Agent Skill that enables AI agents to autonomously earn USDC by monetizing their own API endpoints or services.

Features

  • Self-Provisioning: Automated API gateway setup via wallet-signed handshakes.
  • Earnings Management: Real-time USDC balance tracking and gas-estimated withdrawals.
  • Ecosystem Ready: First-class support for Coinbase Agentic Wallet and the awal CLI.
  • Protocol Native: Built on the x402 HTTP challenge-response standard.

Installation

Recommended (npm + official repo): Install from npm and add the skill from this repository or the installed package. No third-party registry required.

npm install x402-creation

To add this skill in an agent framework, point it at the installed package or at the official repo (e.g. https://github.com/gatex402/monetize-agent-skills or the path to this package). Do not pass wallet keys or management tokens in tool parameters—use createTools with credential injectors (see below).

Alternative (third-party registry): If your environment allows it, you can also add via a compatible registry:

npx skills add gatex402/monetize-agent-skills --skill x402-creation

Prefer the npm + official repo flow when possible for safer, auditable installation.

Quick Start (TypeScript)

Credentials are injected by the host via createTools. The agent never receives wallet private keys or management tokens.

import { createTools } from "x402-creation";

let managementToken: string | null = null;

const tools = createTools({
  getWalletPrivateKey: async () => process.env.AGENT_PRIVATE_KEY!,
  getManagementToken: async () => managementToken ?? "",
  storeManagementToken: (token) => {
    managementToken = token;
  },
});

// 1. Provision a new API (token is stored by storeManagementToken, not returned to agent...

来源内容

SKILL.md
# x402-agentic-creation

**The monetization layer for the Agentic Web.**

Enable your agent to autonomously earn USDC on Base or Solana by monetizing its own API endpoints or services. This skill handles provisioning, earnings tracking, and automated withdrawals via the x402 protocol.

[Official Website](https://gatex402.dev) | [LLM Documentation](https://gatex402.dev/llms-full.txt)

## Platform Data

- **Protocol**: x402 (HTTP 402 Payment Required)
- **Currency**: USDC (Stablecoin)
- **Networks**: Base Mainnet (Ethereum L2), Solana Mainnet
- **Fees**: 1% platform fee (99% provider revenue)
- **Payouts**: Daily automated withdrawals
- **Min Price**: $0.001 per request

## x402 Protocol Flow

1. **Challenge**: Gateway returns HTTP 402 with payment headers.
2. **Transfer**: Agent submits USDC transfer to specified address.
3. **Verification**: Facilitator confirms transaction on-chain.
4. **Dispatch**: Gateway forwards the authorized request to the provider.

## Activation

Add this skill to your agent to allow it to:

- **Provision**: Register a new API gateway instance on GateX402.
- **Monetize**: Set USDC pricing per request for its tools/endpoints.
- **Withdraw**: Transfer USDC earnings to its wallet.

## Tools

### `provision_api`

Use this tool to register a new API on the GateX402 gateway.

- **Required Inputs**:
  - `api_name` — Human-readable name for the API.
  - `network` — CAIP-2 network ID (e.g. `eip155:8453` for Base Mainnet, `solana:5eykt4UsFv8P8NJdTREpY1vzqAQZSSfL` for Solana Mainnet).
  - `origin_url` — **Your API’s base URL** (the backend you are monetizing), e.g. `https://your-api.example.com`. Do not use the gateway URL (`api.gatex402.dev`).
  - `routes` — Array of `{ path_pattern, method, price_usdc }` (e.g. `path_pattern: "/v1/chat"`, `method: "POST"`, `price_usdc: 0.01`).
- **Outcome**: Returns only `api_slug`, `provider_id`, and a short message in a boundary-wrapped response. The management token is stored by the runtime via `storeManagementTok...
README
# x402-creation

**The monetization layer for the Agentic Web.**

GateX402 is an API monetization platform. This repository provides a production-ready **Agent Skill** that enables AI agents to autonomously earn USDC by monetizing their own API endpoints or services.

## Features

- **Self-Provisioning**: Automated API gateway setup via wallet-signed handshakes.
- **Earnings Management**: Real-time USDC balance tracking and gas-estimated withdrawals.
- **Ecosystem Ready**: First-class support for Coinbase Agentic Wallet and the `awal` CLI.
- **Protocol Native**: Built on the x402 HTTP challenge-response standard.

## Installation

**Recommended (npm + official repo):** Install from npm and add the skill from this repository or the installed package. No third-party registry required.

```bash
npm install x402-creation
```

To add this skill in an agent framework, point it at the installed package or at the official repo (e.g. `https://github.com/gatex402/monetize-agent-skills` or the path to this package). Do not pass wallet keys or management tokens in tool parameters—use `createTools` with credential injectors (see below).

**Alternative (third-party registry):** If your environment allows it, you can also add via a compatible registry:

```bash
npx skills add gatex402/monetize-agent-skills --skill x402-creation
```

Prefer the npm + official repo flow when possible for safer, auditable installation.

## Quick Start (TypeScript)

Credentials are injected by the host via `createTools`. The agent never receives wallet private keys or management tokens.

```typescript
import { createTools } from "x402-creation";

let managementToken: string | null = null;

const tools = createTools({
  getWalletPrivateKey: async () => process.env.AGENT_PRIVATE_KEY!,
  getManagementToken: async () => managementToken ?? "",
  storeManagementToken: (token) => {
    managementToken = token;
  },
});

// 1. Provision a new API (token is stored by storeManagementToken, not returned to agent...

相关技能

OpenClaw

bambu-studio-ai

heyixuan2

Bambu Lab 3D printer control and automation. Activate when user mentions: printer status, 3D printing, slice, analyze model, generate 3D, AMS filament, print monitor, Bambu Lab, or any 3D printing task. Full pi...

OpenClaw

geo-optimization

capt-marbles

Generative Engine Optimization (GEO) for AI search visibility. Optimize content to appear in ChatGPT, Perplexity, Claude, and Google AI Overviews. Use when optimizing websites, pages, or content for LLM discove...

OpenClaw

0protocol

0isone

Agents can sign plugins, rotate credentials without losing identity, and publicly attest to behavior.

OpenClaw

0x0-messenger

eijiac24

Send and receive P2P messages using disposable numbers and PINs. No servers, no accounts. Use for human notifications, approval flows, and agent-to-agent communication.