> For the complete documentation index, see [llms.txt](https://docs.ratehopper.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.ratehopper.ai/integrations/for_ai_agents.md). Agents can also search and read this documentation through its [MCP server](https://docs.ratehopper.ai/~gitbook/mcp).

# For AI Agents

How an autonomous agent deploys, monitors and closes Ratehopper agents on a user's behalf.

There are three ways in. Two need **no API key**.

| Route                | Key               | You get                                                                                                   | Reference                                                                       |
| -------------------- | ----------------- | --------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------- |
| **Base MCP server**  | No                | The **Self Repay Agent** and the **Managed USDC LP Agent**, with the user's own wallet signing every step | [Base MCP server](https://docs.ratehopper.ai/integrations/base_mcp.md)          |
| **Virtuals ACP**     | No                | The same two agents, bought as ACP jobs by another agent                                                  | [Virtuals ACP](https://docs.ratehopper.ai/integrations/virtuals_acp.md)         |
| **Partner REST API** | Yes (`x-api-key`) | Both, server to server                                                                                    | [Partner REST API](https://docs.ratehopper.ai/integrations/partner_rest_api.md) |

Machine-readable summary: [ratehopper.ai/llms.txt](https://ratehopper.ai/llms.txt) · Live index: [ratehopper.ai/agents](https://ratehopper.ai/agents)

***

## Which route

Both keyless routes now sell **both products** — the Self Repay Agent (ETH/WETH collateral, USDC loan, LP fees repay the loan) and the Managed USDC LP Agent (the user's USDC in a managed LP, no loan). The routes differ in who signs and who owns the Safe:

|                   | Base MCP server                                                  | Virtuals ACP                                                                                                                    |
| ----------------- | ---------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------- |
| Products          | Self Repay Agent + Managed USDC LP Agent                         | Self Repay Agent + Managed USDC LP Agent                                                                                        |
| Who signs         | The user's Base Account, per step, through Coinbase's `base-mcp` | The buyer's ACP wallet funds the job; Ratehopper's operator runs the position (for Self Repay, including the supply/borrow leg) |
| Who owns the Safe | The user                                                         | The buyer, from deployment                                                                                                      |
| Liquidation risk  | Self Repay only, with protection on by default                   | Self Repay only, with protection on by default                                                                                  |
| Fits              | MCP clients such as Claude Desktop, Cursor, agent frameworks     | Agents already on the Virtuals network                                                                                          |

"No key" describes the end agent. Ratehopper's own MCP server and ACP provider hold partner keys server-side; you never see them.

Both routes are Base mainnet only.

***

## Trust and custody model

The same five rules apply on every route.

1. **Setup records intent.** Ratehopper creates a position record only after confirming on-chain evidence itself: a transaction it recognises, or a balance it can read.
2. **The user or buyer owns the Safe.** Ratehopper is never an owner and never holds a key.
3. **The operator acts through a scoped module.** Ratehopper's operator holds a Zodiac Roles role limited to the strategy functions. It cannot change owners and cannot send funds to a third party. On the MCP route it can additionally return funds to the Safe's own owner.
4. **Close is user-signed or operator-scoped, never discretionary.** On MCP the user signs each close step. On ACP the buyer orders the close as a job, and the withdrawal is a transaction only the buyer can submit.
5. **Retries are safe.** Every write is idempotent.

***

## What runs after setup

Once open, every agent is managed the same way: re-checked hourly, moved out of the pool when the risk signals turn against the position, and back in once conditions settle. See [Automation](https://docs.ratehopper.ai/features/automation.md) for what runs on a schedule.

Two behaviours worth stating to a user before they commit:

* The agent may sit in **cash** rather than opening immediately. Waiting is part of the strategy.
* While the price is **outside** the band the position earns no fees. It is **held, not sold**. Leaving the range is not by itself a reason to exit.

A third applies to the Self Repay Agent only: it is enrolled in liquidation protection (unwind 25% of the debt at 78% loan-to-value) and automatic refinancing by default.

***

## Fees

Ratehopper takes **2.5% of the trading fees it harvests** from a managed position and **10% of the profit above cost basis when a position is closed**. Nothing on a position that closes at a loss; principal is never charged. Both are taken on-chain by the positions contract. There are no other Ratehopper fees.

On top of these, a Virtuals ACP job carries the service fee set in the offering, currently a fixed 0.01 USDC per job. The Base MCP server charges nothing.

***

## Support

* Key requests and integration questions: <support@ratehopper.ai>
* Live agents, verifiable on-chain: [ratehopper.ai/#live-agents](https://ratehopper.ai/#live-agents)
* Product detail: [Agent Actions](https://docs.ratehopper.ai/features/agent_actions.md)
