What is self-custody in crypto and why does it matter?
Crypto is controlled by private keys: whoever can sign with the key can move the funds. Self-custody means you hold that key, or can export it, so your funds do not depend on a company staying solvent or honest. When you keep crypto on an exchange, the exchange holds the keys and your balance is its promise to pay you, which is why customers of failed platforms such as FTX lost access to their money in 2022.
Self-custody has a cost. If you lose the key or seed phrase, nobody can recover it for you, and anyone who gets it can take everything. Newer wallets keep the key in secure hardware and let you sign in with an email or a social account, which takes the seed phrase out of daily use while still letting you export the key when you want it.
How can I let AI trade crypto for me without giving up my keys?
There are four common setups. Only the last three keep your funds out of a platform's own account:
| Setup | Where your funds sit | What the software can do | How you leave |
|---|---|---|---|
| Exchange with built-in bots (Pionex, for example) | On the exchange, which holds the keys | Whatever the exchange allows | Withdraw to your own wallet |
| Bot with an exchange API key (3Commas or Cryptohopper, for example) | In your exchange account | Trade, if you disable withdrawals on the key | Revoke the key |
| Wallet with delegated signing (milo, for example) | In a wallet you own, at your own address | Sign the transactions its permission covers | Pause the agent, export the key, move the funds |
| Your own agent (MetaMask Agent Wallet or Kraken CLI, for example) | In your own wallet or exchange account | What you allow, often within spending limits | Stop the agent |
None of these means trusting nobody. With an API key you trust the bot not to misuse its trading rights, and the exchange to hold your funds. With delegated signing you trust the platform with a signing permission. With your own agent you trust your own setup and the AI model you chose.
Is it safe to give a trading bot my exchange API keys?
It is reasonably safe if you set the key up carefully:
- Enable trading only. Disable withdrawals, transfers and, unless you need them, margin and futures.
- Restrict the key to the bot's IP addresses if your exchange supports it.
- Use a separate sub-account that holds only what the bot should trade.
- Never paste an API key into an AI chat, a form or a support message.
- Revoke keys you no longer use, and revoke at once if the bot provider reports a breach.
Even a trade-only key can be abused. Someone holding it can place trades that move value out of your account, for example by buying an illiquid coin from themselves at an inflated price. Keep balances small, watch for trades you did not expect, and check the bot's results before you trust it with more.
What delegated signing means
A wallet with delegated signing lets a service sign certain transactions for you without asking each time. Your funds stay at your own address and every trade is visible on-chain. What you give up is approving each trade yourself, which is the point of automation. What you should keep is the ability to export the key and walk away. Read what the permission covers: trading only, or transfers too.
How milo does it
Each milo account gets a Solana wallet in the user's own Turnkey organization, with the private key generated and kept in Turnkey's secure hardware. The wallet you signed up with is its only owner, and you can export the private key at any time from the wallet screen and use it in any Solana wallet app.
milo holds a delegated signing permission on that wallet. It uses it to place your agents' trades and to carry out transfers you ask for, without asking you to sign each transaction. milo doesn't pool funds or move them into accounts of its own, and every trade settles on-chain where you can check it. You can pause any agent at any time. For KuCoin, milo creates a spot-only key with margin, futures, transfers and withdrawals disabled. More in Are AI trading bots safe?
