Non-custodialRisk managementAgentic tradingDevelopers

What most people get wrong about guardrails for non-custodial trading agents

Non-custodial trading agents can enforce strict guardrails without taking your funds. Most people confuse custody with control, and that mistake is expensive.

By the Felix team11 min read
Key takeaways
  • 01Non-custodial trading does not mean unrestricted trading; it means the owner controls the wallet while programmatic guardrails control the agent.
  • 02Scoped keys are enforced at the infrastructure level, so a compromised agent cannot withdraw funds or exceed preapproved budgets.
  • 03A kill switch is an automated circuit breaker, not a manual button, and it operates faster than any human oversight.
  • 04Budget caps expressed in plain US dollars normalize risk across stocks, crypto, perps, options, and prediction markets.
  • 05Paper trading tests strategy logic, but live guardrails require explicit key authorization and respect real market execution risk.

The most common mistake about non-custodial trading agents is assuming that keeping your own keys means you must either trade manually or give an agent unlimited freedom. In reality, non-custodial infrastructure lets you define strict programmatic boundaries that the agent cannot override, while you remain the sole owner of the funds. These boundaries are enforced by scoped keys, budget caps, and automated kill switches, not by trust. The confusion comes from conflating custody, which is about who owns the wallet, with control, which is about who decides what trades are allowed.

Does non-custodial mean the agent cannot be restricted?

Many people hear the word non-custodial and imagine a binary choice: either you hold the keys and click every trade yourself, or you hand the keys to an agent and hope it behaves. This is a false dichotomy. Non-custodial means the funds sit in a wallet you control, but it does not mean the agent operates without constraints. The platform issues scoped keys that are mathematically limited to specific actions. A key can be permitted to place orders, cancel orders, and read balances, while explicitly forbidden from withdrawing funds, changing withdrawal addresses, or modifying key permissions. These restrictions are enforced at the infrastructure level, not by the agent’s goodwill. The owner approves the key, sets the parameters, and can revoke it instantly. The agent trades inside a cage that the owner builds. The funds never leave the owner’s wallet to enter a pooled account. The agent simply holds permission to sign certain transactions within bounds. This is different from custodial models where the agent or platform holds assets in a commingled account. In that model, you trust the platform not to misuse the funds. In a non-custodial model with scoped keys, you trust the mathematics of the permission set, and you retain the ability to revoke or panic-stop the agent. The misconception that non-custodial equals ungoverned stems from the fact that early crypto tools often gave users a single master key with no granularity. Modern agentic trading infrastructure separates wallet ownership from trading permissions. The wallet is the vault. The scoped key is the spigot. You can turn the spigot off, narrow its flow, or point it at only certain assets, all while the vault remains locked in your possession. Traders often say they want to feel in control, by which they mean they want to see every order before it fires. That feeling is not control; it is surveillance. True control is defining the conditions under which trading is allowed and letting the system enforce them. Surveillance scales poorly. You cannot watch twenty-four hours a day, and you cannot evaluate every order in milliseconds. Scoped keys and budget caps scale perfectly. They apply the same rule to the first trade and the thousandth trade. They do not get tired, distracted, or optimistic. The feeling of control that people seek is actually a liability in fast markets. Non-custodial guardrails replace that liability with a policy that is signed, sealed, and machine-enforced.

Why do people confuse kill switches with manual approval?

Another misconception is that a kill switch is just a button you press when you feel nervous. Traders imagine they must watch a screen and manually intervene whenever the agent acts strangely. A proper kill switch is an automated circuit breaker that triggers when a condition is met, not a panic button that waits for your mood. For instance, if a drawdown limit is reached, the system flattens positions and revokes the agent’s key without waiting for human reaction time. An exit plan works similarly: you predefine the conditions under which the agent must close all exposure and stop trading. These are guardrails, not suggestions. The agent does not debate them; the API enforces them at the infrastructure level. Manual approval for every trade would defeat the purpose of an agent. The goal is to define the boundary conditions so precisely that the agent can operate autonomously inside the safe zone. When it steps outside, the system halts it. This is why spend caps and drawdown limits are configured before the agent goes live, not after. The error is treating automation as a black box that must be babysat, rather than as a bounded process that babysits itself. The kill switch is not a safety net you hold in your hand. It is a fence built around the agent before it starts moving. You set the fence line in dollars, in percentages, or in position counts. Once the agent touches the fence, the power cuts off. You do not need to be awake, sober, or fast. The fence does not care about your reaction time.

Are budget caps weaker than exchange-level limits?

Some assume that because a non-custodial API sits between the agent and the venue, the budget controls are softer than native exchange limits. The opposite is usually true. Exchange-level limits are often expressed in native units, contract sizes, or margin tiers that change without warning. A unified API can normalize these into plain US dollar terms. You tell the system: this agent may commit at most five thousand dollars in notional exposure. The API then translates that cap into the correct order sizes, margin checks, and position limits across stocks, crypto, perps, options, or prediction markets. The agent does not need to understand the venue’s contract math. The guardrail is expressed in a language the owner understands, dollars, and enforced before the order reaches the venue. This removes an entire class of errors where an agent miscalculates a lot size or margin ratio. It also means the cap is aggregate across venues. An agent trading through multiple brokers or market types still consumes from one budget pool. This is harder to enforce at a single exchange level. The limit follows the agent, not the venue. Controlling order execution risks becomes simpler when the abstraction layer owns the budget math. Another subtle point is that exchange limits are often designed to protect the exchange, not you. They manage credit risk and liquidation engines. Your budget cap is designed to protect your capital. It is a personal circuit breaker, not a venue margin rule. The API sits in between and translates your personal rule into the venue’s technical language, but the rule originates from your risk preference, not from the exchange’s risk department.

Can a scoped key really prevent theft?

Skeptics argue that if an agent has any signing power, it can eventually trick the owner or exploit a bug to drain the wallet. This assumes the permission model is coarse. A well-designed scoped key is granular. It can allow order creation and cancellation while explicitly disallowing withdrawals, address book changes, or key creation. Withdrawal addresses are owner-approved at the wallet level, and the agent cannot add new ones. Even if the agent is compromised, the attacker cannot send funds to their own wallet. They can only trade, and only within the preapproved budget. Trading can still lose money, including the entire budget, but the loss is capped at the limit you set. The attacker cannot escalate beyond that. The platform cannot steal either, because it never holds the funds. The wallet is yours. The API is a permission layer, not a custodian. The exact request schema is in the docs; the shape looks like this:

POST /api/v1/orders
Authorization: Bearer YOUR_KEY
Content-Type: application/json

{
  "market": "perp",
  "side": "buy",
  "notional_usd": 150,
  "symbol": "EXAMPLE-PERP"
}

The key used here can be scoped so that this request succeeds only if the resulting position stays within the agent’s current cap and the symbol is on the approved list. A withdrawal request with the same key would be rejected at the network edge. The key is bound to a policy. The policy is bound to your wallet. You can revoke the key, and the policy dies with it. This is not a social contract; it is a technical constraint. Some people worry that a scoped key is just a password that can be leaked. The difference is that the key does not grant access to the wallet itself. It grants access to a specific API surface area. If the key leaks, the attacker can do only what the key can do. If the key cannot withdraw, the attacker cannot withdraw. If the key is capped at one thousand dollars, the attacker cannot spend one thousand and one. The owner can revoke the key from the wallet interface without needing to change the wallet’s seed phrase. This is revocation at the speed of an API call, not a multi-day account recovery process.

Why is paper trading not enough?

Many beginners believe that if an agent works in paper trading, the guardrails will behave identically in live trading. Paper trading tests logic, not timing, slippage, or emotional interference with your kill switch. More importantly, the transition to live trading requires explicit owner authorization of a new, live-scoped key. This is a deliberate step. Some assume the guardrails are the same in both modes, but live keys carry real settlement risk, and the budget caps must be reconfirmed. Paper trading is for strategy validation. Live guardrails are for capital preservation. You should test the panic switch in paper mode, but you must also recognize that live markets move faster than paper markets. The flattening of a position during a live drawdown may encounter liquidity gaps. The guardrail will still fire, but the exit price may differ from the paper simulation. Beginners taking an agent live often forget this distinction and assume the simulation is a perfect mirror. Another common mistake is leaving paper caps unchanged when authorizing live trading. A paper cap of ten thousand dollars teaches you little about how you will feel when a live cap of ten thousand dollars is actually draining. The correct approach is to start with a live cap that is materially smaller than your paper tests, validate the guardrail behavior under real slippage, and only then scale. The guardrails do not change between modes, but the consequences do, and your psychological response to those consequences will affect whether you trust the automation enough to let it run.

What happens when an agent hits a guardrail?

When a cap is breached or a panic condition is met, the system performs a sequence. It stops accepting new orders from the agent. It attempts to flatten existing positions according to the exit plan. It revokes the active scoped key or suspends it. It notifies the owner. The owner can then inspect the state, adjust the strategy, and issue a new key if desired. The process is not a negotiation. The agent does not get a vote. The owner does not need to be online at the exact moment, because the guardrail is a preauthorized instruction. The funds remain in the owner’s wallet throughout. The only change is that the agent’s permission to spend is removed. This is why non-custodial guardrails are stronger than manual oversight: they execute at machine speed while the owner sleeps. The misconception is that hitting a guardrail is a failure of the agent. It is actually the system working as intended. You designed the fence so the agent would stop before walking off a cliff. Some traders feel embarrassed when the kill switch fires, as if the agent has disobeyed them. The opposite is true. The agent has obeyed the infrastructure. The infrastructure obeyed you. The guardrail is a conditional order written in advance. It is not a rebuke of the strategy; it is a fulfillment of the risk parameters you set. The best time to set these parameters is when you are calm and calculating, not when you are watching a position move against you. That calm planning is what non-custodial guardrails preserve. The notification step is important because it closes the loop. You wake up to a message that the agent hit a drawdown limit and was halted six hours ago. The funds are still in your wallet. The positions are flat. You do not need to rush. You can review the logs, adjust the strategy, and decide whether to reauthorize. This is fundamentally different from a margin call on a custodial exchange, where the platform may have liquidated your collateral while you were asleep and you now owe a deficiency balance. In a non-custodial model, there is no deficiency balance because the agent could only spend what you capped. The worst case is bounded, and the boundary is one you drew.

Frequently asked questions

Does non-custodial trading mean I have to sign every transaction manually?

No. You sign the policy and the scoped key once, and the agent trades within those limits autonomously. You retain veto power through revocation, but you do not act as a human gatekeeper for each order.

Can a scoped key be bypassed by a clever prompt injection?

No. The key’s permissions are enforced at the infrastructure level, not by the agent’s reasoning. Even if the agent is tricked into requesting a withdrawal, the API rejects the request because the key lacks that permission.

Are budget caps guaranteed to prevent all losses?

No. A budget cap limits the maximum notional exposure or drawdown you permit, but markets can gap and liquidity can vanish. You can still lose the entire capped amount, and in extreme cases, slippage can exceed the plan.

Is paper trading sufficient to test my guardrails?

Paper trading validates logic and policy triggers, but it does not simulate live settlement, latency, or slippage. Always authorize live keys with smaller caps than your paper tests to account for real market friction.

What is the difference between a kill switch and a manual stop?

A kill switch is an automated rule that triggers when a metric crosses a threshold. A manual stop requires you to watch the market and press a button. Automation removes human reaction time and emotional hesitation.

Can I change guardrails while an agent is running?

Yes, but changes typically apply to the next order cycle. Some limits, such as a hard drawdown trigger, may require revoking the current key and issuing a new policy to ensure atomic enforcement.

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.