An AI agent skill for interacting with the LOAN Protocol on XPR Network to supply assets, borrow against collateral, and manage DeFi positions.
The fastest way to install a skill directly from the registry.
npx clawhub@latest install xpr-lending
Copy the skill folder to one of these locations
~/.openclaw/skills/ <project>/skills/ Priority: Workspace > Local > Bundled
Copy this prompt to OpenClaw to install it automatically.
Help me install xpr-lending using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).
Get the raw skill files in a ZIP archive.
This skill provides a comprehensive interface for interacting with the LOAN Protocol, a Compound-style pooled lending system on the XPR Network. It allows AI agents to facilitate asset lending and borrowing directly through the lending.loan contract. By utilizing these Openclaw Skills, users can supply various assets to earn auto-compounding interest through L-Tokens, which represent their share in the lending pool.
The skill supports 14 active markets, including XUSDC, XBTC, and XPR. It is designed specifically for mainnet operations, providing both read-only tools for market analysis—such as tracking historical APY and TVL—and write tools for managing active financial positions. The integration ensures that complex DeFi actions like collateral management and reward claiming are handled with precision and required user confirmations.
These Openclaw Skills are designed for XPR Network mainnet interaction. Ensure your environment is configured with the necessary permissions for the lending.loan contract.
# Example of initializing a lending position
# Note: Always verify market availability before supplying
loan_enter_markets symbols=["XUSDC", "XBTC"]
The skill manages data related to market dynamics, user debt, and protocol configurations. Below is the primary data structure for market and user tracking:
| Category | Data Points |
|---|---|
| Market Data | L-Token symbol, utilization rate, total reserves, collateral factor, and interest model. |
| User Data | Supply shares (L-Tokens), active borrow positions, and available borrowing power. |
| Historical Stats | 7d, 30d, and 90d APY and TVL trends sourced from Metal X API. |
| Protocol Config | Global oracle addresses, liquidation incentives (10%), and close factors. |
Loading
A secure, sandboxed environment for executing JavaScript code and mathematical expressions within AI agent workflows.

Operate an autonomous AI agent on the XPR Network's trustless registry to handle profile management, job bidding, and delivery.

A specialized toolset for interacting with the Metal Dollar (XMD) stablecoin ecosystem, enabling seamless minting, redemption, and deep reserve analytics.

A specialized skill for managing on-chain governance, proposals, and voting strategies on the XPR Network.

A comprehensive toolset for managing the full AtomicAssets and AtomicMarket NFT lifecycle on the XPR Network.

A comprehensive toolkit for parsing CSV datasets, converting JSON to CSV, and generating professional SVG visualizations.








































