aaveclaw for Openclaw

A comprehensive DeFi skill for managing Aave V3 lending positions, including collateral deposits, stablecoin borrowing, and health factor monitoring on Base Sepolia.

chainyoda
v1.0.0
Feb 4, 2026
4
2.7k
0

Install & Download

1. ClawHub CLI

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

npx clawhub@latest install aaveclaw

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 aaveclaw 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 aaveclaw?

The aaveclaw skill is a robust integration for Openclaw Skills designed to facilitate seamless interaction with the Aave V3 protocol on the Base Sepolia testnet. It empowers AI agents and developers to manage the entire lifecycle of a decentralized lending position, from minting testnet tokens to withdrawing collateral. By abstracting complex smart contract interactions into simple CLI scripts, it enables automated treasury management and DeFi strategy testing.

This skill is built with a focus on safety and transparency. It provides real-time feedback on position health and automates the wrapping of native assets, ensuring that users can focus on their financial logic rather than blockchain-level minutiae. Whether you are building an autonomous trading bot or a developer tool, this skill provides a reliable bridge to the Aave ecosystem.

aaveclaw Use Cases

  • Automating the maintenance of a healthy debt-to-collateral ratio to prevent liquidations.
  • Testing complex DeFi lending and borrowing strategies on the Base Sepolia testnet using Openclaw Skills.
  • Rapidly provisioning testnet accounts with WETH and USDC via integrated faucet scripts.
  • Building AI agents that can autonomously leverage assets to borrow stablecoins for market operations.
  • Monitoring the health factor of any given wallet address on the Aave protocol through a simple command.

How aaveclaw Works

  1. The skill authenticates using a private key stored in the local ~/.x402-config.json file to sign transactions on the Base Sepolia network.
  2. Users or agents can invoke the faucet script to obtain WETH or USDC, providing the necessary liquidity for testing.
  3. Native ETH can be deposited into the protocol, where the skill automatically handles the conversion to WETH collateral.
  4. Once collateral is supplied, the agent can programmatically borrow USDC based on the protocol's available liquidity and the user's health factor.
  5. Every state-changing command triggers an automatic health factor check, providing immediate feedback on the safety of the lending position.
  6. To close positions, the skill supports full debt repayment and collateral withdrawal, including 'max' functionality to simplify exit strategies.

aaveclaw Setup

To deploy this skill within your Openclaw Skills environment, follow these steps:

  1. Ensure your wallet configuration is present in the home directory:
echo '{"private_key": "0xYOUR_PRIVATE_KEY"}' > ~/.x402-config.json
  1. Run the setup script to install necessary dependencies like ethers v6:
bash scripts/setup.sh

aaveclaw Data Schema & Taxonomy

The skill manages data primarily through interaction with the Base Sepolia blockchain (Chain ID 84532). It utilizes the following asset schema:

Asset Type Decimals Purpose
WETH ERC-20 18 Primary Collateral
USDC ERC-20 6 Borrowed Asset

Configuration:

  • ~/.x402-config.json: A JSON file containing the private_key required for transaction signing.

aaveclaw Advanced Features

  • Automatic WETH Wrapping: Eliminates the manual step of wrapping native ETH before depositing into Aave.
  • Safety Threshold Alerts: Built-in logic to warn the user or agent when the health factor falls below the 1.5 safety margin.
  • Read-Only Health Audits: Capability to check the health factor of any public address without requiring the private key for that address.
  • Full Lifecycle Management: Includes a 'max' parameter for repayment and withdrawal to handle floating interest rates and complete position exits.
  • Developer-First Error Handling: Detailed reports on insufficient balances and protocol-level reverts to assist in debugging Openclaw Skills automation.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*