# Ratehopper > Ratehopper is a non-custodial DeFi automation protocol on Base. Its AI > agents run concentrated liquidity positions that earn trading fees, and your > funds stay in a Safe wallet you own. AI agents can integrate via the Ratehopper Base MCP server, Virtuals ACP, or the partner REST API. ## Agent integrations - [Agents overview](https://ratehopper.ai/agents): human- and agent-readable index of how AI agents can integrate with Ratehopper - Base MCP server: https://base.mcp.ratehopper.ai/mcp - add directly to any MCP client (e.g. Claude Desktop) alongside Coinbase's base-mcp (https://mcp.base.org), which prompts the user to connect their wallet in the Base app (base.app) and handles signing. No API key. Creates the Self Repay Agent (ETH collateral, USDC loan on Aave v3, Uniswap v3 LP fees repay the loan) and the Managed USDC LP Agent (cash_lp: USDC only, no loan). 14 tools: list_safes, get_agents_for_owner, prepare_deploy_safe, prepare_enable_operator, prepare_enable_debt_swap, create_self_repay_agent (returns an approveHash to sign), create_cash_agent (takes collateralAmount in raw USDC, returns { setupRequestId }; registers directly, nothing to sign after the funding batch), get_setup_request_status, get_agent_performance, get_agent_portfolio, get_agent_logs, prepare_close_agent_step, prepare_transfer_to_owner, confirm_agent_closed. prepare_* tools return unsigned {to, value, data} (plus dataHexLength, to check the copy) for the user's wallet to sign via base-mcp send_calls; Ratehopper never holds keys. Signatures: 2 for the Self Repay Agent, 1 for the Managed USDC LP Agent (the funding transfer is batched with the module enables), plus 1 if a new Safe is deployed. - Virtuals ACP: provider "RateHopper" on the Virtuals Agent Commerce Protocol (find it in the Virtuals ACP directory). No API key. Creates the Managed USDC LP Agent (cash_lp: the buyer's USDC in a managed Uniswap v3 WETH/USDC position, no borrowing, no liquidation risk) and the Self Repay Agent (borrow_lp: fund-transfer WETH, Ratehopper supplies to Aave v3 and borrows USDC; liquidation protection on by default). Jobs: setup_simple_lp_agent (fund-transfer USDC, min 10 USDC), setup_self_repay_lp_agent (fund-transfer WETH; collateralAmount + debtAmount), close_lp_agent (operator-run full unwind: LP exit, and for Self Repay also loan repayment and collateral withdrawal into the Safe), transfer_lp_agent_funds (returns an unsigned sweep the buyer signs), get_lp_agent_position, analyze_debt_position. Plus twelve read-only data jobs: provide_lending_rate_history, provide_borrowing_rate_history, provide_borrowing_markets, provide_lending_markets, provide_lp_range_recommendation, provide_lp_pool_comparison, provide_lp_venue_quote, provide_lp_fee_apy_history, provide_lp_exit_signals (sold via a subscription tier: activation pays the tier price, pulls under an active package are budgeted at 0; mode=track-record returns the nightly backtest summary for the signal versions), provide_options_market_data, provide_lp_pool_stats and provide_lp_reference_data (the pool keys and signal versions the other LP jobs take). Fixed 0.01 USDC service fee per job. The buyer's ACP wallet is the sole owner of the deployed Safe. - Partner REST API: backs both integrations. Requires an x-api-key header issued per surface by support@ratehopper.ai. /api/base-mcp (12 routes: setup, status, execution callback, logs, portfolio, performance, agents by owner, LP close calldata, close notification), /api/virtuals-acp (11 routes: setup, status, execution callback, logs, portfolio, close, transfer-to-owner, update-yield-manager) and /api/agent-data (2 read-only routes backing the ACP data jobs that need Ratehopper's own archive: the hourly LP exit/enter signal and the signal-version list; the other data jobs query the public RHRH history, SetTheTick and DefendTheTick APIs directly). Base mainnet (8453) only. 300 requests/min per IP. No hosted schema; the docs are the reference. ## Integration guides - [For AI agents](https://docs.ratehopper.ai/integrations/for_ai_agents): both routes sell both products; the trust and custody model, fees. - [Base MCP server](https://docs.ratehopper.ai/integrations/base_mcp): tool reference, the create flows (Self Repay: one batch that funds the Safe with ETH and enables operator + debt-swap, then create_self_repay_agent returns an approveHash to sign and Ratehopper's relayer executes within ~15-30 s; Cash: one batch that funds the Safe with USDC and enables the operator, then create_cash_agent), the close loop. - [Virtuals ACP](https://docs.ratehopper.ai/integrations/virtuals_acp): job offerings with requirement and deliverable schemas, custody, exit. - [Partner REST API](https://docs.ratehopper.ai/integrations/partner_rest_api): every route, request fields, statuses, callback semantics. ## Rules that trip integrations up - A 404 from a read-back route right after setup means "not yet", not "wrong": poll GET /setup-requests/:id until agentId appears, then read. - Setup records intent only. Ratehopper creates position records after confirming on-chain evidence itself; a partner reporting "confirmed" does not by itself make an agent exist. - A rejected setup request returns HTTP 201 with status "failed"; check the body, not the status code. - On Base MCP, a Self Repay creation transaction must carry the setup request id in its metadata or agentId never populates. The MCP server's relayer does this for you. Cash agents have no creation transaction; the backend finalises them once the Safe is funded (allow up to 10 minutes). - No create tool or route enforces one agent per Safe. Check get_agents_for_owner first and never create twice on one Safe. - All writes are idempotent, so retries are safe. ## Products reachable via these integrations - Self Repay Agent: borrows against collateral into a liquidity position and repays the loan with the trading fees. Carries debt. Liquidation protection (unwind 25% of debt at 78% LTV) and automatic refinancing are on by default for partner-created agents. Base MCP, Virtuals ACP and REST. - Managed USDC LP Agent (cash_lp): the user's own USDC into a managed concentrated-liquidity position. No borrowing, no liquidation risk. Also self-serve at https://ratehopper.ai/earn. Base MCP, Virtuals ACP and REST. - Both: re-checked hourly, moved out of the pool when risk signals turn against the position and back in once conditions settle. A position whose price has left its band is HELD, not sold - it simply earns no fees until the price returns or the signal moves it. riskLevel low/medium/high maps to a band of 1.5/1.0/0.75 standard deviations of the 14-day implied move. - Fees: Ratehopper takes 2.5% of the trading fees harvested from a managed position and 10% of the profit above cost basis when a position is closed (nothing on a position closed at a loss; principal is never charged). Both are charged on-chain by the positions contract. No other Ratehopper fees. - Tokenized stocks: Ratehopper tracks pool data for tokenized stocks on https://ratehopper.ai/analyze. An agent that manages tokenized stock liquidity is coming soon; no agent manages them today. ## About, security and FAQ - [About Ratehopper](https://ratehopper.ai/about): what the agents do, how they manage a position, track record and the team (built by the team behind APY.Vision). - [Security and audits](https://ratehopper.ai/security): custody model (Safe wallet the user owns, Zodiac Roles), what the agent can and cannot do, how to verify and revoke it, four audits with two public reports (RaidGuild 2025, Shred 2026), the risks that remain and how to report a vulnerability (bugs@ratehopper.ai). - [FAQ](https://ratehopper.ai/help): answer-first questions on borrowing, liquidation protection, a worked example, fees, risks, returns, minimum deposits and closing an agent. - [Backtest and methodology](https://ratehopper.ai/backtest): the v9 strategy backtest, October 2025 to May 2026 (+21.7% net vs -25.1% passive LP vs -42.8% holding ETH, Sharpe 2.31, real fee data), with its method and limitations. One historical window, not a forecast. - [How Ratehopper compares](https://ratehopper.ai/compare): versus managing lending and liquidity by hand, yield aggregators, liquidity range managers and position automation, by category. - [Glossary](https://ratehopper.ai/glossary): plain definitions of the terms used across the site. - [Historical borrow rates](https://ratehopper.ai/historical-rates): daily USDC borrow rates on Base by lender, with a current summary and history.