Non-custodial · Triple-rail · MCP-ready

Treasury management
for AI agents.

Non-custodial yield, perps, and predictions — one API call. Agents sign their own transactions. AIMorgan returns unsigned txns and strategy.

[ HUMAN ]custody [ AGENT ]execution THE BANKER FOR AI AGENTS
mcp_config.json
{
  "mcpServers": {
    "aimorgan": {
      "url": "…/api/mcp",
      "transport": "streamable-http"
    }
  }
}
Last 30 days
3/3 rails live
$56+ managed
18 endpoints
3 chains

Yield, market, predictions.

All non-custodial, all from one API.

[LIVE] BASE
Yield Rail
Morpho
Base
Permissionless lending vaults. Optimized yield routing across USDC markets with non-custodial ERC-4626 access.
Lending · ERC-4626 · Yield
[LIVE] HYPERCORE
Market Rail
Hyperliquid
Arbitrum → HyperCore
Decentralized perpetuals with deep liquidity, real-time pricing, and live funding rates. Auto-bridge from Base.
Perps · Spot · Funding
[LIVE] POLYGON
Prediction Rail
Polymarket
Polygon → Helsinki Relay
Event-driven positions on real-world outcomes. CLOB order signing with L2 auth, forwarded through a dedicated Helsinki relay for geo-compliance.
Predictions · CLOB · Relay

On-chain, verifiable.

Real positions from our test wallet across all three rails.

Morpho · Base
3 Lending Positions
$40.33 across USDC vaults — Steakhouse, Gauntlet, Moonwell
0xeD87337085aa98E4Da2182D9e2D9690e3C212B1A
Hyperliquid · HyperCore
1 Open ETH Long
~$10 notional · Perp position — Auto-bridged from Base via LI.FI
0xeD87337085aa98E4Da2182D9e2D9690e3C212B1A
Polymarket · Polygon
First CLOB Order
Strait of Hormuz — Yes @ $0.50 · 3.85 shares filled · Helsinki relay
Order 0x923eca54...0528a0
AI Agent
↓ x402 / MCP
AIMorgan API
LI.FI Bridge
Hindsight Memory
Morpho
Base
Hyperliquid
Arbitrum
Polymarket
Polygon

Non-custodial — agents sign their own transactions. AIMorgan returns unsigned txns + strategy.

Without / With.

Without AIMorgan
  1. 1Write separate SDK integrations for Morpho, Hyperliquid, and Polymarket
  2. 2Build cross-chain bridging logic for Base → Arbitrum → Polygon
  3. 3Implement CLOB signing, L2 auth, and geo-compliant relay infrastructure
  4. 4Design allocation engine with Kelly sizing, macro regime detection, and funding signals
  5. 5Build memory, guardrails, idempotency, cost estimation, and simulation from scratch
With AIMorgan
  1. 1Add MCP config — one JSON block, zero dependencies
  2. 2POST /api/strategize — unified allocation across all three rails
  3. 3POST /api/execute — the agent signs, AIMorgan handles the rest

Six capabilities, production-grade.

Non-custodial
Agent Signs Everything
AIMorgan returns unsigned transactions and strategy. The agent's wallet signs and submits. No fund custody, no trust assumptions.
Memory
Strategy History
Every strategy is retained and recalled via Hindsight. Past decisions enrich the next allocation. Semantic, temporal, and graph recall.
Reliability
Idempotency + Correlation
Every /execute accepts an idempotency_key and returns a correlation_id. Safe retries, no double-spends, full auditability.
Pre-flight
Simulate + Cost Estimate
/simulate dry-runs any strategy before execution — balance checks, gas estimates, error prediction. /strategize returns cost_estimate upfront.
Safety
Guardrails + Kill Switch
Per-agent max position size, daily limits, asset allowlists. Instant pause/unpause per agent — one POST to halt all execution.
Budget
Session Budget
session_budget_usdc + max_gas_usdc — hard caps per session with remaining balance tracked. Deterministic mode for testing and audit.

Markets

Morpho Vaults
Hyperliquid Markets
Polymarket Predictions
Auto-refresh in 60s

API Endpoints

MethodEndpointDescriptionRailPricing
GET/api/healthHealth check + versionfree
GET/api/marketsLive yield + market + prediction dataAll 3free
POST/api/strategizeUnified portfolio allocation + memory recall/retainAll 3$0.05
POST/api/optimizeYield optimization + unsigned txnsMorpho$0.01
POST/api/executeExecute strategy across all railsAll 3$0.10
POST/api/positionMarket exposure + Hyperliquid ordersHLfree (MVP)
POST/api/predictPrediction positions + Polymarket CLOB ordersPolyfree (MVP)
POST/api/bridgeCross-chain USDC bridging via LI.FIBridgefree (MVP)
GET/api/portfolio/:addressUnified portfolio view across all railsAll 3free
POST/api/simulateDry-run pre-flight with balance + gas checksAll 3free
GET/api/agent/:addr/guardrailsRead per-agent guardrailsfree
POST/api/agent/:addr/guardrailsSet per-agent guardrailsfree
POST/api/agent/:addr/pauseKill switch — pause agent executionfree
POST/api/agent/:addr/unpauseResume paused agentfree
GET/api/agent/:addr/memory/recall-contextInspect recalled memories + decision contextMemoryfree
POST/api/mcpMCP Streamable HTTP (13 tools)All 3free
GET/api/analyticsUsage analytics + call metricsfree
GET/api/cron/replay-memoryDrain memory retry queueMemoryauth

Paid calls use x402 — agents pay per-call in USDC, no wallets or signups required.

MCP Connection

Add AIMorgan to any MCP-compatible agent. Drop this into your mcp_config.json.

json — mcp_config.json
{
  "mcpServers": {
    "aimorgan": {
      "url": "https://aimorgan.vercel.app/api/mcp",
      "transport": "streamable-http"
    }
  }
}
get_marketsoptimize_yieldget_healthpositionstrategizepredictexecute_strategyget_pause_statusget_agent_portfoliosimulatebridgeset_guardrailsrecall_memory

Quick Start

Three calls — strategize, execute, portfolio.

Strategize — the banker call

bash
curl -X POST \
  "https://aimorgan.vercel.app/api/strategize?free=true" \
  -H "Content-Type: application/json" \
  -d '{
    "agent_address": "0xYourAgentWallet",
    "total_usdc": "10000",
    "risk_profile": "moderate",
    "time_horizon_days": 30,
    "max_slippage_bps": 200,
    "session_budget_usdc": 15000,
    "max_gas_usdc": 5,
    "deterministic": true
  }'

Execute with idempotency

bash
curl -X POST \
  "https://aimorgan.vercel.app/api/execute?free=true" \
  -H "Content-Type: application/json" \
  -d '{
    "agent_address": "0xYourAgentWallet",
    "strategy": "balanced",
    "total_usdc": "5000",
    "idempotency_key": "exec-20260416-001"
  }'

Unified portfolio view

bash
curl https://aimorgan.vercel.app/api/portfolio/0xYourAgentWallet