ClawKit Logo
ClawKitReliability Toolkit
Back to Registry
Official Verified finance Safety 2/5

agent-credit

Borrow from Aave via credit delegation. Agent self-funds by borrowing against delegator collateral. Supports borrow, repay, health checks. Works on Aave V2/V3.

skill-install — Terminal

Install via CLI (Recommended)

clawhub install openclaw/skills/skills/aaronjmars/agent-credit
Or

What This Skill Does

The agent-credit skill empowers your OpenClaw agent to interact directly with the Aave protocol through credit delegation. By leveraging Aave's unique architecture, this skill allows your primary wallet to supply collateral while delegating the authority to borrow assets to your agent's wallet. This creates a secure, compartmentalized environment where the agent manages liquidity on your behalf without requiring access to your main wallet's private keys. It supports full lifecycle management, including borrowing, repaying debts, and monitoring your account's health factor to ensure safety across both Aave V2 and V3 deployments.

Installation

To integrate this capability into your agent, use the OpenClaw CLI: clawhub install openclaw/skills/skills/aaronjmars/agent-credit Ensure your environment is configured with the necessary RPC endpoints and your agent's wallet address is properly authorized via the approveDelegation function on the relevant VariableDebtToken contracts before attempting to execute borrow operations.

Use Cases

  • Automated Liquidity Management: Automatically borrow USDC or other stablecoins when the agent identifies yield opportunities or needs to settle pending transactions.
  • Risk-Adjusted Leverage: Utilize the agent to maintain specific leverage ratios on assets, automatically repaying loans during market volatility to avoid liquidation.
  • Cross-Platform Trading: Borrow funds to feed into other OpenClaw skills like the Bankr tool for seamless swapping, bridging, or protocol interaction flows.
  • Delegated DeFi Operations: Separate your "cold" collateral holdings from the "hot" borrowing operations handled by the autonomous agent.

Example Prompts

  1. "Check my current health factor on Aave V3. If it's above 1.5, borrow 200 USDC for me."
  2. "Repay 50 USDC of my outstanding debt to lower my utilization rate."
  3. "Approve the agent to borrow up to 1000 USDC against my collateral to prepare for a new yield farming strategy."

Tips & Limitations

  • Safety First: Always monitor your account's health factor. While the agent can automate tasks, the delegator is responsible for maintaining sufficient collateral to prevent liquidation.
  • Granular Approvals: Delegation is asset-specific. If you want the agent to borrow multiple assets, you must execute approveDelegation for each specific VariableDebtToken contract.
  • Versioning: Note that while function signatures are consistent, V3 returns values in USD (8 decimals) while V2 uses ETH (18 decimals). Ensure your scripts account for this when setting loan limits.

Metadata

Stars4473
Views1
Updated2026-05-01
View Author Profile
AI Skill Finder

Not sure this is the right skill?

Describe what you want to build — we'll match you to the best skill from 16,000+ options.

Find the right skill
Add to Configuration

Paste this into your clawhub.json to enable this plugin.

{
  "plugins": {
    "official-aaronjmars-agent-credit": {
      "enabled": true,
      "auto_update": true
    }
  }
}

Tags(AI)

#defi#aave#crypto#automation#lending
Safety Score: 2/5

Flags: network-access, code-execution