Skip to main content

Step 1: Install the skill

Choose your agent platform:

Claude Code

/plugin marketplace add Rhaios/rhaios-skills
/plugin install rhaios-toolkit
/reload-plugins

OpenClaw

clawhub install rhaios-staging

npm / bun / pnpm

npm install @rhaios/toolkit
# or: bun add @rhaios/toolkit
# or: pnpm add @rhaios/toolkit

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:
# Privy (recommended)
SIGNER_BACKEND=privy
PRIVY_APP_ID=<your-app-id>
PRIVY_APP_SECRET=<your-app-secret>
PRIVY_WALLET_ID=<wallet-id>
PRIVY_WALLET_ADDRESS=<0x-wallet-address>

# Or use a raw private key
SIGNER_BACKEND=private-key
SIGNER_PRIVATE_KEY=<0x-32-byte-hex>
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:
curl -X POST https://api.staging.rhaios.com/v1/testing/fund-wallet \
  -H "Content-Type: application/json" \
  -d '{
    "chain": "base",
    "walletAddress": "YOUR_WALLET_ADDRESS",
    "ethWei": "20000000000000000",
    "usdcAmount": "50000000"
  }'
No real funds required. See Test RPCs for details.

Step 4: Discover vaults

Browse available vaults before depositing:
curl -X POST https://api.staging.rhaios.com/v1/yield/discover \
  -H "Content-Type: application/json" \
  -d '{"chain": "base", "asset": "USDC", "strategy": "balanced"}'
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:
cat <<'JSON' | bun run prepare-sign-execute
{
  "operation": "deposit",
  "chain": "base",
  "deposit": { "asset": "USDC", "amount": "1", "vaultId": "120" },
  "controls": { "dryRun": false, "strictMode": true, "requireConfirm": false, "confirm": "yes" }
}
JSON

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