zyfai
Earn yield on any Ethereum wallet on Base, Arbitrum, and Plasma. Use when a user wants passive DeFi yield on their funds. Deploys a non-custodial subaccount (Safe) linked to their EOA, enables automated yield optimization, and lets them deposit/withdraw anytime.
Why use this skill?
Turn any Ethereum wallet into a yield-generating account on Base, Arbitrum, and Plasma. Secure, non-custodial DeFi yield with automated subaccount management.
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/pauldefi/zyfai-sdkWhat This Skill Does
The Zyfai skill enables seamless, non-custodial yield generation directly from any Ethereum wallet on Base, Arbitrum, and Plasma. By integrating this skill, users can transform their idle assets into productive capital without relinquishing control of their private keys. When a user requests to earn yield, Zyfai programmatically deploys a Safe smart-wallet subaccount linked specifically to the user's existing External Owned Account (EOA). This subaccount acts as a secure, automated vehicle for DeFi participation. The system employs session keys to manage automated rebalancing and yield optimization across protocols, ensuring that funds are constantly deployed in the most efficient manner possible. Crucially, the subaccount remains under the ownership of the user's EOA; the session keys are restricted and cannot move funds to arbitrary addresses, ensuring a high degree of security. This non-custodial architecture means users retain the power to withdraw their assets to their primary wallet at any time, providing both convenience and peace of mind.
Installation
To begin using Zyfai, ensure your environment meets the Node.js 18+ requirement. Install the necessary dependency using the package manager within the OpenClaw ecosystem:
clawhub install openclaw/skills/skills/pauldefi/zyfai-sdk
After installation, developers should configure their API access. Agents can generate their own API keys via a POST request to the Zyfai endpoint, which links the key to a specific agent wallet address. Store your apiKey in a secure environment variable, as it cannot be retrieved once generated.
Use Cases
- Passive Income Generation: Automatically move idle USDC or ETH into high-yield DeFi vaults.
- Portfolio Diversification: Manage yield across multiple supported L2 chains (Base, Arbitrum, Plasma) from a single user interface.
- Risk-Adjusted Optimization: Let the protocol rebalance assets to ensure optimal yield versus protocol risk.
- Institutional-Grade Security: Leverage Safe smart contract infrastructure for all yield-bearing activities.
Example Prompts
- "Zyfai, set up a yield-earning subaccount for my connected wallet and move 500 USDC into the highest-yield stablecoin vault on Arbitrum."
- "Can you check the current APY for my assets on Base and rebalance if there's a better opportunity?"
- "Withdraw all my earned yield and the principal from my Zyfai subaccount back to my main wallet address."
Tips & Limitations
- Address Handling: Always pass the user's EOA address as the
userAddress. The SDK handles subaccount derivation automatically; attempting to use the Safe address will result in errors. - API Key Security: Never hardcode your API key. Treat it like a private key by storing it in secret management services (like AWS Secrets Manager or .env files).
- Chain Support: Ensure you are operating within the supported network list (Base, Arbitrum, or Plasma). Attempts to deploy on unsupported networks will fail.
- Ownership: The system is non-custodial, but users must remember that they retain ultimate responsibility for their private keys.
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-pauldefi-zyfai-sdk": {
"enabled": true,
"auto_update": true
}
}
}Tags(AI)
Flags: network-access, external-api