HypurrFi Skill
DeFi lending for AI agents on Hyperliquid.
Deposit assets → Earn yield. Post collateral → Borrow. All on HyperEVM.
Quick Start (Git Clone → Deposit in 5 min)
CODEBLOCK0
Market Types
| Market | Risk | Style | Best For |
|---|
| Pooled | Shared | Aave v3 | Deepest liquidity, cross-collateral borrowing |
| Prime |
Lower | Euler | Safer assets, conservative strategies |
|
Yield | Higher | Euler | Higher APY, riskier assets |
|
Vault | Managed | Curated | Set-and-forget, ClearstarLabs managed |
⚠️ Important: Assets in one market can't collateralize another. HYPE in Prime ≠ collateral for Pooled borrows.
Commands
Check Your Positions
CODEBLOCK1
Deposit (Earn Yield)
CODEBLOCK2
Withdraw
CODEBLOCK3
Borrow (Against Collateral)
CODEBLOCK4
Repay
CODEBLOCK5
Check APY Rates
CODEBLOCK6
Tokens Supported
| Token | Address | Markets |
|---|
| HYPE | Native | Pooled, Prime, Yield |
| USDT0 |
0xB8CE59FC3717ada4C02eaDF9682A9e934F625ebb | All |
| USDC |
0x211Cc4DD073734dA055fbF44a2b4667d5E5fE5d2 | Pooled |
| USDXL |
0xca79db4B49f608eF54a5CB813FbEd3a6387bC645 | Pooled |
| hwHYPE |
0x... | Prime, Yield |
Safety Rules
- 1. Always check health factor before borrowing more
- Health > 1.5 = Safe
- Health 1.0-1.5 = Caution
- Health < 1.1 = Liquidation risk!
- 2. Confirm before transactions — use
--yes only after reviewing
- 3. Start small — test with small amounts first
- 4. Monitor positions — run
node scripts/health.js regularly
- 5. Keep gas reserves — need ~0.01 HYPE for transactions
Common Workflows
Earn Yield on Stablecoins
CODEBLOCK7
Leverage HYPE (Loop)
CODEBLOCK8
Conservative Treasury
# Use Vault for managed, lower-touch yield
node scripts/deposit.js vault usdt0 10000 --yes --json
Error Handling
| Error | Cause | Fix |
|---|
| "No wallet found" | Wallet not setup | Run INLINECODE6 |
| "Insufficient balance" |
Not enough tokens | Fund wallet first |
| "Health factor too low" | Over-leveraged | Repay debt or add collateral |
| "Amount exceeds available" | Trying to withdraw too much | Check positions, use
max |
Links
- - App: https://app.hypurr.fi
- Docs: https://docs.hypurr.fi
- Explorer: https://explorer.hyperliquid.xyz
- Support: https://discord.gg/hypurrfi
Wallet Location
Private key stored at: INLINECODE8
Never share this file. Same wallet works for HyperCore L1 and HyperEVM.
HypurrFi 技能
面向Hyperliquid上AI代理的DeFi借贷服务。
存入资产 → 赚取收益。抵押资产 → 借贷。全部在HyperEVM上完成。
快速入门(Git克隆 → 5分钟完成存入)
bash
1. 克隆并安装
git clone https://github.com/hypurrfi/hypurrfi-skill.git ~/.openclaw/workspace/skills/hypurrfi
cd ~/.openclaw/workspace/skills/hypurrfi && npm install
2. 设置钱包(如尚未创建)
node scripts/setup.js --json
3. 用HYPE或稳定币为钱包充值
通过 https://cctp.to 桥接,或从HyperCore L1转账
4. 存入!
node scripts/deposit.js pooled usdt0 100 --json
市场类型
| 市场 | 风险 | 模式 | 最佳用途 |
|---|
| Pooled(共享池) | 共享 | Aave v3 | 最深流动性,跨抵押借贷 |
| Prime(优选) |
较低 | Euler | 更安全的资产,保守策略 |
|
Yield(收益) | 较高 | Euler | 更高年化收益率,风险较高的资产 |
|
Vault(金库) | 托管 | 精选 | 存入即忘,由ClearstarLabs管理 |
⚠️ 重要提示: 一个市场中的资产不能作为另一个市场的抵押品。Prime市场的HYPE ≠ Pooled借贷的抵押品。
命令
查看您的仓位
bash
所有市场的仓位概览
node scripts/positions.js --json
详细健康因子和清算风险
node scripts/health.js --json
存入(赚取收益)
bash
存入特定市场
node scripts/deposit.js <市场> <代币> <数量> [--yes] [--json]
示例
node scripts/deposit.js pooled usdt0 100 --json # Pooled市场
node scripts/deposit.js prime hype 10 --json # Prime市场(较低风险)
node scripts/deposit.js yield hype 10 --json # Yield市场(较高年化收益率)
node scripts/deposit.js vault usdt0 100 --json # ClearstarLabs金库
提取
bash
node scripts/withdraw.js <市场> <代币> <数量|max> [--yes] [--json]
示例
node scripts/withdraw.js pooled usdt0 50 --json
node scripts/withdraw.js pooled usdt0 max --json # 提取全部
借贷(以抵押品为担保)
bash
先存入抵押品,再借贷
node scripts/borrow.js <市场> <代币> <数量> [--yes] [--json]
示例:在Pooled市场以HYPE为抵押品借入USDT0
node scripts/deposit.js pooled hype 10 --yes --json
node scripts/borrow.js pooled usdt0 1000 --yes --json
还款
bash
node scripts/repay.js <市场> <代币> <数量|max> [--yes] [--json]
示例
node scripts/repay.js pooled usdt0 500 --json
node scripts/repay.js pooled usdt0 max --json # 偿还全部债务
查看年化收益率
bash
node scripts/rates.js --json
支持的代币
| 代币 | 地址 | 市场 |
|---|
| HYPE | 原生 | Pooled, Prime, Yield |
| USDT0 |
0xB8CE59FC3717ada4C02eaDF9682A9e934F625ebb | 全部 |
| USDC | 0x211Cc4DD073734dA055fbF44a2b4667d5E5fE5d2 | Pooled |
| USDXL | 0xca79db4B49f608eF54a5CB813FbEd3a6387bC645 | Pooled |
| hwHYPE | 0x... | Prime, Yield |
安全规则
- 1. 始终检查健康因子后再增加借贷
- 健康因子 > 1.5 = 安全
- 健康因子 1.0-1.5 = 谨慎
- 健康因子 < 1.1 = 存在清算风险!
- 2. 交易前确认 — 仅在审查后使用 --yes
- 3. 从小额开始 — 先用小额资金测试
- 4. 监控仓位 — 定期运行 node scripts/health.js
- 5. 保留Gas储备 — 交易需要约0.01 HYPE
常见操作流程
稳定币赚取收益
bash
将USDT0存入Pooled市场,获取约5-15%年化收益率
node scripts/deposit.js pooled usdt0 1000 --yes --json
HYPE杠杆操作(循环)
bash
1. 存入HYPE
node scripts/deposit.js pooled hype 100 --yes --json
2. 以HYPE为抵押借入稳定币
node scripts/borrow.js pooled usdt0 5000 --yes --json
3. (可选)用借入的稳定币购买更多HYPE
...然后将这些HYPE也存入(循环操作)
保守型资金管理
bash
使用金库获取托管式、低维护的收益
node scripts/deposit.js vault usdt0 10000 --yes --json
错误处理
| 错误 | 原因 | 解决方法 |
|---|
| 未找到钱包 | 钱包未设置 | 运行 node scripts/setup.js |
| 余额不足 |
代币不足 | 先为钱包充值 |
| 健康因子过低 | 杠杆过高 | 偿还债务或增加抵押品 |
| 金额超出可用范围 | 尝试提取过多 | 检查仓位,使用 max |
链接
- - 应用:https://app.hypurr.fi
- 文档:https://docs.hypurr.fi
- 浏览器:https://explorer.hyperliquid.xyz
- 支持:https://discord.gg/hypurrfi
钱包位置
私钥存储位置:~/.hyperliquid-wallet.json
切勿分享此文件。 同一钱包适用于HyperCore L1和HyperEVM。