AI Agent

AI Agent

CAREL’s AI agent lets you execute DeFi actions with natural language. Instead of navigating the UI manually, you describe what you want — the agent handles routing, quoting, and on-chain submission.

Execution Levels

There are three AI execution levels. Higher levels add more capabilities but cost more.

LevelNameWhat it doesFee
L1AI SuggestParses your intent, shows a plan — you confirm manuallyFree
L2AI ExecuteParses and executes on-chain autonomously2 CAREL flat + ~$0.30 in CAREL
L3AI PrivateExecutes via Hide Mode — combines AI routing with private execution3 CAREL flat + ~$0.50 in CAREL

How to Use

  1. Open the AI panel — floating button, bottom right of the app
  2. Type a command in natural language
  3. The agent shows an execution plan — token, amount, route, estimated fee
  4. Confirm to execute (L2/L3 submit on-chain automatically)

Example Commands

swap 10 STRK to USDT
stake 500 CAREL
limit order sell 100 USDT at 1.05 STRK
bridge 0.01 ETH to Starknet

Autonomous Execution (ERC-8004)

CAREL’s AI agent implements ERC-8004 — an on-chain standard for autonomous AI agent execution on Starknet.

The AIExecutor contract (0x00d8ada9eb26d133f9f2656ac1618d8cdf9fcefe6c8e292cf9b7ee580b72a690) handles:

  • Receiving parsed intents from the backend
  • Verifying the AI signature via AISignatureVerifier
  • Routing to the appropriate action (swap, stake, limit order)
  • Collecting the execution fee (hybrid: flat burn + USD-target component)

The agent is fully autonomous — it does not require manual transaction signing for L2/L3 execution after initial intent confirmation.

Fee Breakdown

Each AI transaction has three fee components charged simultaneously:

① Flat burn — burned immediately, guaranteed deflation floor:

LevelFlat burn
L22 CAREL → 100% burned
L33 CAREL → 100% burned

② USD-target component — CAREL amount calculated by TWAP oracle at execution time:

LevelUSD targetRouting
L2~$0.30 in CAREL75% treasury, 25% weekly buyback fund
L3~$0.50 in CAREL75% treasury, 25% weekly buyback fund

③ Buyback-burn epoch — the 25% buyback fund accumulates weekly, then buys CAREL from the market and burns it.

During seed phase (before TWAP oracle is live), only flat burn applies at a higher rate — 5 CAREL/tx for both L2 and L3.

Fee parameters are adjustable via governance after mainnet.

Points Bonus

AI execution earns a bonus on top of standard action points:

LevelPoints bonus
L2+20% on the base action points
L3+40% on the base action points

Example: a 10 STRK swap normally earns 10 pts/USD. At L3, it earns 14 pts/USD.

L3 — Private AI Execution

L3 combines the AI agent with Hide Mode. The agent parses your intent, routes through the ShieldedPool V4, generates a Garaga Honk proof, and the relayer submits on-chain.

Your command (natural language)


AI parses intent → builds Hide Mode payload


Backend generates ZK proof


Relayer submits → chain shows relayer address, not yours

This is the highest privacy tier available in CAREL — AI-routed and wallet-unlinkable.

Current Limitations

  • L2/L3 fees require CAREL tokens — get testnet CAREL from the faucet in the Rewards tab
  • AI gas usage is currently 4.9–5.1M (target: 1.5M) — optimization in progress
  • L3 shares the same proving constraints as Hide Mode (~16GB RAM per proof)