simmer-x402

Make x402 payments to access paid APIs and gated content. Use when a skill needs to fetch data from x402-gated endpoints (like Kaito mindshare API, Simmer premium endpoints, or any x402 provider). Handles 402 Payment Required responses automatically using USDC on Base.

3,891 stars

Best use case

simmer-x402 is best used when you need a repeatable AI agent workflow instead of a one-off prompt.

Make x402 payments to access paid APIs and gated content. Use when a skill needs to fetch data from x402-gated endpoints (like Kaito mindshare API, Simmer premium endpoints, or any x402 provider). Handles 402 Payment Required responses automatically using USDC on Base.

Teams using simmer-x402 should expect a more consistent output, faster repeated execution, less prompt rewriting.

When to use this skill

  • You want a reusable workflow that can be run more than once with consistent structure.

When not to use this skill

  • You only need a quick one-off answer and do not need a reusable workflow.
  • You cannot install or maintain the underlying files, dependencies, or repository context.

Installation

Claude Code / Cursor / Codex

$curl -o ~/.claude/skills/simmer-x402/SKILL.md --create-dirs "https://raw.githubusercontent.com/openclaw/skills/main/skills/adlai88/simmer-x402/SKILL.md"

Manual Installation

  1. Download SKILL.md from GitHub
  2. Place it in .claude/skills/simmer-x402/SKILL.md inside your project
  3. Restart your AI agent — it will auto-discover the skill

How simmer-x402 Compares

Feature / Agentsimmer-x402Standard Approach
Platform SupportNot specifiedLimited / Varies
Context Awareness High Baseline
Installation ComplexityUnknownN/A

Frequently Asked Questions

What does this skill do?

Make x402 payments to access paid APIs and gated content. Use when a skill needs to fetch data from x402-gated endpoints (like Kaito mindshare API, Simmer premium endpoints, or any x402 provider). Handles 402 Payment Required responses automatically using USDC on Base.

Where can I find the source code?

You can find the source code on GitHub using the link provided at the top of the page.

Related Guides

SKILL.md Source

# x402 Payments

Pay for x402-gated APIs using USDC on Base. This skill enables agents to autonomously make crypto payments when accessing paid web resources.

## When to Use This Skill

Use this skill when:
- A skill or agent needs to fetch data from an x402-gated API (e.g., Kaito mindshare)
- You encounter HTTP 402 Payment Required responses
- You need to check your Base wallet balance (USDC + ETH)
- You want to pay for Simmer premium endpoints beyond free tier rate limits

## Setup

1. **Set your wallet private key**
   ```bash
   export EVM_PRIVATE_KEY=0x...your_private_key...
   ```
   Falls back to `WALLET_PRIVATE_KEY` if `EVM_PRIVATE_KEY` is not set (same key Simmer/Polymarket users already have). Your EVM address works on all chains — Polygon for trading, Base for x402 payments.

2. **Fund with USDC on Base**
   - Send USDC to your wallet address on Base network
   - x402 payments on Base are fully gasless — you only need USDC, no ETH

3. **Install dependencies**
   ```bash
   pip install x402[httpx,evm]
   ```

## Quick Commands

| Command | Description |
|---------|-------------|
| `python x402_cli.py balance` | Check USDC and ETH balances on Base |
| `python x402_cli.py fetch <url>` | Fetch URL with automatic x402 payment |
| `python x402_cli.py fetch <url> --json` | Same but output raw JSON only |
| `python x402_cli.py fetch <url> --dry-run` | Show payment info without paying |
| `python x402_cli.py fetch <url> --max 5.00` | Override max payment limit |
| `python x402_cli.py rpc <network> <method> [params...]` | Make RPC call via Quicknode x402 |

## Examples

### Check balance
```bash
python x402_cli.py balance
```
```
x402 Wallet Balance
==============================
Address: 0x1234...5678
Network: Base Mainnet

USDC:  $42.50
ETH:   0.000000 ETH
```

### Fetch free endpoint (no payment needed)
```bash
python x402_cli.py fetch "https://api.kaito.ai/api/v1/tokens" --json
```

### Fetch Kaito mindshare data ($0.02/data point via x402)
```bash
python x402_cli.py fetch "https://api.kaito.ai/api/payg/mindshare?token=BTC&start_date=2026-02-13&end_date=2026-02-14" --json
```

### Fetch Kaito sentiment data ($0.02/data point via x402)
```bash
python x402_cli.py fetch "https://api.kaito.ai/api/payg/sentiment?token=BTC&start_date=2026-02-13&end_date=2026-02-14" --json
```

### Ask AlphaKek knowledge engine ($0.01 via x402)
```bash
python x402_cli.py fetch "https://api.alphakek.ai/x402/knowledge/ask" \
  --method POST --body '{"question": "What is the current sentiment on BTC?", "search_mode": "fast"}' --json
```

### Fetch CoinGecko price data ($0.01 via x402)
```bash
python x402_cli.py fetch "https://pro-api.coingecko.com/api/v3/x402/simple/price?ids=bitcoin&vs_currencies=usd" --json
```

### Fetch Simmer premium endpoint
```bash
python x402_cli.py fetch "https://x402.simmer.markets/api/sdk/context/market-123" \
  --header "Authorization: Bearer sk_live_..." --json
```

### Quicknode RPC — blockchain calls without API keys
```bash
# Get ETH balance on Ethereum mainnet
python x402_cli.py rpc ethereum-mainnet eth_getBalance 0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045 latest

# Get latest block on Polygon
python x402_cli.py rpc polygon-mainnet eth_blockNumber

# Get token balance on Base
python x402_cli.py rpc base-mainnet eth_call '{"to":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","data":"0x70a08231000000000000000000000000YOUR_ADDRESS"}' latest
```
Quicknode x402 supports 55+ networks (Ethereum, Polygon, Base, Arbitrum, Solana, Bitcoin, and more). $10 buys 1M RPC credits — each successful call costs 1 credit.

## Supported x402 Providers

| Provider | Endpoint | Price | Description |
|----------|----------|-------|-------------|
| Kaito | `/api/payg/mindshare` | $0.02/data point | Token mindshare time series |
| Kaito | `/api/payg/sentiment` | $0.02/data point | Token sentiment time series |
| Kaito | `/api/payg/narrative_mindshare` | $0.02/data point | Narrative mindshare time series |
| Kaito | `/api/payg/smart_followers` | $0.20/request | Smart follower metrics |
| AlphaKek | `/x402/knowledge/ask` | $0.01/request | AI knowledge engine (POST, search_mode: fast/deep/ultrafast) |
| CoinGecko | `/api/v3/x402/simple/price` | $0.01/request | Token price data |
| Simmer | `/api/sdk/context/:id` | $0.005/request | Market context (rate limit bypass) |
| Simmer | `/api/sdk/briefing` | $0.005/request | Portfolio briefing (rate limit bypass) |
| Simmer | `/api/sdk/markets/import` | $0.005/request | Market import (daily quota bypass) |
| Quicknode | `/:network` (55+ networks) | $10/1M credits | Pay-per-request RPC access (no API key needed) |

Kaito API docs: https://github.com/MetaSearch-IO/KaitoX402APIDocs
Quicknode x402 docs: https://x402.quicknode.com/llms.txt

## Configuration

| Setting | Environment Variable | Default | Description |
|---------|---------------------|---------|-------------|
| Wallet key | `EVM_PRIVATE_KEY` | (required) | Hex-encoded private key (falls back to `WALLET_PRIVATE_KEY`) |
| Max payment | `X402_MAX_PAYMENT_USD` | 10.00 | Safety cap per request |
| Network | `X402_NETWORK` | mainnet | `mainnet` or `testnet` |

Or set via `config.json` in the skill directory:
```json
{
  "max_payment_usd": 10.00,
  "network": "mainnet"
}
```

## How It Works

1. Skill makes HTTP request to the target URL
2. If server returns 200 — done, no payment needed
3. If server returns 402 Payment Required — x402 SDK reads payment requirements
4. SDK signs a USDC transfer authorization on Base (no gas needed)
5. SDK retries request with payment signature
6. Server verifies payment, returns gated content

All payment handling is automatic via the official Coinbase x402 Python SDK.

## For Other Skills

Other skills can import x402 functions directly:

```python
from skills.x402.x402_cli import x402_fetch

# Returns parsed JSON response
data = await x402_fetch("https://api.kaito.ai/api/payg/mindshare?token=BTC")
```

## Security

- Uses the official Coinbase `x402` Python SDK for payment signing
- Private key never leaves your machine
- Max payment safety cap prevents accidental overspend
- Dry-run mode to preview payments before executing

**Private key safety:**
- Store your key in a `.env` file, never pass it inline in shell history
- Ensure `.env` is in your `.gitignore` — never commit private keys to git
- Use a dedicated hot wallet with limited funds, not your main wallet
- Rotate the key immediately if you suspect it was exposed

## Troubleshooting

**"EVM_PRIVATE_KEY not set"**
- Set your wallet private key: `export EVM_PRIVATE_KEY=0x...`

**"Insufficient USDC balance"**
- Fund your wallet with USDC on Base network
- Run `python x402_cli.py balance` to check

**"Payment exceeds max limit"**
- Increase limit: `--max 50` or set `X402_MAX_PAYMENT_USD=50`

**"Unsupported network in payment options"**
- Ensure you have USDC on Base. Some providers may offer other chains but this skill uses Base only.

Related Skills

x402

3891
from openclaw/skills

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.

General Utilities

polymarket-simmer-fastloop

3891
from openclaw/skills

Trade Polymarket BTC/ETH/SOL 5/15-minute fast markets with momentum and order book filters.

polymarket-simmer-fastloop-sync-pulse

3891
from openclaw/skills

Trade Polymarket BTC/ETH/SOL 5-minute fast markets using a zero-delay Triple-Trigger strategy. Combines Binance momentum, NOFX OI/Netflow (free public API), and L2 Wall detection to choose between Trend Following and Mean Reversion. Pre-Caches market IDs to bypass the Simmer API blackout at market open.

Analytix402

3891
from openclaw/skills

Monitor, control, and optimize your AI agent's API spend and LLM costs in real-time.

x402-wach

3891
from openclaw/skills

DeFi risk analysis toolkit powered by WACH.AI via x402 payments using AWAL wallet custody. Use when the user asks to check if a token is safe, assess DeFi risk, detect honeypots, analyze liquidity, holder distribution, or smart contract vulnerabilities for tokens on Ethereum, Polygon, Base, BSC, or Solana. Costs 0.01 USDC per query on Base.

x402engine

3891
from openclaw/skills

Pay-per-call API gateway skill — calls 63 APIs (LLMs, image/video gen, flights, hotels, crypto, web search) via x402 micropayments. Each call costs $0.001-$0.60 in USDC/USDm, enforced by a local policy engine with spend caps.

simmer

3891
from openclaw/skills

The best prediction market interface for AI agents. Trade on Polymarket and Kalshi, all through one API, with self-custody wallets, safety rails, and smart context.

simmer-skill-builder

3891
from openclaw/skills

Generate complete, installable OpenClaw trading skills from natural language strategy descriptions. Use when your human wants to create a new trading strategy, build a bot, generate a skill, automate a trade idea, turn a tweet into a strategy, or asks "build me a skill that...". Produces a full skill folder (SKILL.md + Python script + config) ready to install and run.

simmer-synthesis-hackathon

3891
from openclaw/skills

Contribute to Simmer's hackathon entry by completing platform tasks. Earn 0.01 USDC on Base per approved task, plus a share of the prize pool if Simmer wins. Uses your existing Simmer API key.

asrai-x402

3891
from openclaw/skills

Crypto market analysis using Asrai API. Covers technical analysis, screeners, sentiment, forecasting, smart money, Elliott Wave, cashflow, DEX data, and AI-powered insights. Each API call costs $0.005 USDC from your own wallet on Base mainnet via x402.

clawhub-x402-payments

3880
from openclaw/skills

Implements USDC x402 payments via PayAI (EIP-3009) and DHM x402 payments via EVVM native (signed pay). Use when adding x402 payment flows, PayAI Echo integration, EVVM pay() for DHM, agent-to-agent payments with Privy, or when the user asks how to do USDC/DHM x402 in the ClawHub/NHS EVVM app.

---

3891
from openclaw/skills

name: article-factory-wechat

Content & Documentation