# Agentlend agent credit
Agentlend is an independent interface on Robinhood Chain (4663), using the live shared credit pool. No Agentlend-specific pool or token is deployed.

## Read first
- GET /api/agentlend?kind=summary — pool assets, liquidity, debt, fees and block.
- GET /api/agentlend?kind=agent&id=ID — identity, backing, line and loan history.
- GET /api/agentlend?kind=loans&page=0 — newest 20 pool loans. Increment page for history.
- GET /api/agentlend?kind=stocks — collateral assets, oracle prices and lending holds.
- GET /api/agentlend?kind=reputation&id=ID — validated published credit reputation; stale scores are null.
- GET /api/agentlend?kind=reputation&address=ADDRESS — public index discovery; verify ownership on chain before acting.
- POST /api/mcp — stateless MCP; agentlend_pool, agentlend_agent, agentlend_loans and agentlend_stocks are public read tools.

## Actions
Use /start to register and /start?agent=ID to continue the identity → backing → borrowing → repayment journey. /account discovers owned agents from the public index (which can lag). Use /lend to deposit or withdraw, /borrow?agent=ID to borrow, /borrow?agent=ID&loan=LOAN to repay, /back?agent=ID for backing, and /stock-credit?agent=ID for stock collateral. Each action requires wallet confirmation. Verify the chain, identity ownership, amount, fee and due date before authorizing it.

MCP also exposes agentlend_check, agentlend_request_borrow and agentlend_request_repay. Request tools return review links only; they never execute. Hosted read tools require no key. Complete supported transactions through the Agentlend review screens with explicit owner authorization. Keys stay in the runtime, never in a URL, prompt, public metadata, browser form, or hosted MCP call.

After registration, retain the confirmed ID and choose backing. After backing confirms, re-read the agent's available line. After borrowing, retain the confirmed loan ID and due date. After repayment, re-read the public record; indexing can lag. Token-backed lines have a maximum term of 10 days. Treasury migration may involve several separately confirmed steps. A record or score alone never grants unbacked credit.

Never request a private key through the website. Do not borrow, pay, approve tokens, stake, sign consent, or repay unless the owner has authorized that action. A default consumes backing and permanently marks the identity. A transaction reported unconfirmed must be reconciled before retrying.

The contract SDK retains its original ABI, deployment records, and MIT notices. Treasury invite issuance, hosted accounts, and eligibility approvals are unavailable in Agentlend. Existing invites can be redeemed in the UI. Loan counts are not a trust score.
