Skip to content
AI & Agents
Skill

/apify-x402-agentic-wallet

Discover, pay for, and run any Apify Actor by paying USDC on Base over the x402 protocol with a Coinbase Agentic Wallet (awal) — no Apify account or API key. You buy one small, spend-capped prepaid Apify token, then run as many Actors as the request needs with it. Use when the

From plugin
awesome-skills
23912 skills1 command
Install
$ npx -y skills add apify/awesome-skills --skill apify-x402-agentic-wallet --agent claude-code

How it fires

How this skill gets triggered: by you, by Claude, or both.

  • Fires itselfAuto-invocation. Claude auto-loads it when your prompt matches the work.Auto-invocation is when the right skill fires by itself at the right moment, driven by a FLOW.md router and a hook, instead of you invoking it by name. It is the difference between a skill being installed and a skill actually getting used.Read the full definition →
  • You can call itInvoke it directly when you want it.
  • Slash command/apify-x402-agentic-wallet

Context preview

The summary Claude sees to decide when to auto-load this skill.

Discover, pay for, and run any Apify Actor by paying USDC on Base over the x402 protocol with a Coinbase Agentic Wallet (awal) — no Apify account or API key. You buy one small, spend-capped prepaid Apify token, then run as many Actors as the request needs with it. Use when the

SKILL.md

apify-x402-agentic-wallet.SKILL.md
name: apify-x402-agentic-wallet
description: Discover, pay for, and run any Apify Actor by paying USDC on Base over the x402 protocol with a Coinbase Agentic Wallet (awal) — no Apify account or API key. You buy one small, spend-capped prepaid Apify token, then run as many Actors as the request needs with it. Use when the user wants to use Apify tools without signing up, pay per use with crypto / USDC, set up an agentic wallet, mentions "x402", "awal", "agentic wallet", "Coinbase wallet", "pay with USDC", "no API key", or asks to pull live web data (social media, search, maps, marketplaces, news) while paying on-chain per use.
author: Martin Forejt
author_url: https://github.com/martinforejt
metadata:
  keywords: "x402, awal, agentic-wallet, coinbase, usdc, base, crypto, pay-per-use, prepaid-token, no-api-key, micropayments, web-data"

Use Apify tools by paying with an agentic wallet (x402)

You are an agent with a Coinbase Agentic Wallet (`awal`). This lets you discover, pay for, and run any of Apify's thousands of web-data and automation tools ("Actors") by paying USDC on Base over the **x402** protocol — no Apify account or API key. Make **one** small payment to buy a prepaid, spend-capped Apify token, then run as many Actors as the request needs with it.

For every request, run this loop: **discover an Actor → check its input + price → run it → read the data → answer.** You need only `npx awal` and `curl` — read the raw JSON/markdown each command returns yourself; don't pipe output through `python`, `jq`, or any other script. **This page is the only instructions you need** — every `awal` command for this flow is below.

---

About this page

This URL serves **this markdown playbook** — instructions for you, not an x402 payment endpoint. `npx awal x402 details <this-url>` correctly returns `NO_PAYMENT_REQUIREMENTS`. Read the page with `curl` (or your built-in fetch) and follow the steps below. Real x402 payments happen at `agi.apify.com/protocols/x402/prepaid-tokens?amount=…&currency=usd` in Step 3.

---

Start here — greet the user, then set up

Don't run anything yet. First introduce yourself and ask to begin. Say something like:

> I can pull live data from the web and run automations for you — social media, search engines, maps, > marketplaces, news, and thousands of other sources — by paying tiny amounts of USDC for tools on > Apify ("Actors"). No Apify account or API key needed; I pay per use from a crypto wallet (a Coinbase > Agentic Wallet, over x402). > > To start I'll set up the wallet — I'll just need your email and a verification code. Then you can ask > me for any web-data task. Want to begin? If so, what email should I use?

Only proceed when the user agrees. Don't mention funding amounts up front — only bring up the USDC + ETH requirement if the wallet turns out to be empty or underfunded at Step 2.

Step 1 — Authenticate the wallet

**Always ask the user for their email. Never guess it or take it from your environment/context** — wait for them to tell you, even if you think you know it.

npx -y awal auth login <email>  # emails the user a verification code

(`awal` needs no install — `npx` fetches and caches it on first use. The `-y` skips the first-run download confirmation so a non-interactive agent doesn't hang. Use plain `npx awal` thereafter.) Then **ask the user for the code** and verify it:

npx awal auth verify <code>
npx awal status                 # expect: Authenticated, logged in as <email>

The wallet is created on first login. If `status` isn't authenticated, repeat the login/verify pair. `status` may print `auth verify <flow-id> <code>`; you only need `npx awal auth verify <code>` — the flow ID is saved automatically from login. If any later command says **Not authenticated**, run `npx awal status` and repeat Step 1.

Step 2 — Check funding (two assets on Base: USDC + ETH)

npx awal balance --chain base --json   # need BOTH: USDC > $1 AND ETH > 0
npx awal address                 # get the wallet address if the user needs to fund it

If either asset is missing, share the address and ask the user to fund it on **Base**, then wait. To make funding easy, fetch a scannable QR of the address:

curl -s "https://apify.com/api/wallet-qr?address=<wallet-address>"

**You MUST paste the command's entire raw output directly into your reply, verbatim, inside a code block — every line, unchanged.** The output is a QR made of block characters; the user scans it with their phone wallet to fund the address. Do NOT summarize it, describe it, replace it with the address text, or drop any lines — if you don't print the actual characters, there is no QR to scan. Show the QR first, then the funding instructions. Optionally open the wallet UI for Coinbase Onramp:

npx awal show   # opens the companion window; user can fund with card/Apple Pay/Coinbase

**⚠️ USDC alone is not enough — you need a little ETH for gas.** The `awal` wallet is a smart-contract wallet that must be deployed on-chain before it can authorize any payment, and that one-time deployment costs native ETH. With USDC but **0 ETH**, the first payment fails:

Failed to deploy wallet
... sender balance and deposit together is 0 but must be at least <n> to pay for this operation

The ETH must come from **outside** (exchange withdrawal on Base, or another wallet) — you can't swap USDC for it, since a swap also needs gas. ~0.001 ETH is enough; the first payment then deploys the wallet automatically. Apify payments themselves are gasless.

Step 3 — Buy a prepaid Apify token (one x402 payment)

**Pause and ask the user to confirm before paying.** Tell them what you're about to do — e.g. "I'll pay $1 of USDC over x402 to buy a spend-capped Apify token (expires in 14 days, non-refundable). Go ahead?" — and only run the command once they say yes. **A task request alone is not consent** — wait for an explicit "go ahead" (or similar). This is

Read more
Ships withawesome-skills

Community collection of Apify agent skills for AI coding assistants

Get the whole plugin

Other skills on awesome-skills.