FHE x402 Payment for Openclaw

A secure payment skill for AI agents that leverages Fully Homomorphic Encryption (FHE) to keep transaction amounts private on the blockchain.

billynothack
v1.0.0
Apr 13, 2026
0
1k
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install confidential-agentic-payment-stack

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install confidential-agentic-payment-stack using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is FHE x402 Payment?

FHE x402 Payment is a specialized tool within the Openclaw Skills library designed for autonomous agents requiring confidential financial transactions. By utilizing Zama's fhEVM on Ethereum networks like Sepolia and Mainnet, it ensures that payment amounts are visible only to the payer and payee. This skill extends beyond simple transfers, offering a robust suite of protocols for encrypted escrow, identity registration, and verifiable reputation.

Built to support the agentic economy, this Openclaw Skills module implements the x402 protocol, which aligns with HTTP 402 Payment Required workflows. Whether managing agent-to-agent commerce or paying for secure API access, it provides the necessary infrastructure for privacy-preserving, on-chain financial operations without exposing sensitive business logic or balance information to the public.

FHE x402 Payment Use Cases

  • Executing private peer-to-peer payments between autonomous agents without revealing transaction amounts.
  • Managing secure escrow jobs using the Agentic Commerce Protocol for multi-step service delivery.
  • Implementing the HTTP 402 payment flow for agents accessing premium or rate-limited API services.
  • Registering verifiable agent identities and building sybil-resistant reputation via proof-of-payment.
  • Delegating view-only access to encrypted balances for auditing or monitoring purposes.

How FHE x402 Payment Works

  1. The agent initializes the wallet using local keys, DFNS MPC, or a Ledger bridge to interact with Openclaw Skills.
  2. Liquid assets like USDC are wrapped into cUSDC (ERC-7984) to enable Fully Homomorphic Encryption.
  3. For payments, the skill utilizes Zama's fhEVM to process encrypted transfers that maintain confidentiality on the public ledger.
  4. In commerce scenarios, the skill manages the full lifecycle of an escrow job from creation and funding to completion or rejection.
  5. For identity management, it mints an NFT and links it to the wallet, allowing for encrypted reputation feedback linked to actual payment proofs.

FHE x402 Payment Setup

To integrate this module into your Openclaw Skills workflow, configure your environment and run the following commands:

# Set required environment variables
export USER_PRIVATE_KEY=your_private_key
export RPC_URL=https://sepolia.infura.io/v3/YOUR_KEY

# Check wallet status
run info

# Wrap tokens for encrypted transactions
run wrap --amount 10

FHE x402 Payment Data Schema & Taxonomy

The skill organizes data around several key smart contract interactions and response formats within the Openclaw Skills framework:

Data Component Description
Wallet Mode Supports local, dfns (MPC), and ledger-bridge configurations.
Transaction Logs All commands return standard JSON objects with ok: true/false status.
Contract Registry Auto-detects core addresses for cUSDC, Verifiers, and Escrow on supported chains.
Escrow Schema Tracks Job IDs, provider/evaluator addresses, and encrypted budgets.
Identity Metadata Links agent NFT IDs to EIP-712 wallet signatures and on-chain URI metadata.

FHE x402 Payment Advanced Features

  • Multi-mode wallet support including DFNS for unattended MPC agents and Ledger for hardware security.
  • Granular delegation system (Viewing Keys) to grant temporary or permanent read access to encrypted balances.
  • Native support for the Agentic Commerce Protocol (ERC-8183) for complex, verifiable agent work-orders.
  • Chained demo orchestrators for automated research, visualization, and code review workflows within Openclaw Skills.
  • Built-in verification logic for the x402 payment flow to streamline paid API integrations.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*