Non-custodial tradingRiskBeginnersAPI safety

How non-custodial trading keeps your money safe when an AI agent trades

Non-custodial trading keeps your funds in a wallet you control while an AI agent trades within scoped API limits that prevent theft and bound losses.

By the Felix team10 min read
Key takeaways
  • 01Non-custodial agentic trading keeps funds in a wallet you control while the agent operates within strictly scoped API permissions that cannot withdraw or steal capital.
  • 02Safety controls including budget caps, position limits, and drawdown limits are enforced by the API layer, so the agent cannot trade beyond the boundaries you set.
  • 03A kill switch flattens all positions and revokes the API key immediately, providing a hard stop that is independent of the agent's reasoning or state.
  • 04Dollar-based order sizing abstracts away venue-specific contract math, reducing the risk of accidental oversized positions when an agent trades across multiple market types.
  • 05Paper trading tests behavior without capital at risk, but live trading requires explicit owner authorization of a scoped key because real markets involve slippage, spreads, and actual loss.

Non-custodial agentic trading means your funds remain in a wallet you control while an AI agent receives strictly limited permission to place orders on your behalf. The agent can spend within owner-defined bounds but cannot withdraw funds, change destination addresses, or move capital to itself. If you revoke access, the agent loses all trading capability immediately and your money stays where it is.

What does non-custodial mean when an AI agent trades?

Many beginners assume that automating trades requires depositing capital into a platform account or handing private keys to a bot. In a non-custodial model, neither step is necessary. You retain direct control of the wallet that holds your funds. The agent operates through an API key that carries only trading permissions, not withdrawal or administrative rights. This is a narrow pipe: the agent can send buy and sell instructions within boundaries you set, but it cannot reach into your wallet and sweep funds to an external address. The distinction matters because it removes the single point of failure where a compromised agent, a leaked credential, or a malicious actor could drain an account. Even if the API key were exposed, an attacker could only place orders within the same scoped limits, and you could revoke the key in seconds. The funds themselves sit at addresses you control, and withdrawal addresses are locked to a whitelist you approve during setup. The agent never sees a full private key and never holds custody. Secure AI trading without giving up custody describes this architecture in more detail. The result is that the agent is a delegate with a tightly written mandate, not a trustee with full discretion. If the agent begins to act outside your intent, perhaps by misunderstanding a prompt or by being influenced by a malformed data feed, it still cannot violate the hard constraints encoded in the key. This means the worst-case scenario is bounded by the trading budget you authorized, not by the total balance of the wallet. For beginners, this means you can experiment with automation without surrendering the keys to your savings.

How does the wallet structure prevent theft by the agent?

Theft prevention is structural rather than procedural. When you configure an agent, you define a set of withdrawal addresses that are immutable without your direct signature or manual reauthorization. The agent can request trades, but any attempt to move funds to an unapproved address is blocked by the infrastructure before it reaches a venue. The API key itself is scoped: it carries budget caps, market restrictions, and position limits encoded at the key level. This means the permission system enforces the rules, not merely the agent’s prompt instructions. If the agent is hijacked, prompt-injected, or behaves erratically, the key still cannot exceed its hardcoded spend ceiling. The one-key, one-API design means you do not need to share credentials across multiple venues. You manage a single key that normalizes access across stocks, crypto, perps, options, and prediction markets, which reduces the surface area for credential leakage. Because the wallet remains under your control, you can always inspect balances, audit history, and disconnect access without waiting for a third party to process a withdrawal request. There is no omnibus account where your funds commingle with other users’ capital. The agent can only instruct the API to trade, and the API can only instruct the venue to execute. The wallet layer sits above both, and you hold the only credentials that can move funds out. This separation of roles is what makes the architecture non-custodial by construction. The API does not hold your assets in a pool. It relays signed instructions from your wallet to the market, and the market settles back to your wallet. The agent is just one more client of the API, and it is the most restricted client possible. Because the API normalizes access across market types, you do not need to learn the custody model of each individual venue. Whether the agent is trading stocks through a broker, crypto on a chain, or derivatives on a perps venue, the wallet layer remains constant. You do not create new accounts or deposit funds into each venue separately. This reduces the risk of losing funds to a venue-specific failure, hack, or withdrawal freeze.

What safety controls limit how much the agent can lose?

Trading can lose money, including everything. Non-custodial infrastructure does not eliminate market risk, but it lets you bound the maximum damage an agent can do in a single session or over time. Budget caps set a hard ceiling on how much capital the agent can deploy. Position limits restrict the size of any individual trade or open position. Drawdown limits can trigger automatic pauses when losses cross a threshold you define. These guardrails are enforced by the API layer, so the agent cannot negotiate around them. Evaluating guardrails step by step offers a practical framework for choosing these values. Order sizing is expressed in plain US dollars, which removes the beginner error of miscalculating contract multipliers, notional value, or margin requirements across different venues. If you tell the agent to buy one hundred dollars worth of an asset, the API translates that into the correct venue-specific size. This abstraction prevents a common class of mistakes where an agent thinks it is trading a small position but actually opens a leveraged position orders of magnitude larger. Common position sizing mistakes covers the errors that dollar-based sizing avoids. The normalization of venue-specific contract math is especially important for beginners. A perps venue might quote in coins, an options venue in contracts, and a stock broker in shares. The agent does not need to know these details. It submits a dollar value, and the API handles the conversion. This prevents errors where an agent confuses the unit of account and submits a raw number that represents a dangerously large notional exposure. Beginners should set caps conservatively. A useful heuristic is to authorize only the amount you are willing to lose entirely during the learning phase. You can think of the budget cap as a prepaid allowance. Once it is spent, the agent must stop and ask for more. You can raise the cap later, but you cannot recover funds that were already lost because the cap was too loose. Position limits also prevent concentration risk. An agent that becomes overconfident in a single asset cannot pile more capital into that trade than the limit allows. Drawdown limits act as a circuit breaker. If the agent encounters a period of adverse price action, the system can halt trading before the budget cap is exhausted. This gives you time to review logs, adjust the strategy, or revoke the key entirely.

How do kill switches and exit plans protect beginners?

Every trading plan should include a way out. A panic or kill switch flattens all open positions and revokes the API key in one action. This is not a soft request to the agent; it is a hard cut at the infrastructure level that terminates the session immediately. Beginners should test the kill switch during paper trading so they know the latency and the exact steps. Exit plans go further by automating take-profit and stop-loss logic that runs independently of the agent’s reasoning. If the agent freezes, loops, or generates a bad plan, the exit plan still executes. Automating exits and take profits while keeping custody explains how to set these up without surrendering control of the wallet. The combination of a kill switch and preconfigured exits means you are not relying solely on the agent’s judgment to close a losing trade. This is especially important for beginners because an agent may misinterpret market volatility or overconfidence in a signal. Hard infrastructure-level exits remove emotion and delay from the process. An exit plan does not read the agent’s mind; it reads the market price and acts when your conditions are met. This separation of concerns, strategy versus survival, is what keeps a bad trading day from becoming a catastrophic one. Some beginners worry that an exit plan might trigger too early and cap their upside. You can set wide exits, but you should not set none at all. You should treat the kill switch like a fire drill. Practice it before you need it. Know where the button is and what happens when you press it. In a live market, seconds matter, and hesitation can be expensive. After a kill switch is triggered, the key is permanently revoked. The agent cannot reconnect with the same credentials. You must explicitly issue a new key and reauthorize it if you want to resume. This prevents a compromised or confused agent from simply restarting and continuing its previous behavior.

Why does paper trading exist, and how do you authorize live trading safely?

Paper trading lets you observe how an agent behaves with zero capital at risk. It is a full simulation of the API, including the same guardrails and error handling you will see in live markets. However, paper trading can mislead beginners because fills are simulated and slippage may not match reality. Moving to live trading requires explicit owner authorization of a scoped key. You must deliberately approve the key for real money, set your caps, and confirm your withdrawal addresses. There is no automatic graduation from paper to live. This authorization step is a deliberate friction point designed to prevent accidental real-money deployment. The transition from paper to live is the most dangerous moment for most beginners because confidence is high and vigilance is low. Once live, monitor the first few trades closely to confirm that the agent’s interpretation of your instructions matches your intent. Beginners often rush this step because paper trading feels easy. Live markets involve real counterparties, real spread costs, and real emotional weight. The authorization boundary exists to force a pause and a checklist. Agents connect through MCP tools or the REST API. Both paths respect the same scoped key and the same authorization boundary. The connection method does not change the safety model. Whether you are using Claude, Cursor, or another MCP client, the key governs what the agent can do, not the client that holds the conversation.

  • ·Confirm your wallet withdrawal addresses are correct and immutable.
  • ·Verify your budget cap is an amount you can afford to lose completely.
  • ·Test the kill switch in paper mode and note the time it takes to flatten.
  • ·Activate exit plans for every strategy you intend to run.
  • ·Review the agent’s recent paper trades for unusual position sizes or errors.

What should a beginner remember about trading risk?

No infrastructure can guarantee profits or prevent all losses. Non-custodial safety is about limiting the blast radius and keeping control in your hands. The agent is a tool with bounded authority, not a trusted custodian. Markets can move against you faster than any kill switch can flatten a position, especially in leveraged products like perpetual futures or options. Beginners should start with small budget caps, simple markets, and clear exit plans. Increase scope only after observing consistent behavior and understanding how the agent interprets ambiguous instructions. The safety model gives you the ability to stop, audit, and revoke, but you must still decide when to do so. Custody is a necessary condition for safety, but it is not sufficient on its own. You remain responsible for the strategy, the limits, and the decision to let the agent continue trading. The value of non-custodial design is that when you make a mistake, the damage is contained, and when you choose to stop, the money is still yours. This does not mean the agent will be profitable. It means the agent cannot profit by stealing from you, and it cannot lose more than you have explicitly allowed. That is a low bar, but it is the right foundation for beginners who are still learning how autonomous systems behave under real market stress.

Frequently asked questions

Can the agent withdraw my funds to its own wallet?

No. The agent does not have withdrawal permissions. Withdrawal addresses are locked to an owner-approved whitelist during setup, and the API infrastructure blocks any request that attempts to move funds to an unapproved address.

What happens if the API key is leaked?

A leaked key can only place orders within the scoped limits you defined. It cannot withdraw funds or change account settings. You can revoke the key instantly, which terminates all access immediately.

Does non-custodial trading mean I cannot lose money?

No. Non-custodial infrastructure limits the agent's authority but does not eliminate market risk. You can still lose your entire budget cap, and leveraged markets can move faster than exit plans can execute.

How do I move from paper trading to live trading safely?

You must explicitly authorize a scoped key for live trading. Before you do, confirm your budget cap, test your kill switch, activate exit plans, and verify that your withdrawal addresses are correct.

What is the difference between a budget cap and a position limit?

A budget cap controls the total capital the agent can deploy across all trades. A position limit controls the maximum size of any single trade or open position. Both are enforced by the API layer.

Who controls the wallet if the agent is placing trades?

You do. The agent receives a scoped API key, not your private key or wallet credentials. The wallet remains under your control, and you can audit balances, revoke access, or withdraw funds at any time.

Give your agent a key.

One key to trade stocks, crypto, perps, options, and prediction markets. Live after owner authorization.

Keep reading

Not a brokerage, exchange, or investment adviser. Not investment advice. Trading involves risk, including total loss.