Elsa x402 for
OpenClaw Agents

Enable your OpenClaw AI agents to trade crypto, analyze portfolios, and execute swaps using natural language. Pay per request with USDC or ELSA token micropayments.

12
TOOLS
8
CHAINS
$0.01
AVG COST
0
API KEYS

Quick Start

1

Clone & Install

git clone https://github.com/HeyElsa/elsa-openclaw.git
cd elsa-openclaw && npm install
2

Configure OpenClaw

~/.openclaw/openclaw.json
{
"skills": {
"load": {
"extraDirs": ["/path/to/elsa-openclaw"]
},
"entries": {
"openclaw-elsa-x402": {
"env": {
"PAYMENT_PRIVATE_KEY": "0x..."
}
}
}
}
}
3

Talk to OpenClaw

YOU:"What's the price of WETH on Base?"
YOU:"Show my portfolio for 0xd8dA..."
YOU:"Swap 10 USDC to WETH on Base"

Available Tools

READ-ONLY

Always Available

elsa_search_token~$0.001
elsa_get_token_price~$0.002
elsa_get_balances~$0.005
elsa_get_portfolio~$0.01
elsa_analyze_wallet~$0.01
elsa_get_swap_quote~$0.01
elsa_execute_swap_dry_run~$0.02
elsa_budget_statusfree
EXECUTION (OPT-IN)

Requires Enable Flag

elsa_execute_swap_confirmed~$0.02
elsa_pipeline_get_status~$0.001
elsa_pipeline_submit_tx_hash~$0.001
elsa_pipeline_run_and_wait~$0.005
Set ELSA_ENABLE_EXECUTION_TOOLS=true to enable
COMING SOON

Hyperliquid APIs

Perpetual futures trading on Hyperliquid L1

Risk Management

Portfolio risk analysis and position sizing

Prediction Markets

Polymarket trading and market data

Swap Flow

01
GET QUOTE
elsa_get_swap_quote
02
DRY RUN
elsa_execute_swap_dry_run
👤
USER CONFIRMS
Human-in-the-loop
04
EXECUTE
elsa_pipeline_run_and_wait

Supported Chains

BaseEthereumArbitrumOptimismPolygonBSCAvalanchezkSync

Ready to enable DeFi for your AI agents?

Get started in minutes with the OpenClaw skill-pack