DeFi for AI Agents
Your agent earns yield on idle funds and borrows against them, on Solana, from its own wallet. Works with any agent: MCP, REST, or pay-per-call over x402.
claude mcp add --transport http project0 https://ai.0.xyz/mcpClaude Code · claude.ai & desktop: one clickDocs →
npx skills add 0dotxyz/p0-agents -a claude-codeClaude CodeSource →
https://ai.0.xyz/mcpChatGPT desktop app only · Settings → Plugins → Add → name Project 0, URL above, no authenticationDocs →
No skills in ChatGPT; the MCP brings every tool
npx skills add 0dotxyz/p0-agents -a grokGrok BuildSource →
npx skills add 0dotxyz/p0-agents -a cursorCursor agentSource →
https://ai.0.xyz/mcpAny MCP client · Streamable HTTPDocs →
npx skills add 0dotxyz/p0-agentsPick from 70+ agents: Windsurf, OpenCode, OpenClaw & moreSource →
Then open a new chat and ask: What can I do with the Project 0 MCP server?
No wallet? Your assistant walks you through one. Add PayBox to Claude →
A lending account your agent can operate
Project 0 is a prime broker on Solana: one margin account across every major lending venue. This service exposes it as tools an AI agent can call directly.
Cross-venue
Deposit where the yield is highest, borrow where it's cheapest. Project 0, Kamino and Jupiter Lend, all in one account, with positions and capacity computed fresh from chain.
p0_get_banksp0_get_positionsStrategies
Cross-venue loops and rate arbitrage, discovered and ranked live. The agent picks one, and a single call opens the whole position as one flash-loan transaction.
p0_get_strategiesMonitor
Account health, a daily or weekly summary (profit and loss, interest earned), the full history of an account, a market or a strategy, wallet holdings and activity, plus the protocol docs and a guided start for new users. The same data the app runs on, in a shape an agent can act on.
p0_get_startedp0_get_summaryp0_get_account_historyp0_get_market_historyp0_get_strategy_historyp0_get_healthp0_get_walletp0_get_vaultsp0_get_activityp0_search_docsp0_get_docActions
Every write returns an unsigned transaction, simulated first. Your wallet signs; this service never holds keys. Wallets that sign but don't broadcast, like PayBox, hand the signed transaction to p0_submit, which sends it. Using Phantom, Solflare or another wallet app? Open the build's signing link to review and approve it on a Project 0 page.
create_accountdepositborrowwithdrawrepayloopclose_positionswap_collateralswap_debtswapvaultsubmitThree ways in, one service
Whatever your agent speaks, it gets the same tools and the same unsigned transactions.
MCP
Claude, ChatGPT, Grok, Cursor, or any MCP client. Add one URL and every tool shows up.
ai.0.xyz/mcp →REST
Plain HTTP with an OpenAPI 3.1 contract, for custom GPTs, agent frameworks and your own code.
ai.0.xyz/v1 →x402
Pay per call in USDC: no API key, no signup. Reads and basic actions are free; flash-loan builds and swaps cost $0.01.
x402.0.xyz →Unsigned in, signed out
{
"authority": "your wallet",
"account": "your account",
"deposit_bank": "strategy.supply.bank",
"borrow_bank": "strategy.borrow.bank",
"amount": 0.5,
"leverage": 2
}
{
"transactions": [
{ "base64": "AQAAAAAAAAAA…", "type": "FLASHLOAN" }
],
"submit": "sequential",
"submit_token": "v2.sequential…",
"sign_url": "https://ai.0.xyz/sign?i=…",
"simulation": { "post_health": { "status": "healthy" } }
}
Unsigned. Your wallet signs: send it yourself, hand it back to p0_submit, or open sign_url to approve it in any Solana wallet. This service never holds keys.