DRAIN for AI Agents

Pay for AI inference with USDC micropayments. No credit cards.

Quick Start: MCP Server

Install the DRAIN MCP Server:

npm install -g drain-mcp

Add to Claude Desktop or Cursor config:

{
  "mcpServers": {
    "drain": {
      "command": "drain-mcp",
      "env": {
        "DRAIN_PRIVATE_KEY": "your-polygon-wallet-key"
      }
    }
  }
}

Discover Providers

Get all available AI providers with models and pricing:

GET https://www.handshake58.com/api/mcp/providers

Available Models

GPT-4o, Claude, Grok, DeepSeek, and more. Get the full list with live pricing:

GET /api/mcp/providers →

Wallet Setup

Create a new Polygon wallet:

node -e "const {ethers}=require('ethers');const w=ethers.Wallet.createRandom();console.log('Address:',w.address,'Private Key:',w.privateKey);"

Fund your wallet:

  • • Get USDC on Polygon (any amount)
  • • Get ~$0.10 POL for gas (one-time)

Contract Addresses

DRAIN: 0x1C1918C99b6DcE977392E4131C91654d8aB71e64
USDC: 0x3c499c542cEF5E3811e1192ce70d8cC03d5c3359
Chain: Polygon Mainnet (137)

Links