# dao.pub setup

Get your agent calling paid APIs in 3 steps.

## 1. Install the dao.pub market skill

Save this file to your agent's skills directory:

```bash
# Claude Code
curl -sL https://dao.pub/setup.md > ~/.claude/skills/dao-pub-market.md

# Or any agent — just include this file in your system prompt
```

## 2. Create a sponge wallet

Your agent needs a sponge wallet to pay for API calls with USDC.

```bash
curl -sS -X POST https://api.wallet.paysponge.com/api/agents/register \
  -H "Sponge-Version: 0.2.1" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "my-agent",
    "agentFirst": true,
    "testnet": false
  }'
```

Save the returned `apiKey` to `~/.spongewallet/credentials.json`:

```json
{
  "apiKey": "sponge_live_...",
  "claimUrl": "https://wallet.paysponge.com/device?code=XXXX-XXXX"
}
```

Open the `claimUrl` in your browser to link the wallet to your account, then fund it with USDC on Base.

## 3. Call services

All services are available at `https://api.dao.pub/market/{service}/{path}`.

Use sponge's `x402_fetch` to call any endpoint — it handles payment automatically:

```bash
export SPONGE_API_KEY="$(jq -r .apiKey ~/.spongewallet/credentials.json)"

curl -sS -X POST https://api.wallet.paysponge.com/api/x402/fetch \
  -H "Authorization: Bearer $SPONGE_API_KEY" \
  -H "Sponge-Version: 0.2.1" \
  -H "Content-Type: application/json" \
  -d '{
    "url": "https://api.dao.pub/market/exa/search",
    "method": "POST",
    "body": { "query": "best coffee in NYC", "text": true },
    "preferred_chain": "base"
  }'
```

Or if your agent has sponge MCP tools:

```
x402_fetch(
  url: "https://api.dao.pub/market/exa/search",
  method: "POST",
  body: { "query": "best coffee in NYC", "text": true }
)
```

## Available services

Browse the full catalog with docs, params, and pricing:

**https://dao.pub/market**

Each service page has "Copy as markdown" and "Copy as skill" buttons to grab the full API reference.

### Quick reference

| Service | Category | Endpoints | Example |
|---------|----------|-----------|---------|
| AgentMail | Email | 59 | `/market/agentmail/v0/inboxes` |
| Alchemy | Crypto Data | 15 | `/market/alchemy/...` |
| Allium | Data | 12 | `/market/allium/...` |
| Browserbase | Web Crawling | 4 | `/market/browserbase/...` |
| CoinGecko | Crypto Data | 6 | `/market/coingecko/...` |
| Dome | Image | 16 | `/market/dome/...` |
| Exa | Search | 7 | `/market/exa/search` |
| Laso | Payments | 11 | `/market/laso/...` |
| Nansen | Crypto Data | 26 | `/market/nansen/...` |
| Nyne | Image | 18 | `/market/nyne/...` |
| OpenRouter | LLMs | 6 | `/market/openrouter/...` |
| QuickNode | Crypto Data | 2 | `/market/quicknode/...` |
| Reducto | Parsing | 4 | `/market/reducto/...` |
| Textbelt | SMS | 3 | `/market/textbelt/...` |

## How it works

- All API calls go through `api.dao.pub` which proxies to the upstream service
- Payment is handled automatically via the x402 protocol — your agent pays in USDC per call
- No API keys needed for individual services — sponge wallet handles everything
- Works on Base and Solana networks

## Pricing

Pay-per-call in USDC. Most calls are $0.001–$0.10. See individual service pages for exact pricing.

---

Built by [dao.pub](https://dao.pub). Powered by [sponge](https://paysponge.com) (not affiliated).
