The Layer
for x402 AI Agents

One SDK to call any x402 endpoint. We handle discovery, routing, payments, and failover. You just call. 423 endpoints indexed across crypto, DeFi, AI, and more.

Endpoints Indexed
Unique Providers
Avg. Price/Call
Healthy

Browse by Category

The x402 Ecosystem at a Glance

423
Endpoints Indexed
94
Unique Providers
83%
Healthy Endpoints
5 min
Health Check Interval

The Layer — One SDK, Any Endpoint

We handle discovery, routing, payments, and failover. You just call.

# Install The Layer SDK
npm install @agentindex/core

# One line. Any x402 endpoint.
import { AgentIndexClient } from '@agentindex/core';

const client = new AgentIndexClient({
  privateKey: process.env.WALLET_KEY,
  budgetLimit: 10.00  // Max $10 spend
});

# Call any endpoint - we handle discovery, payment, failover
const weather = await client.call({ capability: 'weather' });
const prices = await client.call({ capability: 'crypto-price' });
# Add to Claude Desktop config
# ~/Library/Application Support/Claude/claude_desktop_config.json

{
  "mcpServers": {
    "agentindex": {
      "command": "npx",
      "args": ["-y", "@agentindex/mcp-server"]
    }
  }
}

# Then ask Claude: "Find me x402 endpoints for weather data"
# Python SDK coming soon!
# For now, use the REST API directly:

import requests

response = requests.get(
    "https://theagentindex.app/api/search",
    params={"q": "crypto", "healthyOnly": "true"}
)
endpoints = response.json()["results"]

# Call endpoints with x402 payment using requests + viem
# Search for endpoints
curl "https://theagentindex.app/api/search?q=crypto"

# Call via The Layer proxy
curl -X POST "https://agentindex-layer.carlos-reyesiii.workers.dev/proxy" \
  -H "Content-Type: application/json" \
  -d '{"endpoint": "https://gas.agentforge.work/gas"}'

Built for AI Frameworks

🦜
LangChain
Tool integration
👥
CrewAI
Agent discovery
🤖
AutoGPT
Plugin ready
🧠
Claude
MCP Server
💻
Cursor
MCP Server
🔗
OpenAI
Function calling

Why The Layer?

Discovery — Search 423+ x402 endpoints by capability, price, or quality tier. Find the right API in seconds.

🔍
Real-time Index
Updated every 5 minutes

Quality Scoring — Every endpoint rated A/B/C based on uptime, response time, and reliability. 83%+ health rate.

📊
Automated Monitoring
94 unique providers tracked

One SDK — Call any endpoint through our proxy. We handle routing, payments, and failover automatically.

@agentindex/core
npm install today

List Your x402 Service

Get discovered by AI agents worldwide. Free to list your x402 endpoint.

Submit Your Endpoint

What is Agent Index?

Agent Index is the middleware layer for x402 agent-to-agent commerce. We index thousands of payment-enabled API endpoints that AI agents can use autonomously with USDC micropayments on Base.

Why Use Agent Index?

  • Comprehensive Directory: Search thousands of x402 endpoints across crypto, DeFi, AI, weather, news, and more
  • Quality Scoring: Every endpoint is rated A-D based on uptime, speed, and documentation
  • Health Monitoring: Real-time status tracking so you know which services are reliable
  • MCP Integration: Use our MCP server to search endpoints directly from Claude or Cursor

Popular x402 Endpoint Categories

Browse APIs for: Crypto Price DataDeFi AnalyticsAI Model InferenceWeather DataNews FeedsBlockchain Oracles

Deploy Your x402 Agent

Ready to build? See our recommended stack for hosting, databases, and infrastructure trusted by agent builders. Deploy on Railway ($20 free credit) or DigitalOcean ($200 free credit) — both offer generous free tiers to get started.