Search

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 source installs☆ 0 Repository stars

Installation

Follow the repository instructions for this skill and your agent. Review the files and dependencies before adding it to your workflow.

SkillHub CLI

skillhub install gatex402/x402-agentic-creation

Inspect the source and compatibility requirements, then follow its installation steps.

Give your agent the source link and ask it to inspect instructions and dependencies before explaining the installation steps.

View source ↗Guides

Skill instructions

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 information

Source
github
Repository
openclaw/skills
Path
skills/gatex402/x402-agentic-creation
Version
—
Commit
4e6db803bc7a662ddb68fbdb9f63cb09b4cf595b
Classification source
rules
Status
active
Visibility
public

These signals come from indexed source analysis and may lag behind changes. Check the current source files.

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...

Extracted content

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...

Related skills

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.