agent-creditlisted
Install: claude install-skill aaronjmars/agent-credit
# Aave Credit Delegation
Borrow funds from Aave using delegated credit. Your main wallet supplies collateral and delegates borrowing power to the agent's wallet. The agent can then autonomously borrow tokens when needed — the debt accrues against the delegator's position.
> **Protocol:** Borrowing requires **Aave V3**. `aave-borrow.sh` resolves the price oracle through `ADDRESSES_PROVIDER()`, which exists on V3's `Pool` but not on V2's `LendingPool` (V2 exposes `getAddressesProvider()`), so a borrow aborts on a V2 market before any safety check runs. `aave-status.sh`, `aave-repay.sh`, and `aave-setup.sh` do not use that getter and do work against V2.
>
> The credit-delegation signatures themselves (`borrow`, `repay`, `approveDelegation`, `borrowAllowance`) are identical across both versions. V2 denominates collateral and debt in ETH (18 decimals) rather than USD (8), so set `AAVE_BASE_CURRENCY_DECIMALS=18` there for correct `~$X` display; the safety comparisons hold either way.
## Compatible With
- **[OpenClaw](https://openclaw.ai/)** — Install as a skill, the agent borrows autonomously
- **[Claude Code](https://www.npmjs.com/package/@anthropic-ai/claude-code)** — Run scripts directly from a Claude Code session
- **Any agent framework** — Plain bash + Foundry's `cast`, works anywhere with a shell
Combines with **[Bankr](https://bankr.bot/)** skills for borrow-then-swap flows: borrow USDC via delegation, then use Bankr to swap, bridge, or deploy it.
## How Credit Delegat