Resources
Yield.xyz AgentKit
GitHub repository for the Yield.xyz AgentKit MCP server.
Yield.xyz AgentKit docs
Official documentation for the Yield.xyz AgentKit.
Privy agentic wallets
Set up Privy server wallets for autonomous agents.
Privy manual approvals
Intents API reference for semi-autonomous workflows.
What is Yield.xyz AgentKit?
Yield.xyz AgentKit is an MCP server that provides AI agents with tools to search yield opportunities, build deposit/withdraw/claim transactions, and check balances across 80+ networks. All yield operations go through MCP tools — agents never call the Yield.xyz REST API directly.Yield.xyz AgentKit is maintained by the Yield.xyz team. For AgentKit-specific issues, refer to
their GitHub repository.
Use cases
- Search and compare yield opportunities across networks
- Enter and exit yield opportunities (staking, lending, vaults, RWAs)
- Rebalance and rotate strategies
- Claim rewards and manage positions
- Monitor portfolios
DeFi yields
Access a broad range of yield opportunities across the DeFi ecosystem, including lending protocols, vaults, yield aggregators, and liquidity provisioning on DEXs. Agents can compare protocols using live metrics like TVL, historic APY, and risk scores to make optimal allocation decisions. Supported protocols include Aave, Spark, Sky, Morpho, Curve, Ethena, Lido, Upshift, Marinade, SummerFi, EtherFi, Compound, Maple, Euler, Yo Protocol, Fluid, and more.RWA yields
Access tokenized real-world assets — US Treasuries, private credit, CLOs, and institutional funds — on-chain. RWA yields are supported across both permissionless and KYC-gated providers, with built-in eligibility handling so agents never submit a transaction to a non-allowlisted wallet. Supported providers include Superstate, Midas, Ondo, Dinari, Nest, and Securitize.Eligibility gates: Before entering any RWA position, the agent automatically runs an eligibility check.
- Permissioned providers: The agent checks KYC status. If the wallet is approved, it proceeds to build and submit the transaction. If the wallet is not yet approved, the agent surfaces the issuer’s onboarding URL to complete KYC and stops — no transaction is submitted until the wallet is eligible.
- Open-access providers: No allowlist gate applies. The agent confirms jurisdiction eligibility and proceeds directly to build and submit the transaction.
Staking yields
Agents can stake across multiple networks, delegate to any active validator, compare commissions and reward rates, and perform all staking actions — stake, redelegate, unstake, and claim rewards. Supported staking opportunities include Ethereum, Hyperliquid, Solana, Polygon, BNB, Avalanche, and others.Demos
Autonomous — Portfolio Rebalance on BaseNetwork: Base · Workflow: Autonomous
Pre-condition: USDC deposited into Aave V3, Morpho, and Fluid via the Privy agent wallet. Semi-Autonomous — Split Deposit on Solana
Network: Solana · Workflow: Semi-Autonomous (Enterprise)
Pre-condition: Wallet funded with USDC on Solana, SOL for rent. Key quorum and approver configured. RWA Autonomous Flow - Dinari Midas Rebalancing Network: Base · Workflow: Autonomous
Pre-condition: An active position on Midas base
Prerequisites
- A Privy account with API credentials (dashboard.privy.io)
PRIVY_APP_IDandPRIVY_APP_SECRETset as environment variables- Optionally
PRIVY_WALLET_IDif a wallet already exists - Claude Code installed
- Privy Enterprise plan (required for the semi-autonomous workflow only)
Installation
Recommended: Claude Code plugin
Add the marketplace:Alternative: skill
yield-xyz-agentkit-privy) and an agent choice (Claude Code, Cursor, or Codex CLI). Once complete, the skill is symlinked into the project at .agents/skills/yield-xyz-agentkit-privy.
Open the agent in the project directory and run:
Workflows
Privy supports two control models for Yield.xyz AgentKit depending on approval requirements:- Autonomous — The agent signs and broadcasts transactions directly via Privy’s wallet RPC endpoint. Policies are enforced automatically within the TEE. No manual approval is required. Available on any Privy plan.
- Semi-autonomous (Enterprise) — Every transaction is submitted as an intent via Privy’s Intents API. A designated approver must review and approve each transaction on the Privy dashboard before it executes. Intents expire after 72 hours.
Autonomous
The agent signs and broadcasts transactions directly via Privy’s wallet RPC endpoint. Policies are enforced automatically within the TEE. No manual approval is required. Available on any Privy plan.1
Verify credentials
The skill checks that
PRIVY_APP_ID, PRIVY_APP_SECRET, and optionally PRIVY_WALLET_ID are
present.2
Register the MCP server
The skill registers the Yield.xyz AgentKit MCP server:
3
Configure a policy (optional)
The skill offers to attach a policy (conservative, balanced, or skip). Policies restrict
per-transaction spend, allowed chains, or allowlisted protocols. All enforcement happens inside
the TEE.
4
Create the wallet
The skill creates a wallet and attaches the policy if one was configured.
5
Fund the wallet
Send assets to the displayed wallet address.
6
Issue DeFi instructions
The agent is ready. Example prompt:
"Deposit USDC into Aave V3 on Base."Semi-autonomous (Enterprise)
Every transaction is submitted as an intent via Privy’s Intents API. A designated approver must review and approve each transaction on the Privy dashboard before it executes. Intents expire after 72 hours if not approved. Intent statuses:pending (awaiting approval), executed (broadcast), failed (execution error), expired (72h elapsed), rejected (cancelled), dismissed (resource changed).
1
Complete autonomous setup steps 1–3
Follow the credential verification, MCP registration, and policy configuration steps from the
autonomous workflow above.
2
Confirm Enterprise prerequisites
Verify the Enterprise plan is active and the approver has been invited and completed MFA.
3
Create a key quorum
Create a key quorum in the Privy dashboard under Wallet
Infrastructure → Authorization → New Key → Register Key Quorum Instead. Copy the Quorum ID and
provide it to the agent. The agent verifies it via
GET /v1/key_quorums/{id}.4
Create the wallet
The skill creates the wallet with the key quorum as owner:
5
Set up webhooks (optional)
Register an HTTPS endpoint under Configuration → Webhooks in the Privy dashboard and enable
all four intent events:
intent.created, intent.authorized, intent.executed, and
intent.failed. See Privy intent webhooks.For testing without a backend, use webhook.site.executed → reads hash.
Transaction flow
Every yield action — enter, exit, or manage — follows the same sequence:- Call
yields_getto inspect the yield schema - Call
actions_enter,actions_exit, oractions_manageto build unsigned transactions - MCP returns an array of transactions with
stepIndex,type, andunsignedTransaction - For each transaction in
stepIndexorder:- Autonomous:
POST /v1/wallets/{id}/rpc→ immediate hash - Semi-autonomous:
POST /v1/intents/wallets/{id}/rpc→ poll untilexecuted
- Autonomous:
- Report results with on-chain confirmation hashes
EVM transactions
Extract only the fields Privy accepts from the unsigned transaction:Solana transactions
Convert hex to base64 before submitting:Multi-transaction ordering
Transactions are processed sequentially instepIndex order. For EVM chains, the nonce increments for each subsequent transaction. If any transaction fails, execution stops immediately and the failure is returned.
The skill never modifies values inside an
unsignedTransaction. Amounts, recipient addresses,
fees, and calldata are passed through exactly as returned by the MCP. Only structural fields are
adjusted for Privy’s signing format.Error handling
What cannot be automated
Learn more
Yield.xyz AgentKit
Skill repository and MCP server source.
Yield.xyz AgentKit docs
AgentKit reference documentation.
Yield.xyz AgentKit MCP
MCP server endpoint and setup.
Yield.xyz RWA yields
Tokenized real-world asset reference.
Privy agentic wallets
Wallet setup guide for autonomous agents.
Privy manual approvals
Intents API reference.
Privy webhooks
Webhooks overview for transaction events.
Privy dashboard
Wallet and policy management.

