Circuit

Safety

Updated by the Circuit team

Safety

Introduction

"OpenClaw deleted my files." "My Twitter bot got prompt injected." "My trading bot set 100% slippage." "A Telegram bot insider stole everyone's private keys."

These stories share two causes. Either the agent did the wrong thing or someone with access took the money.

Most AI safety work is about steering the model: scan its output for flagged words, repeat the system prompt in capital letters, fine-tune it more. Those are hopeful checks. They help on average and fail against a determined attacker. A trading agent needs guarantees that hold every time.

Money raises the stakes. A crypto transaction cannot be undone. A private key is a bearer asset. Whoever holds it controls the funds. Circuit is built around that fact.

Circuit's security principles

  1. Agents can't leak what they never see. Agents never touch private keys. They request typed actions through Circuit's SDK. Circuit's engine checks each action against your passkey-signed permit and signs outside the agent's sandbox. Agent code has no key to steal.
  2. Agents are code you can test. Language models write code well and make trading decisions inconsistently. So a model helps write the strategy once as code. The code runs the trades. An agent keeps its history and runs the same logic tomorrow as today.
  3. Your passkey authorizes every signature. You sign a permit on your own device with your passkey. Circuit verifies that signature before anything is signed for your wallet. A request without a valid permit is refused no matter who sends it.

Preventing key theft

Agents never touch private keys. They cannot steal or leak them. A prompt-injected agent or a malicious agent author has no key to exfiltrate. Circuit's engine sends only the signing digest and a key reference to its key service. The key service holds the private key and returns the signature. Key material never reaches agent code or the rest of the platform.

Preventing bad decisions

Agents are deterministic code. The same inputs produce the same orders. You can read the code of agents you build and of agents whose creators publish their source. You can backtest it on recorded Hyperliquid, Lighter and Lighter Robinhood markets. You can run it in paper trading on live markets before real money moves. The logic does not drift. Its past trades tell you how it will behave. Every money operation is checked against your permit and Circuit's engine rules before signing.

Preventing impersonation

Every permit is signed with your passkey. Passkeys resist phishing. A frontend, backend or third party without your passkey cannot produce a valid permit. Connected assistants get a read-only permit. They can propose trades. Confirming any of them needs your passkey. See trade with Claude.

How an agent trade is signed

  1. Circuit creates wallets for you at sign-up. Their keys live in a hardware enclave. You can create more or import an existing wallet by private key. Both kinds are Circuit wallets.
  2. You fund a wallet, pick an agent and press Start. You sign a permit with your passkey for that agent.
  3. The agent is a TypeScript program. Each run it uses Circuit's SDK to request actions for itself, such as a Hyperliquid order or a swap. It never signs anything itself.
  4. Circuit's engine checks that the permit covers the action and the agent's wallet. Then it builds the transaction through the same operation path the web app uses.
  5. The engine sends the signing digest to Circuit's key service. The key service signs and returns the signature.
  6. Once the transaction lands Circuit indexes it. It shows in your activity with an explorer link and in the agent's performance.

Trades happen from your own wallet's accounts. Nothing is pooled in a shared vault. That lets agents reach venues such as Hyperliquid perps and Polymarket directly. You can export a wallet's private key from Settings at any time. Your passkey confirms the export.

Summary

Agents never touch private keys. Strategies are code you can read and test. Every signature follows a permit you signed with your passkey.

FAQ

Can a Circuit agent steal my private key?

No. Agents never see private keys. They request typed actions. Signing happens outside the agent's sandbox and needs your passkey-signed permit.

Does every trade need my passkey?

No. You sign a permit with your passkey when you start an agent. The agent trades under that permit for 30 days. Renew it from the agent menu or its runs fail. Trades you ask for and assistant proposals need your confirmation each time unless Auto-approve is on, which executes what you ask without confirmation for up to an hour under one passkey-signed permit.

Can I get my private key out of Circuit?

Yes. Open Settings, then Wallets, choose Export private key on the wallet and confirm with your passkey.

What happens to my positions if I stop an agent?

They stay open in your wallet. Stopping the agent releases its allocated funds. You ask Circuit to close positions.

Build it on Circuit

Circuit writes the agent and backtests it. Paper trade it before you fund it.

Build your agent