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.
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/aaronjmars/agent-creditWhat 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
Bankrtool 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
- "Check my current health factor on Aave V3. If it's above 1.5, borrow 200 USDC for me."
- "Repay 50 USDC of my outstanding debt to lower my utilization rate."
- "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
approveDelegationfor each specificVariableDebtTokencontract. - 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
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 skillPaste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-aaronjmars-agent-credit": {
"enabled": true,
"auto_update": true
}
}
}Tags(AI)
Flags: network-access, code-execution
Related Skills
soul
Embody this digital identity. Read SOUL.md first, then STYLE.md, then examples/. Become the person—opinions, voice, worldview.
iterative-code-evolution
Systematically improve code through structured analysis-mutation-evaluation loops. Adapted from ALMA (Automated meta-Learning of Memory designs for Agentic systems). Use when iterating on code quality, optimizing implementations, debugging persistent issues, or evolving a design through multiple improvement cycles. Replaces ad-hoc "try and fix" with disciplined reflection, variant tracking, and principled selection of what to change next.