Community생산성 & 협업github.com

coinbase/pay-for-service

x402 엔드포인트에 자동 USDC 결제를 포함한 유료 API 요청을 보냅니다. 사용자나 에이전트가 유료 API를 호출하거나, x402 요청을 하거나, 유료 서비스를 이용하거나, API 호출 비용을 지불해야 할 때 사용하세요. search-for-service로 서비스를 찾은 후 사용하세요.

pay-for-service란 무엇인가요?

이 스킬은 x402 프로토콜을 기반으로 하는 유료 API 엔드포인트에 자동 USDC 결제를 수행하는 방법을 제공합니다. 개발자와 AI 에이전트가 사전에 결제 수단을 설정할 필요 없이, API 호출 시점에 자동으로 USDC로 결제하여 유료 서비스를 이용할 수 있도록 합니다. 주로 search-for-service 스킬로 서비스를 찾은 후, 해당 서비스의 엔드포인트로 요청을 보낼 때 사용됩니다. Coinbase Onchain Payment Protocol과 호환되며, Claude Code, Cursor, Codex 등 다양한 AI 에이전트 플랫폼에서 활용할 수 있습니다. 사용자는 단순히 유료 API 호출을 지시하기만 하면, 에이전트가 자동으로 x402 인증, USDC 결제, API 응답 처리를 수행합니다.

지원 대상~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/coinbase/agentic-wallet-skills/tree/main/skills/pay-for-service

Installed? Explore more 생산성 & 협업 skills: steipete/gemini, steipete/gh-issues, steipete/skill-creator · View all 6 →

즐겨 사용하는 AI에게 물어보기

이 에이전트 스킬이 미리 로드된 새 채팅을 엽니다.

문서

pay-for-service은(는) 무엇을 하나요?

x402 엔드포인트에 자동 USDC 결제를 포함한 유료 API 요청을 보냅니다. 사용자나 에이전트가 유료 API를 호출하거나, x402 요청을 하거나, 유료 서비스를 이용하거나, API 호출 비용을 지불해야 할 때 사용하세요. search-for-service로 서비스를 찾은 후 사용하세요.

작동 방식

  1. search-for-service 스킬로 유료 API 서비스를 검색하고 엔드포인트 URL을 얻습니다.
  2. 이 스킬이 자동으로 USDC 결제를 처리하고 실제 API 요청을 보냅니다.
  3. 응답은 일반 HTTP 응답과 동일한 형식으로 반환됩니다.

지원 플랫폼

  • Claude Code
  • Cursor
  • Codex

환경 변수

  • COINBASE_API_KEY: Coinbase API 키
  • COINBASE_API_SECRET: Coinbase API 시크릿

사용 예시

사용자: "최신 AI 이미지 생성 서비스를 찾아서 사용해줘"
에이전트: search-for-service를 먼저 실행하여 서비스를 찾은 후, pay-for-service를 호출하여 결제 및 API 요청을 수행합니다.

관련 스킬

  • coinbase/search-for-service: 유료 API 서비스 검색

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/monetize-service

Build and deploy a paid API that other agents can pay to use via x402. Use when you or the user want to monetize an API, make money, earn money, offer a service, sell a service to other agents, charge for endpoints, create a paid endpoint, or set up a paid service. Covers "make money by offering an endpoint", "sell a service", "monetize your data", "create a paid API".

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.

관련 스킬