coinbase/monetize-service

Créez et déployez une API payante que d'autres agents peuvent utiliser via x402, pour monétiser un service ou vendre un accès à des endpoints.

Qu'est-ce que monetize-service ?

Cette compétence permet de construire et déployer une API payante exploitant le protocole x402 pour facturer d'autres agents. Elle est utile pour les développeurs et les IA qui souhaitent monétiser leurs données, offrir un service ou vendre l'accès à des endpoints spécifiques. La compétence gère l'ensemble du cycle de vie : définition des endpoints, configuration des prix par requête, intégration des paiements via x402, et déploiement. Elle supporte les plateformes d'agents comme Claude Code, Cursor ou Codex qui implémentent le standard x402, permettant ainsi une interopérabilité économique automatique entre agents.

Compatible avec~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/coinbase/agentic-wallet-skills/tree/main/skills/monetize-service

Installed? Explore more Productivité et collaboration skills: steipete/gemini, steipete/gh-issues, steipete/skill-creator · View all 6 →

Demander à votre IA préférée

Ouvre une nouvelle conversation avec cette compétence d'agent déjà préchargée.

Documentation

Que fait monetize-service ?

Créez et déployez une API payante que d'autres agents peuvent payer pour utiliser via x402. Utilisez-la lorsque vous ou l'utilisateur souhaitez monétiser une API, gagner de l'argent, proposer un service, vendre un service à d'autres agents, facturer des endpoints, créer un endpoint payant ou mettre en place un service payant. Couvre les cas "gagner de l'argent en proposant un endpoint", "vendre un service", "monétiser vos données", "créer une API payante".

Fonctionnalités

  • Déploiement rapide d'une API avec endpoints payants
  • Intégration native du protocole x402 pour les micropaiements
  • Configuration flexible des prix par requête
  • Compatible avec les agents IA utilisant x402 (Claude Code, Cursor, Codex...)

Utilisation

  1. Clonez le dépôt
  2. Installez les dépendances : pip install -r requirements.txt
  3. Configurez vos variables d'environnement :
    • X402_PRIVATE_KEY : votre clé privée x402
    • DATABASE_URL : URL de la base de données
  4. Définissez vos endpoints dans endpoints.yaml
  5. Lancez le serveur : uvicorn app.main:app --reload

Exemple de configuration

endpoints:
  - path: "/predict"
    method: POST
    price: 0.01  # en tokens x402
    description: "Prédiction basée sur un modèle ML"

Intégration avec un agent client

import httpx
from x402 import create_payment_header

# L'agent client crée un header de paiement
headers = create_payment_header("0.01")
response = httpx.post("https://votre-api.com/predict", headers=headers, json={"data": [...]})

Licence

MIT

Individual skills in this repo

This repo contains 8 individual skills — each has its own dedicated page.

coinbase/authenticate-wallet

Sign in to the wallet. Use when you or the user want to log in, sign in, connect, or set up the wallet, or when any wallet operation fails with authentication or "not signed in" errors. This skill is a prerequisite before sending, trading, or funding.

coinbase/fund

Add money to the wallet. Use when you or the user want to fund, deposit, top up, load, buy USDC, add funds, onramp, or get USDC. Also use when the wallet has insufficient balance for a send or trade operation, or when someone asks "how do I get USDC?"

coinbase/pay-for-service

Make a paid API request to an x402 endpoint with automatic USDC payment. Use when you or the user want to call a paid API, make an x402 request, use a paid service, or pay for an API call. Use after finding a service with search-for-service.

coinbase/query-onchain-data

Query onchain data on Base using the CDP SQL API via x402. Use when you or your user want to view onchain information about decoded blocks, transactions, and events.

coinbase/search-for-service

Search and browse the x402 bazaar marketplace for paid API services. Use when you or the user want to find available services, see what's available, discover APIs, or need an external service to accomplish a task. Also use as a fallback when no other skill clearly matches — search the bazaar to see if a paid service exists. Covers "what can I do?", "find me an API for...", "what services are available?", "search for...", "browse the bazaar".

coinbase/send-usdc

Send tokens (USDC, ETH, POL, or SOL) to an address or ENS name on Base, Polygon, or Solana. Use when you or the user want to send money, pay someone, transfer tokens, tip, donate, or send funds to a wallet address or .eth name. Covers phrases like "send $5 to", "pay 0x...", "transfer to vitalik.eth", or "send USDC on Solana".

coinbase/trade

Swap or trade tokens on Base or Polygon. Use when you or the user want to trade, swap, exchange, buy, sell, or convert between tokens like USDC, ETH, and POL. Covers phrases like "buy ETH", "sell ETH for USDC", "convert USDC to ETH", "get some ETH", "buy POL".

coinbase/x402

Search for new services and make paid API requests using the x402 payment protocol. Use when you don't have a clear tool to choose, search the bazaar. You can also use this tool if you or the user want to call an x402 endpoint, discover payment requirements, browse the bazaar, or search for paid services.

Skills associés