# How to connect an AI to your crypto exchange safely

*Claude, Cursor or any MCP client can research, backtest and run paper agents on your account. Real orders stay behind a switch only you can flip.*

Letting an AI model near a trading account should make you careful. Models misread requests, follow instructions they find in web pages, and do exactly what they're told even when you meant something else. The answer isn't to keep AI away from trading. It's to decide, in advance and outside the chat, what it's allowed to do. I build Central Command, a trading terminal and agent builder for BloFin, and this is how we set those limits.

There are two keys in the chain. One connects your exchange to the platform. The other connects your AI to the platform. Set both up properly and the AI can be useful without being able to empty your account.

## Key one: the exchange key

Your BloFin API key lets software read your account and place orders without your password. Give it:

- **Read and Trade.**
- **Transfer only if you want it.** It moves USDT between your own BloFin accounts, such as funding and futures.
- **Never Withdraw.** A key without withdrawal permission can't send funds off BloFin.

A key that can trade can still lose money through trading, so this limit isn't the whole story. On Central Command the key is stored on our server and every exchange call is signed there, so neither your browser nor your AI ever sees the secret. [The full API key setup](/go/blog-connect-ai?to=/blog/blofin-api-key-setup).

## Key two: the key your AI uses

Your AI client talks to Central Command with its own key, which you mint in Account, Connect Claude. A new key is **Paper only** unless you choose otherwise.

A paper-only key can:

- Read your account: balance, positions, orders and agents.
- Pull market data and research.
- Run backtests.
- Create, change and run paper agents.
- Pause any of your agents, live ones included. Stopping moves no money, so an AI can always hit the brake.

A paper-only key can't:

- Place, close or cancel a real order.
- Create a live agent, or switch an agent to live.
- Change, deploy or run an agent that's live.
- Call the tools that act on the exchange, such as TWAP orders or sending trading signals to agents.

Those calls are refused by the server with a 403 and the code `live_trading_off`, and the message says where the switch is. It doesn't matter how the request is phrased or what the model believes. The check is on the key.

To allow live trading, you switch that key to **Paper and live** yourself, signed in on your own account. A key can never switch itself.

## A live order needs one more step

Even with a Paper and live key, placing, closing or cancelling a real order needs a `confirm_live: true` flag on the call. Without it the server refuses. The instructions we give the AI say to send that flag only when you've clearly asked for a live trade, and after confirming the coin, side and size with you.

Be clear about what that does and doesn't guarantee. The flag is checked by the server. Whether you really asked is something the model is told to respect, and a model can get that wrong. That's why the Paper only switch is the real control, and why it's the default. Agents an AI creates or deploys also start stopped, so nothing it builds begins trading the moment it's made.

## Connecting your client

Mint a key on the [Connect Claude page](/go/blog-connect-ai?to=/connect-claude). In Claude Code it's one command:

```bash
claude mcp add --transport http central-command \
  https://rtcelwjnrbmfmrywacky.supabase.co/functions/v1/mcp \
  --header "X-Api-Key: YOUR_KEY"
```

Cursor and other clients take the same address and header in their JSON settings. For a chat without MCP, the same page mints the key and copies one message with the key and the API docs to paste into the chat. [The MCP setup in more detail](/go/blog-connect-ai?to=/blog/claude-crypto-market-data-mcp).

Ask it to call `whoami` first. The answer includes `live_trading` and `permissions`, so you can see what the key can do before it does anything.

## Habits that keep it safe

- **Start paper only.** Research, backtest and run paper agents for a while before you think about live.
- **Use private chats.** Anything you paste into a chat is visible to that AI provider. Treat the key like a password.
- **Use a BloFin sub-account** for anything automated, so a mistake can only reach what's in it.
- **Set loss limits on agents.** A daily loss limit and a total loss stop apply however the agent was made.
- **Read what it did.** Every agent check is logged with the data it read and what it decided.
- **Revoke keys you no longer use.** In Account → Connect Claude, under Your keys, Revoke turns a key off for good. Its next call is refused; agents you already run keep running.

## Connecting AI to an exchange: FAQ

### Can the AI withdraw my crypto?

No. The exchange key has no withdrawal permission, and Central Command has no withdrawal access.

### What happens if the AI tries a live order on a paper-only key?

The server refuses it with a 403 that names the setting. Nothing reaches the exchange.

### Can a paper-only key stop a live agent?

Yes. Pausing moves no money, so any of your keys can pause any of your agents.

### What if my key leaks?

Revoke it in Account → Connect Claude, under Your keys. It stops working on its next call, and only you, signed in, can do it. Then make a new one.

### Which AI clients work?

Claude, Claude Code, Cursor and other clients that support remote MCP servers, and any model that can make HTTP requests from a chat.

### Do I need a paid plan to connect an AI?

Linked keys aren't charged for the tools. The platform is free with a BloFin account opened through our link, or there's a 10-day free trial with no card.

## Try it

[Mint a paper-only key](/go/blog-connect-ai?to=/connect-claude) and ask your AI to backtest an idea, or [build an agent yourself](/go/blog-connect-ai?to=/agents/new) and let the AI review it.

---

*Disclosure: I build Central Command, which earns a commission from BloFin on members' trading. This article was drafted with AI assistance. It is not financial advice. Leveraged trading can lose all of your money.*

## Start free

Central Command is free with a BloFin account opened through our referral link, for as long as you trade through us. Or take the 10-day free trial: no card, no wallet, nothing renews.

1. Create an account at https://centralcommand.io/signup.
2. Choose **Free with BloFin** and connect BloFin in one click (no BloFin account yet? open one at https://partner.blofin.com/d/centralcommand), or choose the **10-day free trial**.
3. Trade from the terminal at https://centralcommand.io/dataterminal, or describe a strategy in plain English at https://centralcommand.io/agents/new: backtest it, run it on paper, and go live when you choose.

BloFin's normal trading fees still apply. Central Command trades BloFin perpetual futures only.
