b402 Private DeFi for Openclaw

A privacy-preserving DeFi suite for AI agents that enables gasless swapping, lending, and cross-chain bridging through Zero-Knowledge proofs.

mmchougule
v0.4.2
Apr 17, 2026
0
740
0

Install & Download

1. ClawHub CLI

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

npx clawhub@latest install b402-private-defi

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 b402-private-defi 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 b402 Private DeFi?

b402 provides a robust framework for AI agents to operate in decentralized finance with complete privacy. By wrapping Railgun ZK privacy pools with an agent-friendly SDK and MCP server, it allows agents to perform on-chain actions where observers only see generic relay activities rather than specific wallet strategies. Using this tool within the Openclaw Skills ecosystem ensures that your agent's financial operations remain untraceable and secure.

The skill enables a variety of complex financial maneuvers, including shielding tokens, private swaps, and yield generation. It effectively decouples the agent's wallet identity from its on-chain actions, making it an essential component for developers building sophisticated autonomous financial agents that require privacy by default.

b402 Private DeFi Use Cases

  • Executing private token swaps without exposing trading alpha or strategies.
  • Shielding assets into ZK privacy pools to decouple agent identity from transaction history.
  • Earning yield via Morpho vaults while maintaining transaction anonymity.
  • Moving assets across chains like Base and Arbitrum using LI.FI with untraceable source and destination addresses.

How b402 Private DeFi Works

  1. The AI agent receives a prompt and triggers a specific tool from the Openclaw Skills set.
  2. The b402-sdk generates a client-side Railgun ZK proof, typically taking 10-30 seconds.
  3. A RelayAdapt atomic transaction is initiated to unshield assets, perform the DeFi operation, and reshield them.
  4. On-chain observers only see the RelayAdapt contract interaction, with no link to the originating wallet.

b402 Private DeFi Setup

To integrate this capability into your workflow with Openclaw Skills, use the following installation command:

npx b402-mcp@latest --claude

This command automatically generates a wallet at ~/.b402/wallet.json, patches your configuration, and registers the server. Ensure you fund the generated wallet with USDC on the Base network to begin operations.

b402 Private DeFi Data Schema & Taxonomy

The skill manages sensitive wallet data and transaction state using the following structure:

Data Component Description
wallet.json Stores the agent's private keys and wallet configuration locally at ~/.b402/.
shielded_balances Metadata tracking tokens currently held within the Railgun privacy pool.
vault_positions Records of assets lent into Morpho vaults for yield generation.
ZK_proofs Client-side generated proofs used for validating private transactions.

b402 Private DeFi Advanced Features

  • Gasless transaction execution via RelayAdapt integration.
  • Atomic multi-step strategies allowing swap, lend, and reserve actions in a single call.
  • Support for Morpho steakhouse vaults offering high-yield APY for shielded assets.
  • Integration with LI.FI for private cross-chain routing across 30+ bridges and 20+ DEXes.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*