Rules for AI traders, enforced on NEAR
If your AI trader fails,
anyone can bring
your money home.
Your AI proposes trades. A keyless NEAR contract signs only what your rules allow. If it fails, the rescue can send money only to you, and the rescuer is paid once it lands. Your strategy can even stay sealed.
Alpha Arena · Replay of real fills
30 of 32 AI traders ended with less.
We replayed their fills with a leverage cap and a 30% loss floor. 3 traders would have ended with less under those rules.
- Actual trading
- $176,849
- Replay with Klear’s rules
- $233,621
Grok 4 · $10,000 to $325
Right now, on NEAR testnet
The one moment · recorded
The AI went silent. The money came home.
We staged the outage on testnet. 5 min 7 s after the silence limit passed, the USDC was back with the investor and an AI guardian had been paid for it. The WETH followed at 25 min, once Base finalized.
Recorded testnet rescue
Elapsed time from the silence limit · Playback advances by milestone
The AI trades
The manager proposes trades. The NEAR judge signs orders inside the mandate and refuses the order that exceeds the leverage cap.
The rules stay in force.
The investor sets the limits. The judge enforces them as conditions change.
Refuse a trade
The NEAR judge checks size, price and leverage before it signs an order.
Try the rulesCut risk early
Anyone can trim the position if it crosses the warning level or leverage cap.
See an early cutBring funds home
If the loss floor is reached, the manager goes silent under an exit rule, or the investor asks, anyone can carry out the exit.
Read the rescue record
Set up a strategy you can inspect.
Lock your rules and payout address on NEAR. Then deploy, verify and fund the two accounts before starting your manager and relayer.
Your strategy can stay private. Run the manager sealed and the AI reads it inside attested hardware; the judge still checks every order.
Hyperliquid
Position and margin
Base
Asset vault
What can stay private?
Three demonstrations cover the strategy an AI reads, the balance it trades with, and the destination of a rescue payout.
Sealed strategy
TestnetThe AI reads the strategy inside attested hardware. Its signed decision leaves a public receipt.
Confidential mandate
Mainnet testAn AI traded inside a confidential NEAR Intents account. The provider enforces the policy and its operators can read the ledger.
Private payout
Mainnet testA rescue payout went into a confidential balance. The public receipts leave the recipient’s identity hidden.
What NEAR does in Klear.
Every row is something Klear needs NEAR for, with the transaction or record that shows it working.
- Contracts with no keysYour rules live in a judge the factory creates locked from birth. Nobody can change it, us included.Check all seven
- Chain SignaturesThe judge alone signs for the accounts on Hyperliquid and Base: the AI's orders, the close, the vault's exit.NEAR
5hHHC9…XqKq - Read MPCNEAR confirms each chain's state in a finalized block before the judge acts. A forged $1M snapshot was never attested.NEAR
4gcMUU…QBac - Function-call keysThe AI's key can propose and check in, nothing else. Its order past the leverage cap was refused.NEAR
F8beik…UwfK - NEAR AI CloudA sealed AI reads the strategy inside a TEE. Its trade carried a signed receipt, and filled.NEAR
9kZdLC…PFrm - DCAP verifierNEAR itself checks the TEE's Intel TDX quote, then each receipt's signature.NEAR
G1Jbmp…zXY2 - NEAR IntentsA rescue payout lands in a confidential balance; the public record does not name the recipient. Mainnet.The payout
- Agent APIMoney held confidentially under the mandate; a withdrawal to a stranger was refused. Mainnet, real funds.The mandate
- MPC-owned accountsA locked contract owns that confidential account. On the investor's exit, a stranger cut the AI off.NEAR
3eWuLX…MseT - NEAR walletsAnyone can run a rescue from the browser with a NEAR wallet, and be paid by the judge.The live drill
Judges: two minutes, no wallet.
- 01
Try to break it
Three real testnet transactions from a stranger's account. The locked judge refuses each one on chain.
Break it, live - 02
Check a strategy
Six checks a guardian runs before trusting one, read live from NEAR, Hyperliquid and Base.
Run the checks - 03
Follow a rescue
The AI goes silent, anyone brings the money home, and the judge pays only once it arrives.
Replay the receipts
