Skip to main content

Step 1: Install the skill

Choose your agent platform:

Claude Code

OpenClaw

npm / bun / pnpm

Step 2: Set up a wallet

You need a wallet for signing. We recommend Privy — it integrates with agent runtimes like OpenClaw. Set these environment variables:
If using Privy with Claude Code, PRIVY_APP_ID and PRIVY_APP_SECRET are provided by the Privy skill. Install it first.

Step 3: Fund your test wallet

Staging runs on managed test RPCs (Anvil forks of mainnet). Fund your wallet with test tokens:
Both amounts are in base units: ethWei is in wei (above = 0.02 ETH), usdcAmount is in 6-decimal base units (above = 50 USDC). These are the per-call maximums. No real funds required. See Test RPCs for details.

Step 4: Discover vaults

Browse available vaults before depositing:
Review the results and pick a vault that fits your agent’s mandate.

Step 5: Execute via the skill

Once installed, ask your agent:
Discover USDC vaults on Base, show me the options, then deposit 1 USDC into the one I pick.
Or invoke the skill script directly with a chosen vaultId:
The script uses a nested input format (deposit: { asset, amount, vaultId }), which differs from the REST API’s flat format (POST /v1/yield/prepare takes asset, amount, vaultId as top-level fields). The script maps between the two internally. See the Quickstart for the REST API format.

What you get

The rhaios-staging skill gives your agent a complete yield workflow:
  1. Discover — browse and rank vaults by APY, risk, TVL, and Sharpe ratio
  2. Prepare — build a deposit, redeem, or rebalance intent with preflight simulation
  3. Sign — sign with your agent’s own keys (non-custodial, EIP-7702)
  4. Execute — submit the signed transaction and verify the position

Next steps

  • Quickstart — full API walkthrough with curl examples
  • Architecture — how EIP-7702 delegation works
  • Strategies — scoring modes and the upcoming strategy marketplace