Aave Credit Delegation Skill for Openclaw

A sophisticated tool that allows AI agents to autonomously borrow and repay funds on Aave V2/V3 by utilizing credit delegated from a primary wallet.

aaronjmars
v1.0.0
Feb 7, 2026
1
2.2k
0

Install & Download

1. ClawHub CLI

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

npx clawhub@latest install agent-credit

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 agent-credit 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 Aave Credit Delegation Skill?

This skill facilitates Aave credit delegation, a mechanism that separates borrowing power from the actual execution of a loan. By supplying collateral from a main wallet and delegating borrowing capacity to an agent wallet, developers can empower their AI agents to access liquidity without granting them full control over the underlying collateral. It is a cornerstone for building self-funding financial agents within the Openclaw Skills ecosystem.

The skill is built to be protocol-agnostic across Aave V2 and V3, providing a unified interface for health checks, borrowing, and repayment. By leveraging this skill, users can automate complex DeFi workflows while maintaining a high safety margin through strict health factor monitoring and per-transaction limits.

Aave Credit Delegation Skill Use Cases

  • Agent self-funding for gas costs by borrowing small amounts of WETH against delegated collateral.
  • Automated Dollar Cost Averaging (DCA) where an agent borrows stablecoins to periodically purchase other assets.
  • Portfolio rebalancing and liquidity management triggered by specific market conditions.
  • Extending the capabilities of other Openclaw Skills to create multi-step DeFi automation pipelines.

How Aave Credit Delegation Skill Works

  1. The delegator supplies collateral to Aave V2 or V3 using their primary secure wallet.
  2. The delegator grants borrowing permission to the agent's wallet address by calling approveDelegation on specific VariableDebtTokens.
  3. The AI agent, using this skill, monitors the delegator's health factor and current delegation allowance.
  4. When a borrowing trigger is met, the agent executes the borrow function on the Aave Pool, specifying the delegator as the source of the credit.
  5. The agent utilizes the borrowed funds for its designated task and can later execute a repay function to clear the debt on behalf of the delegator.

Aave Credit Delegation Skill Setup

To get started with this skill, ensure you have Foundry installed for CLI interactions. First, set up your local environment:

# Install Foundry/Cast
curl -L https://foundry.paradigm.xyz | bash && foundryup

# Create the skill configuration directory
mkdir -p ~/.openclaw/skills/aave-delegation

Next, create a configuration file including your agent's private key and the delegator's address:

cat > ~/.openclaw/skills/aave-delegation/config.json << 'EOF'
{
  "chain": "base",
  "rpcUrl": "https://mainnet.base.org",
  "agentPrivateKey": "0xYOUR_AGENT_PRIVATE_KEY",
  "delegatorAddress": "0xYOUR_MAIN_WALLET",
  "poolAddress": "0xA238Dd80C259a72e81d7e4664a9801593F98d1c5",
  "dataProviderAddress": "0x2d8A3C5677189723C4cB8873CfC9C8976FDF38Ac",
  "assets": {
    "USDC": {
      "address": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "decimals": 6
    }
  },
  "safety": {
    "minHealthFactor": "1.5",
    "maxBorrowPerTx": "1000"
  }
}
EOF

Aave Credit Delegation Skill Data Schema & Taxonomy

The skill manages its configuration and operational data through a JSON schema and environment variable overrides. This ensures flexibility across different Openclaw Skills deployments.

Property Type Description
chain String The target blockchain network (e.g., base, ethereum, polygon)
rpcUrl String The JSON-RPC endpoint for blockchain communication
agentPrivateKey String 0x-prefixed private key for the agent's operational wallet
delegatorAddress String The wallet address providing the collateral and delegation
poolAddress String The Aave V3/V2 Pool contract address
assets Object A map of asset symbols to their contract addresses and decimals
safety Object Contains minHealthFactor and maxBorrowPerTx settings

Aave Credit Delegation Skill Advanced Features

  • Automated safety checks that abort borrow operations if the health factor falls below a user-defined threshold.
  • Support for both Aave V2 and V3 with automatic decimal handling for USD and ETH-based reporting.
  • Integration ready for high-performance agent frameworks like Claude Code and Openclaw Skills.
  • Capability to handle multi-asset delegation approvals for granular risk management.
  • Detailed logging of all on-chain operations including debt resolution and available liquidity checks.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*