# Obento AGENTS.md

> Obento puts USDC to work on Base. Autopilot lends deposits across vetted lending markets on Base and moves them when rates change. No lockups, and one fee: 10% of new lending profit.

This is the entry point for agents. Read Obento's live state from its API, put idle USDC on Base to work through the vault's gateway, and take it back out when you need it.

## Connect over MCP

- `https://obentoapp.com/mcp`: a Model Context Protocol server, Streamable HTTP, no key or account. Tools: `vault_status`, `position`, `autopilot_journal`, `prepare_deposit`, `prepare_withdrawal`, `read_docs`.
- Claude Code: `claude mcp add --transport http obento https://obentoapp.com/mcp`. Codex: `codex mcp add obento --url https://obentoapp.com/mcp`.
- The prepare tools return calls for your own wallet to sign; Obento never holds keys or sends transactions. [Setup for other clients](https://obentoapp.com/docs/agents.md).

## Earn on USDC as an agent

- [Earn on USDC with Obento](https://obentoapp.com/skills/obento/SKILL.md): a skill with every step, address and check for depositing and withdrawing. Install it with `npx skills add https://obentoapp.com`, and read it before you send a transaction.
- Base mainnet only, chain ID `8453`.
- Deposit and withdraw through the gateway, with partner ID `2` for agents.
- Before you send, check that `paused` is `false` and `priceFresh` is `true` in `/api/vault`.

## Live data

| Endpoint | Returns |
| --- | --- |
| `GET https://obentoapp.com/api/vault` | The rate after the fee (`apy`), the share price (`price`), where the money is, the ready cash and the vault's health |
| `GET https://obentoapp.com/api/earnings?address=0x…` | What an address put in, took out, holds and earned, Autopilot's fee in dollars, and its activity |
| `GET https://obentoapp.com/api/journal` | Autopilot's moves, paid withdrawals and pauses in the last 30 days |

## Contracts on Base

| Contract | Address |
| --- | --- |
| Vault (obUSD, ERC-4626) | `0xB24366D770477C8192eC98851137A1eF8530A1e5` |
| Gateway | `0x3BFAC87918c69D02e4288bDcC503AF7F545d735C` |
| Price oracle | `0xcdA2693fdcC0202fd0cd183A42E10f7B3f674AB1` |
| USDC | `0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913` |

The [contracts page](https://obentoapp.com/docs/contracts.md) lists every address and who controls it.

## Docs

- [llms.txt](https://obentoapp.com/llms.txt): every docs page with a summary.
- [llms-full.txt](https://obentoapp.com/docs/llms-full.txt): all the docs in one file.
- Every docs page is also Markdown: add `.md` to its address, for example [/docs/risks.md](https://obentoapp.com/docs/risks.md).

## Rules

- Deposit only through the gateway's `deposit`. USDC sent straight to the vault or the gateway is not credited to you.
- Set a minimum out on every deposit and withdrawal, 0.5% under the quote.
- A withdrawal larger than the ready cash joins a queue and is paid on Autopilot's next pass, usually within 15 minutes.
- Money in Obento is not a bank deposit and has no deposit protection. Read [the risks](https://obentoapp.com/docs/risks.md) before you deposit for someone else.
