Resources
- AgentKit on GitHub, the
yield-xyz-agentkit-privyskill and plugin - Privy agentic wallets
- Privy Intents API, for human approvals
What the agent can do
- Search and compare yields across networks on live rate, TVL, rate history and risk
- Enter and exit staking, lending, vault and RWA positions
- Rebalance and rotate between strategies
- Claim rewards and complete pending actions
- Monitor a portfolio
See MCP server for every tool’s inputs.
RWA eligibility
Before entering an RWA position, the agent checks eligibility. For a permissioned issuer it checks the wallet’s KYC status: if the wallet is approved it builds and submits the transaction, and if not it shows the issuer’s onboarding URL and stops, so nothing is sent from a wallet that is not allowlisted. For an open-access issuer it confirms jurisdiction eligibility and proceeds.Prerequisites
- A Privy app with API credentials from the Privy dashboard, with
PRIVY_APP_IDandPRIVY_APP_SECRETset as environment variables, and optionallyPRIVY_WALLET_IDfor an existing wallet - An agent such as Claude Code, Cursor or Codex CLI
- A Privy Enterprise plan, for the semi-autonomous workflow only
Install
- Claude Code plugin
- Skill
Choose a workflow
Autonomous
1
Verify credentials
The skill checks that
PRIVY_APP_ID and PRIVY_APP_SECRET, and optionally PRIVY_WALLET_ID, are set.2
Register the MCP server
3
Attach a policy (optional)
Choose conservative, balanced or none. Policies limit per-transaction spend, allowed chains and allowlisted protocols, and are enforced inside the TEE.
4
Create and fund the wallet
The skill creates the wallet, attaches the policy and shows the address. Send assets to it.
5
Give instructions
For example:
Deposit USDC into Aave V3 on Base.Semi-autonomous
Each transaction becomes a Privy intent that a designated approver reviews on the Privy dashboard. Intents expire after 72 hours. Their statuses arepending, executed, failed, expired, rejected and dismissed.
1
Run the first three autonomous steps
Verify credentials, register the MCP server and choose a policy.
2
Confirm Enterprise prerequisites
The Enterprise plan is active, and the approver has been invited and completed MFA.
3
Create a key quorum
In the Privy dashboard, go to Wallet Infrastructure, Authorization, New Key, Register Key Quorum Instead. Give the Quorum ID to the agent, which verifies it with
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)
Under Configuration, Webhooks, register an HTTPS endpoint and enable
intent.created, intent.authorized, intent.executed and intent.failed.executed and reads the hash.
Transaction flow
Every enter, exit or manage follows the same sequence:yields_getto read the yield’s argument schemaactions_enter,actions_exitoractions_manageto build the transactions, returned withstepIndex,typeandunsignedTransaction- For each transaction, in
stepIndexorder:- Autonomous:
POST /v1/wallets/{id}/rpcreturns the hash - Semi-autonomous:
POST /v1/intents/wallets/{id}/rpc, then poll untilexecuted
- Autonomous:
submit_hashwith each confirmed hash, and report the result
EVM
Pass only the fields Privy accepts from the unsigned transaction:Solana
Privy takes the transaction as base64. A SolanaunsignedTransaction can come back hex or base64 encoded depending on the yield; convert hex to base64 first:
Ordering
Transactions run one at a time instepIndex order, with the EVM nonce increasing for each. If one fails, the agent stops and reports the failure. The skill never changes amounts, recipients, fees or calldata inside an unsignedTransaction: only field names are adjusted for Privy’s format.
Error handling
What stays manual
Next steps
AgentKit
Plugins and skills for other agents and wallets.
Guardrails
What AgentKit checks before any transaction is built.
MCP server
Every tool and its inputs.
RWAs
Issuers, eligibility and redemption timing.

