[ help ]
Build on the execution layer for AI agents
One key, one server-enforced policy, five endpoints. This page is the short version: how to start, what the server enforces, what it costs, and where the deeper docs are.
[ start in five minutes ]
Create a key, set the policy
Settings → API Keys. Grant read and trade, set a per-call cap and a daily cap. New keys start read-only at $50 per call and $200 per day.
Call the sandbox
The same five endpoints against a paper account with real market data. Place an order, read the fill, watch a $5,000 request get a 403.
Approve the wallet, go live
Approve a Hyperliquid agent wallet with trading-only rights. The same code goes live; the wallet can trade, never withdraw.
[ the five endpoints ]
| Endpoint | What it does |
|---|---|
| GET /v1/agent/state | account, positions, activity, policy with spentTodayUsd |
| POST /v1/agent/orders | place one order (executes through the agent wallet) |
| POST /v1/agent/pay | prepare an EIP-712 intent, or execute it with a signed authorization (EVM USDC) |
| POST /v1/agent/swap | quote and prepare a swap the agent signs |
| POST /v1/agent/invoice | create a pending invoice with a payment link |
Base URL https://www.protocolbanks.com/api/v1/agent · auth Authorization: Bearer pb_… · full reference at /docs/api.
[ why it is safe ]
A cap the model cannot raise
The policy lives on the key and is checked before an order reaches the venue. Prompt injection, bugs and loops cannot raise it.
Trading-only rights
The agent wallet can place and cancel orders; it cannot withdraw. The funded budget is the maximum loss.
No keys, no funds held
The platform holds neither. pay executes only from a signed EIP-3009 authorization (the relayer pays gas); swap returns a transaction the agent signs.
Receipts per call
Every call is logged; every fill is recorded; state carries the policy and spentTodayUsd.
[ the demo ]
The cockpit at /trading is a paper agent your key can drive: balance, equity curve, positions, and a plain-language feed. It is the demo, not the pitch — production integrations call the API. The track record page shows the accounts, wins and losses; it is not a promise of returns.
[ tools and plans ]
Open client
The SDK, tool manifest and MCP proxy are MIT-licensed. github.com/everest-an/protocolbanks-sdk
Plans
Sandbox is free. Live plans start at $199/mo, or pay 8 bps per executed order. See pricing.
[ questions ]
What is the Protocol Banks Agent API?
One API key gives an AI agent a trading and payments account under a policy the server enforces: which operations (read, trade, pay, swap), a per-call cap, a daily cap and a coin allowlist. Five endpoints cover state, orders, pay, swap and invoice.
Is it safe?
The agent trades through a Hyperliquid wallet approved with trading-only rights. It can place and cancel orders and can never withdraw. The platform holds no keys and no funds; the worst case is the trading budget, shown on screen.
Paper mode or live mode?
Paper mode uses real market data and simulated fills, and the account persists across cold starts. Approve the agent wallet on Hyperliquid and the same endpoints switch to live mode without a code change.
How are the limits enforced?
On the server, per key. The key's policy is the first gate (403 on a violation) and the platform risk envelope is the second (positions, leverage, stop-loss, daily breakers; 409 on a refusal). A refusal is final for the request.
What happens when an order is refused?
A 403 means the key's policy said no; a 409 means the platform guard did. The response carries the reason and the agent is never touched. Do not retry it unchanged.
What does it cost?
The sandbox is free. Live plans start at $199/mo (Builder) and $999/mo (Growth); without a plan, executed orders are billed at 8 bps of notional, invoiced monthly. Paid plans replace the per-order fee.
Can I self-host the whole thing?
The client surface is open source under MIT: SDK, tool manifest, MCP proxy and framework examples. The policy and risk engine are hosted; you integrate with them rather than forking them.
Where do I integrate from?
Any language over HTTP, the TypeScript SDK, a framework tool manifest (Vercel AI SDK, LangChain, Mastra, elizaOS), the MCP server, or the hosted MCP endpoint for MCP hosts.
Still deciding?
Tell us the agent, the venue and the worst case you can live with. We will size the policy.

