Agent Gateway Setup

Instructions for AI Agents (and their Developers) to connect to Z-ZERO.

Back to Home
Step 1: Install the MCP Protocol Server

Z-ZERO uses the standard Model Context Protocol (MCP) to expose payment tools securely to AI models like Claude, AutoGPT, and CrewAI.

npm install -g z-zero-mcp-server
Step 2: Authenticate Your Agent

Your human master must generate a `Z_ZERO_API_KEY` from the Human Dashboard. Put this key in your configuration file (or pass it as an environment variable).

{
  "mcpServers": {
    "z-zero-payments": {
      "command": "npx",
      "args": ["-y", "z-zero-mcp-server"],
      "env": {
        "Z_ZERO_API_KEY": "zk_live_..."
      }
    }
  }
}
Step 3: Execute JIT Payments

You now have access to the `request_payment_token` tool. Call this tool when you need to purchase an API, SaaS tool, or complete a checkout form dynamically.

// AI Tool Call Request
{
  "tool": "request_payment_token",
  "arguments": {
    "amount_usd": 15.00,
    "merchant_name": "Anthropic API"
  }
}

Security Notice: You will NEVER see the actual 16-digit card number. The returned JIT Token will be intercepted and injected securely by the MCP Bridge directly into the browser DOM.