AI Agents
Connect Claude, ChatGPT, Cursor or your own AI agent to Borsa through its MCP server: read Hyperliquid markets and Borsa's flow analytics, and trade your account within limits you set, with an audit log and a kill switch.
Borsa runs an MCP server, the standard way AI assistants connect to outside tools. Point Claude, ChatGPT, Cursor or your own agent at it with a personal agent key, and the agent can read Hyperliquid markets, Borsa's analytics and your account, and place orders within the limits you give that key.
Orders go to your own Hyperliquid account through the Borsa Cloud agent you approve once (the same one cloud strategies and copy trading use). Agents can never withdraw or transfer funds: Hyperliquid agents can only trade.
Warning
AI agents make mistakes, and markets move fast. Start with a read-only key or small limits, check the activity log, and only let an agent trade money you can afford to lose.
Create an Agent Key
- Open Settings > AI agents and connect your wallet.
- If you plan to trade, approve the Borsa Cloud agent and the builder fee (one click each, first time only).
- Click New key, give it a name (for example "Claude desktop"), pick Read only or Trade, and set the limits.
- Copy the key. It is shown only once: Borsa stores a fingerprint of it, never the key itself.
You can have up to 10 active keys. Each expires after the period you choose (7 to 365 days); you can extend or change its limits at any time.
Limits
Every trading call is checked against the key's limits before anything is sent:
| Limit | What it does | Default |
|---|---|---|
Max per order | Largest single order, in USD | $1,000 |
Max total exposure | Total position value across the whole account after the order | $5,000 |
Max leverage | Highest leverage setting the agent may trade at or set | 5x |
Allowed coins | Only these markets (empty means all) | All |
Daily loss stop | Blocks new risk once the account's realized loss since 00:00 UTC reaches this | $500 |
Closing or reducing a position is always allowed, even past a limit, so an agent can always get you out of a trade. Agents trade Hyperliquid perps on the main exchange; spot and HIP-3 markets are read only.
Connect Your Agent
The server address is:
https://app.borsa.cc/api/mcp
Send the agent key as a Bearer token in the Authorization header.
Claude Code
claude mcp add --transport http borsa https://app.borsa.cc/api/mcp --header "Authorization: Bearer YOUR_KEY"
Claude Desktop
Add this to claude_desktop_config.json (Settings > Developer > Edit Config), then restart Claude:
{
"mcpServers": {
"borsa": {
"command": "npx",
"args": ["-y", "mcp-remote", "https://app.borsa.cc/api/mcp", "--header", "Authorization: Bearer YOUR_KEY"]
}
}
}
Cursor and Other Clients
Any client that supports remote MCP servers over Streamable HTTP works. In Cursor, add to ~/.cursor/mcp.json:
{
"mcpServers": {
"borsa": {
"url": "https://app.borsa.cc/api/mcp",
"headers": { "Authorization": "Bearer YOUR_KEY" }
}
}
}
What Agents Can Do
| Group | Tools |
|---|---|
Markets | Market info and lists, order book, candles, funding history, spot tokens |
Borsa analytics | Open interest flow by trader cohort, long and short levels, book depth, liquidation levels, a trader's cohort, the leaderboard, flow analytics |
Account | Positions, margin, open orders, fills, the key's own limits |
Trading | Place an order, close a position, cancel one or all orders, modify an order, set leverage, set TP/SL |
Automation | List and pause or resume your copies and cloud strategies |
Every trading tool takes dry_run: the agent sees exactly what would be sent and whether the limits allow it, without placing anything. Market orders fill now within a slippage cap (1% by default, at most 5%); limit orders rest at the price given. Every order carries Borsa's builder fee, the same as orders you place yourself.
Try asking your agent:
- "What are the winning traders doing on ETH today?"
- "Where are the big liquidation clusters on BTC?"
- "Dry run a $200 HYPE long at market and tell me the fill estimate."
- "Close half of my SOL position and set a stop 3% below entry."
Activity and Safety
- Activity log: every call an agent makes, including refused and failed ones, is listed under Settings > AI agents with its key, tool, result and detail. Click Activity on a key to see only its calls.
- Revoke: revoking a key stops every agent using it at once.
- Allow agents: the switch at the top turns all agents off. While it's off, every call from every key is refused, reads included, until you turn it back on.
- Rate limits: each key may make 10 calls per second and 30 trading calls per minute.
Copilot (Beta)
Borsa is also testing a copilot inside the trade screen. It sees the market you're on and your positions, answers questions with the same tools, and suggests trades as cards. Nothing is sent until you tap Confirm, and confirmed trades go through the normal order path, exactly as if you'd used the order form.
Troubleshooting
| Message | What to do |
|---|---|
agent_not_approved | Approve the Borsa Cloud agent in Settings > AI agents. |
builder_fee_not_approved | Approve the builder fee in Settings > Builder. |
read_only_key | The key is read only. Create a trading key or edit its access. |
agents_paused | Turn Allow agents back on. |
key_expired or key_revoked | Create a new key. |
order_too_large, exposure_too_high, leverage_too_high, coin_not_allowed, daily_loss_stop | The order is past a limit. Change the order or raise the limit. |