Your AI agent can browse the web, write code, and manage files. But can it swap tokens, pay for API calls, or manage DeFi positions? The OpenClaw plugin from WAIaaS bridges this gap by providing 5 tool categories that enable external AI agent frameworks like LangChain, CrewAI, and AutoGPT to interact with blockchains safely and autonomously.
Why AI Agents Need Wallet Access
AI agents are becoming increasingly capable, but they hit a wall when money is involved. They can analyze market data but can't execute trades. They can research DeFi protocols but can't deposit funds or claim rewards. They can monitor NFT collections but can't mint or transfer tokens.
This limitation exists because blockchain interactions require private key management, transaction signing, and security policies — capabilities that general-purpose AI frameworks don't provide. Most developers end up building custom wallet integrations for each project, creating security risks and duplicating effort across the ecosystem.
How OpenClaw Solves This
WAIaaS provides the OpenClaw plugin — a standardized interface that gives external AI agent frameworks access to wallet operations through 5 organized tool categories. Instead of managing private keys or building blockchain integrations from scratch, your agent connects to a secure wallet service and calls tools based on what it needs to accomplish.
The OpenClaw plugin exposes 5 tool categories, each designed for specific blockchain operations:
// OpenClaw tools: defi, nft, transfer, utility, wallet
Each tool category provides focused functionality without overwhelming your agent with dozens of individual methods. Here's how they break down:
Wallet Tools
Basic wallet operations like checking balances, getting addresses, and viewing transaction history. These are the foundation tools your agent needs before making any blockchain decisions.
Transfer Tools
Token sending, batch transfers, and payment operations. Whether your agent needs to send ETH, transfer USDC, or make multiple payments in one transaction, these tools handle the complexity.
DeFi Tools
Decentralized finance operations across 15 integrated protocols including Jupiter swap, Lido staking, Aave lending, and Hyperliquid perpetuals. Your agent can analyze yields, execute swaps, manage lending positions, and trade derivatives.
NFT Tools
Non-fungible token operations for both EVM (ERC-721/ERC-1155) and Solana (Metaplex) standards. Your agent can mint, transfer, and query NFT metadata with built-in caching for performance.
Utility Tools
Cross-cutting operations like transaction simulation, gas optimization, contract interaction, and the x402 payment protocol for AI agents that need to pay for API calls automatically.
Setting Up OpenClaw with Your Agent Framework
The setup process depends on your AI framework, but the core pattern is the same: register WAIaaS as a tool provider and configure authentication.
For LangChain Agents
from langchain.tools import Tool
from waiaas.openclaw import OpenClawProvider
# Initialize OpenClaw provider
openclaw = OpenClawProvider(
base_url="http://127.0.0.1:3100",
session_token="wai_sess_eyJhbGciOiJIUzI1NiJ9..."
)
# Register tools with your agent
tools = openclaw.get_tools(categories=["wallet", "transfer", "defi"])
agent = initialize_agent(tools, llm, agent=AgentType.STRUCTURED_CHAT)
For CrewAI
from crewai import Agent, Tool
from waiaas.openclaw import OpenClawProvider
trading_agent = Agent(
role="DeFi Trading Specialist",
goal="Execute optimal trading strategies",
backstory="Expert in DeFi protocols and yield optimization",
tools=OpenClawProvider().get_tools(categories=["wallet", "defi"])
)
For Custom Agent Frameworks
const { OpenClawProvider } = require('@waiaas/openclaw-plugin');
const provider = new OpenClawProvider({
baseUrl: 'http://127.0.0.1:3100',
sessionToken: process.env.WAIAAS_SESSION_TOKEN
});
// Get wallet tools
const walletTools = await provider.getTools(['wallet']);
// Your agent can now call:
// - checkBalance()
// - getAddress()
// - listTransactions()
Security Through Policy Integration
OpenClaw tools inherit WAIaaS's 21 policy types and 4-tier security system. Your AI agent operates within predefined guardrails:
# Create spending limits for your agent
curl -X POST http://127.0.0.1:3100/v1/policies \
-H "Content-Type: application/json" \
-H "X-Master-Password: my-secret-password" \
-d '{
"walletId": "<wallet-uuid>",
"type": "SPENDING_LIMIT",
"rules": {
"instant_max_usd": 100,
"notify_max_usd": 500,
"delay_max_usd": 2000,
"delay_seconds": 900,
"daily_limit_usd": 5000
}
}'
Small transactions execute instantly, medium amounts trigger notifications, large transfers include time delays, and huge amounts require human approval. Your agent can operate autonomously within safe boundaries.
Real-World Agent Examples
DeFi Yield Farmer
# Agent checks current positions
positions = openclaw.call_tool("defi", "get_positions")
# Analyzes yields across protocols
if aave_yield > current_yield * 1.1:
# Withdraws from current protocol
openclaw.call_tool("defi", "withdraw", {"protocol": "compound", "amount": "1000"})
# Deposits to higher-yield protocol
openclaw.call_tool("defi", "deposit", {"protocol": "aave", "amount": "1000"})
Trading Bot
// Agent monitors market conditions
const balance = await openclaw.callTool("wallet", "getBalance");
if (shouldSwap) {
// Executes swap on Jupiter
await openclaw.callTool("defi", "swap", {
provider: "jupiter-swap",
inputMint: "So11111111111111111111111111111111111111112",
outputMint: "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
amount: balance.amount * 0.1
});
}
NFT Portfolio Manager
# Agent monitors NFT collections
collections = openclaw.call_tool("nft", "get_collections")
for collection in collections:
if collection.floor_price > collection.avg_purchase * 2:
# Lists profitable NFTs
openclaw.call_tool("nft", "list", {
"tokenId": collection.token_id,
"price": collection.floor_price * 0.95
})
Quick Start: Give Your Agent a Wallet
Here's how to get OpenClaw working with your AI agent in 5 steps:
- Install WAIaaS daemon
npm install -g @waiaas/cli
waiaas init
waiaas start
- Create a wallet and session
waiaas quickset --mode testnet
- Install OpenClaw plugin
npm install @waiaas/openclaw-plugin
# or
pip install waiaas
- Configure your agent framework
from waiaas.openclaw import OpenClawProvider
provider = OpenClawProvider(
base_url="http://127.0.0.1:3100",
session_token="wai_sess_<your-token>"
)
tools = provider.get_tools(categories=["wallet", "transfer"])
- Test wallet access
# Your agent can now check its balance
balance = provider.call_tool("wallet", "get_balance")
print(f"Agent wallet: {balance['balance']} {balance['symbol']}")
The OpenClaw plugin transforms your AI agent from a information processor into an autonomous economic actor. Whether you're building trading bots, yield farmers, or NFT managers, your agent now has the tools it needs to interact with blockchain protocols safely and effectively.
For a complete integration guide, check out Building AI Agents with MCP Integration and Docker Deployment Guide for Production AI Agents.
What's Next
Ready to give your AI agent blockchain superpowers? Start with the OpenClaw plugin at GitHub or explore the full documentation at waiaas.ai. Your agent is about to become a lot more interesting.
Top comments (0)