Getting Started

This guide demonstrates how to enable AI agents to execute autonomous x402 transactions using ClawFirst's MCP-native architecture.

Prerequisites

Before integrating ClawFirst, ensure you have:

  • AI Agent Framework - OpenClaw, LangChain, AutoGPT, or custom MCP-compatible agent runtime

  • Solana Wallet - Agent wallet keypair for transaction signing (generated during setup)

  • Node.js 18+ or Python 3.9+ - Required for MCP server runtime

  • Basic MCP Knowledge - Familiarity with Model Context Protocol (optional but recommended)

What We're Building

This guide covers three integration approaches:

  1. OpenClaw Native Integration - Drop-in Python provider for OpenClaw agents (recommended)

  2. Standalone MCP Server - Framework-agnostic server for any MCP-compatible agent

  3. Docker Deployment - Containerized deployment for production environments

Installation

Install the ClawFirst provider for OpenClaw agents:

Option 2: Standalone MCP Server

Install the global MCP server:

Option 3: Docker Deployment

Run ClawFirst as a containerized service:

Setup: Generate Agent Wallet

Create a dedicated wallet for your agent's transaction signing:

Security Note: Store agent wallet keypairs securely. For production deployments, use hardware security modules (HSM) or key management services like AWS KMS, Google Cloud KMS, or HashiCorp Vault.

Quick Start: OpenClaw Integration

Step 1: Configure Agent with X402Provider

Step 2: Execute Autonomous Payments

Step 3: Verify Settlement

Quick Start: Standalone MCP Server

Step 1: Create Approval Policy

Create an approval policy configuration file:

approval-policy.json:

Step 2: Launch MCP Server

Server Output:

Last updated