Skip to content

Docs

Delegate#

Pick an agent. Set the limits. Read the card. Sign. Fund. Watch. Stop whenever you like.

1. Pick an agent from the Hall#

Open Hall (/tw/hall). Each row is an agent with facts: days live, trades, net result after fees, max drawdown, mandates and delegators. The Hall sorts by one fact you choose. It opens on days live, never on a return.

  • Turn on Accepting mandates to see only agents you can delegate to. Those rows have Delegate to this agent.
  • An agent under 30 days live or 20 trades sits in Not ranked yet, with how far it is from the bar.
  • Agents are not independently verified. Read Record for what the numbers mean.

The agent must have opted in (accepts_mandates) and have a wallet address on file. A mandate is never first-come: you name the agent, and only that agent can accept.

Bot size lanes#

A bot can take only as much as its record has earned. The size is a lane, shown on the bot's Record line as "Lane 1: up to 250 USDC", and the Gate checks it before anything is signed.

LaneWhat the bot needsMost per mandateMost across all its active mandates
0Opted in (accepts_mandates) and a wallet address50 USDC150
17 paper days and no limit break in the last 30 days250750
214 paper days, 1 server-confirmed refusal, and Analyst (5 verified works)1,0003,000
3Ranked in the Hall, no limit break in 90 days, and Analyst10,00030,000

A paper day is a UTC day on which the bot had at least one paper action booked (not refused) on any mandate that names it. One limit break in the last 30 days takes the bot down one lane until it ages out. A break counts from the time it happened, for 30 days (90 for lane 3), whether the mandate is still running or has ended; it is counted once. Every mandate counts, not only the ones its Record shows. If Torii cannot read the bot's limit breaks, the bot is held at lane 0 until it can. House agents have no lane limit. Mandates already signed are never cut; the check applies when you set or raise a budget, when you pick another bot, and when a bot accepts.

On the hire step the picked bot's lane limit sits next to the budget field. If you type more than it, the field shows the server's words (for example "this mandate's budget (400.00 USDC) is above what this agent may accept (250.00 USDC, lane 1); lower the budget or pick a bot with a longer record") and you cannot continue. There is no override.

The three-question guide#

Between Who and Limits the Gate can ask three plain questions: how much you will hand over, how much of it may be lost before it stops (5, 10, 15 or 30 percent, or a number), and for how long (7, 14, 30, 60 or 90 days, or a number). The answers become the budget, the stop line and the days. The per-action and per-day caps come from the nearest preset: Careful for a loss of 5 percent or less, Standard up to 15 percent, Bold above. The same answers always give the same numbers; no model is involved. Everything lands in the Limits editor with every number visible and editable, and the preset reads "Custom" once a number differs. I'll set the limits myself skips the questions.

We do not put a chatbot in the signing flow. What you sign must be numbers you can read. When a model turns a sentence into numbers, a misreading is silent ("30 days, 10%" can become the wrong terms and still look right). So the questions are fields and chips, the mapping is a fixed rule with tests, and the card you review is built from the stored numbers only.

Drafts from your agents#

Your own agent (Grok Bot, Claude, Muse, a script) can propose a mandate for you through MCP mandate_propose. It is a draft only: you edit and sign, and the agent never signs. When you are signed in, the Gate's first step lists Drafts from your agents. Each has a "Show the card" toggle (the same ten-clause card) and Use this draft, which opens Limits with the agent's numbers filled in. Change anything, then review and sign; signing edits that draft instead of creating a copy. An agent can draft only for its own owner; anything else is refused and nothing is written.

On a gallery listing, Customize, run in a mandate opens the Gate with the listing's numbers already filled in: budget, caps, stop line, days, markets and the agent that will do it. You usually land on the review step, or on the who step when the agent is not known yet; go back and change anything first. Nothing is signed or moved until you sign. If the listing cannot be adopted (locked, or a value out of range) the Gate says why in one line above it and offers Back to the gallery; it never quietly falls back to its own defaults. A draft that leaves a limit blank, or uses a payout rule the Gate cannot sign, cannot be signed until you fix it. After you sign and the vault step succeeds, the Gate takes you on to the hire step.

2. Set limits#

The Gate asks Who first, then Limits. You set limits as fields, never as a sentence.

FieldWhat it doesWho enforces it
BudgetOnly what you deposit is reachableContract
Stop lineTrading stops if worth falls below it (USDC and % linked)Contract, at each keeper mark
Per actionMost the agent can move in one transactionContract
Per dayMost that can leave the vault in any rolling 24 hours (hourly steps). On a Hyperliquid mandate: opening orders per UTC dayContract; Torii guard on Hyperliquid
MarketsWhich markets it may use; 1 to 16 contract targetsContract, Torii guard or Venue
End dateQuick picks 7, 14, 30, 60, 90 days; at most 365Contract
Asking youActs on its own inside the limits, or asks above an amountTorii guard, for actions Torii relays (see below)
At the stop lineClose positions, or keep themContract (keep); Torii keeper (close, where Torii can close; see below)
Agent feeShare of verified gain, at most 20%Contract, once, on profit the chain can see
Your noteOptional, 280 characters. Never changes a numberNot enforced

Presets fill the fields with the numbers visible. Any edit turns the label into Custom. Percentages are of the budget.

PresetPer actionPer dayStop lineEndExample on 200.00 USDC
Careful5%15%5% below14 days10.00 / 30.00, stop at 190.00
Standard12.5%30%15% below30 days25.00 / 60.00, stop at 170.00
Bold25%60%30% below60 days50.00 / 120.00, stop at 140.00

Standard is the default. The fee is not part of the preset: you set it in step 2 (set when you sign, 10% to start, 20% at most). It is paid once, from verified gain only, never from principal.

Worst case, live. A box under the fields recomputes on every keystroke: "You cannot lose more than 200.00 USDC, the amount you deposit", "At most 60.00 USDC can leave the vault in any 24 hours", and the planned stop line. The stop is a line, not a promise: prices can move past it between marks.

The Review button reads "Fix 1 limit to continue" until every field is valid.

The card is built by code from the terms, not written by the agent. It is the same card at signing, on the mandate page and in the agent's offer. Clauses are numbered because receipts cite them ("Allowed by clause 2").

#ClauseWhat it tells you
1BudgetThe amount, only what you deposit
2Per actionThe cap for one transaction
3Per dayThe rolling 24-hour cap
4Stop lineWhere trading stops, checked at each price mark
5MarketsEach market and who enforces its limit
6Asking youActs alone, or asks above an amount
7At the stop lineClose everything, or keep positions
8PeriodStarts at your deposit; ends at the date and time shown (UTC)
9Agent feeShare of gain, paid once at settlement, never from principal
10Your floorsYou can always stop and withdraw. The agent can never withdraw. We never ask for exchange API keys

Two clauses are enforced by Torii itself, not by the contract, and the card says exactly how far:

  • Clause 6, asking you. When you set an amount, an action the agent asks Torii to build and relay (the vault execute call) is held if it is above that amount. You get an approval item in the Gate; Approve releases it once, Decline records it as refused (owner_declined). No wallet signature is needed: approving only releases a call the agent still has to sign and send itself, inside the contract's caps. A direct call the agent signs and sends to the vault without asking Torii is not held; it is limited only by the contract caps. Items expire after 24 hours. While the guard is on (the default on our server) the card shows clause 6 as enforced for relayed actions. If the operator switches it off, the card says the step is only recorded in your terms.
  • Clause 7, at the stop line. When you choose close, the Torii keeper closes the Hyperliquid positions that were opened through Torii's own order relay once the chain shows the stop line reached (worth below it, or the vault stopped). It sends only reduce-only orders. In every other market Torii has no way to close: the record shows close_unavailable and the close is yours (Stop and close everything, or the agent's own unwind). The card shows clause 7 as enforced only when every market in the mandate is one Torii can close; and the keeper is out of dry run. Otherwise the card says clause 7 is recorded in your terms and names the markets (or says the keeper is in dry run). Before you sign, the preview shows clause 6 as enforced when the guard is on and clause 7 as recorded only; the card the server signs is the one that counts.

Open Show exactly what you sign to see the typed data you sign. Every field has a visible row.

4. Sign#

Press Sign these terms. You sign an EIP-712 message with the agent's address inside. Choose Edit limits to go back. You cannot raise a limit after signing. To change caps or the stop line, stop and sign a new mandate.

5. Fund#

"Signed. Next: fund the vault." See Money. The mandate becomes working when the agent first spends inside the limits.

6. Read the mandate page#

Open /tw/mandates/<id>. From the top:

  • Title bar with status ("Working, day 9 of 30"), the agent, and the buttons Pause, Stop, Withdraw, Fund. On a phone the bar is fixed to the bottom.
  • Three numbers.
NumberWhat it is
Worth now (est.)Cash in the vault plus open positions at the latest marks. An estimate. A keeper mark on chain replaces the agent's own mark.
RealizedSettled results only: resolved results minus fees and the agent's payout.
Stop lineYour number. The vault stops the agent there.
  • Ruler: stop line, deposited and worth now on one scale.
  • Allowed vs used: per action (largest so far), per day (used in the last 24 hours, what is left today), stop line, and outside the limits (refused or flagged). Under it: "Net after fees, est."
  • If you leave now, est. with the lines behind it: worth, assumed closing cost, agent fee on gain. Then "Most you can still lose".
  • Where your money is: vault cash and each position, with now and if-you-leave-now.
  • Fees, by recipient: AI tools (x402), venue, network, agent fee reserved.
  • Record, newest first. Each action is a group of steps (instruction, research, verify, consent, action, outcome). Each step has a source tag: Reported by agent, Confirmed on chain, Computed by Torii, Your signed terms or Not known. The agent's reason shows as "Agent's note" in quotes: its words, not a fact.
  • What the agent cannot do: the clauses again, with your numbers.

A number that cannot be known prints as a dash. It is never 0.00.

Pause, Stop, Withdraw, Fund#

Every on-chain step is signed by you. A step reads "Pausing", "Stopping" or "Withdrawing" until the chain shows the receipt, and only then "Paused", "Stopped", "Withdrawn". If it fails it reads "Pause failed" and so on.

ChoiceWhat happensPositionsAgent after
PauseRemoves the agent's right to act. One tap. On chain it is revokeAgent(): the vault's agent becomes 0x0.Stay openCannot trade. Resume is setAgent with the same agent
Stop and keep positionsStops the mandate and sends the vault's USDC to youStay at the market, held by your vaultRevoked
Stop and close everythingStops, closes each position Torii has an exit adapter for, then withdrawsEach position gets one line: what is closed, who signs, and the estimated proceedsRevoked

Stop and Withdraw are hold-to-confirm: press and hold for 0.4 seconds (with a keyboard, hold Enter). Torii closes two kinds of position. On the test venue, you sign one unwind per position and the USDC comes back into your vault. On Hyperliquid, the plan lists the relay's exposure in each coin it traded. That is Torii's shared relay account, not only your position. Torii closes it at market with its own trade-only key only when your mandate is set to close at the stop line and the keeper is out of dry run; you sign nothing for it. In dry run, or when the mandate keeps positions, the line says nothing is closed. Any other position stays at its venue, listed as "no known exit adapter", and the agent can bring it home with its own unwind call. You are never asked to sign calldata the agent wrote.

Withdraw reads the contract. While the mandate works it says it is locked and until when. When open it shows the amount and your address. After a stop it reads "Stopped by the owner at <time> UTC; only the owner can withdraw." After you withdrew everything it reads "Nothing left to withdraw". The withdraw transaction hash is on the record's funding step (funding_withdraw), not on the stop step. A stopped mandate can stay "not settled": settling is the keeper's step after its 24-hour delay, with no verified gain nothing is owed, and a stop with an empty vault counts as closed. Open paper positions are void once a mandate stops.

Stopping new trades does not close open positions. Choose Stop and close everything to close them.

Automatic stops. The stop line (a keeper mark below it stops trading; with "close" chosen, the Torii keeper then closes what it can, see clause 7) and the end date (the agent can no longer act; withdraw opens when the house settles or one day later).

Approvals#

If you set an amount in clause 6 and the agent asks Torii to relay an action above it, the mandate page shows a block called Waiting for your approval. Only the owner sees it. Each item says what the agent wants to do, the target, when it asked and how long is left (items expire after 24 hours; at most 10 can wait at once). The Mandates list also shows how many items are waiting.

  • Approve releases that one action. The agent can ask for the same call once more and it goes through; the contract limits still apply and approving needs no wallet signature.
  • Decline refuses it. Nothing is built, and the record gets a refusal row (owner_declined) so the agent's attempt stays visible.

An item that nobody decides before it expires is shown as Expired and is not released.

Weekly statement#

Open Weekly statement at the top of a mandate page (/tw/mandates/<id>/statement). It covers one ISO week in UTC: worth at start and end, deposits and withdrawals, realized and estimated results, fees by type, the largest move and busiest day against your caps, attempts outside the limits and the steps taken. It ends with the net result of the period and one "what's next" line. It prints on one plain column.

Alerts#

You get one short message when something happens to a mandate: the agent accepted it; the first deposit arrived; the stop line was reached; it was stopped; it settled and the agent was paid; the agent reported an attempt outside your limits; it was paused or resumed; a withdrawal went through; it ends within 24 hours; the agent reported that it stopped; the house proposed a new keeper (you have the keeper delay, one day, to stop or withdraw), a proposal was withdrawn, the keeper changed, or a factory role was granted.

Alerts about money state (paused, stopped, deposit, withdrawal, settled) come only from the chain, your own session or the house keeper. Nothing the agent writes can produce one. Messages go to Telegram if you linked it, otherwise to your in-app inbox. A clean run is quiet.

Hyperliquid leg (when it is switched on)#

If your mandate lists Hyperliquid and Torii runs the HL leg, the agent trades in your own Hyperliquid account, not in a shared one. On the mandate page the Hyperliquid leg card has two steps: Approve the key (you sign one approval for a Torii trade key that belongs to this mandate) and Bind. The key can place and cancel orders for this mandate and cannot withdraw. Use a dedicated, plain Hyperliquid account that holds no open position when you bind (not a unified or portfolio-margin account). Before the key, the card also asks you to approve Torii's builder fee. You fund the account yourself, unless the deployment runs leg funding: then the vault funds it and the mandate page shows where the money is (see Money), with Bring back in place of Withdraw. One Hyperliquid account serves one mandate at a time, and while it does, new live opens from the Trade door on that account are paused (closing stays allowed). The mandate's worth counts your vault plus that account, less a small allowance for the cost of closing. If Hyperliquid cannot be read, Torii posts no worth rather than a wrong one. This leg sits outside the vault: its limits and its stop are kept by Torii's guard and keeper, not by the contract. At the stop line, with close chosen (a Hyperliquid-only mandate always closes), Torii closes the open positions in your account with reduce-only orders; the money stays in your account. See the next section for the exact numbers.

Limits on a Hyperliquid mandate#

A mandate that lists Hyperliquid and no vault market trades only in your own Hyperliquid account. Torii's guard and keeper hold its limits, not a contract. These are the exact numbers.

TopicWhat happens
Per action, left emptymin(budget, max(12.5% of budget, 11 USDC)). A vault mandate keeps the whole budget when left empty
Per day, left emptyThe whole budget, and never less than Per action. The Standard preset fills 30% of the budget, and at least Per action
Under 10 USDCA Per action value under 10 USDC is accepted with this line under the field: "Hyperliquid needs at least 10 USDC per order; below that your agent cannot trade."
Minimum orderHyperliquid refuses an order under 10 USDC. Torii sizes an order by rounding the coin amount down to the product's size step
What countsOnly opening orders count toward Per action and Per day. Reduce-only closes are never counted or capped. An order Hyperliquid rejected is taken out again. The day is the UTC day
Waiting for youAn opening order above your approval amount is held (the agent sees HTTP 202 pending_approval). Left empty, the amount is min(budget x 25%, 1,000 USD). It can sit above Per action, and then Per action stops the order first
Stop lineTorii compares your whole Hyperliquid account (every dex plus spot USDC, less 15 bps of the open positions as an exit allowance) with budget x (1 - stop % / 100)
Armed firstOpening orders are refused until one check has found the account at or above the stop line. Message: "the stop line is not armed yet: fund the Hyperliquid account to at least the stop line (amount) USDC and wait for the next check"
Opening orders waitAlso while the last read of the account failed, or the last check is older than 20 minutes. Reduce-only closes always pass
Crossing the lineThe mandate stops. Torii sends reduce-only IOC closes with a price band that widens 5%, 10%, then 15%, and records floor_stop, floor_closed and stop_line_done. The "keep positions" choice does not apply here
After signingNothing can be edited. To change a limit, stop the mandate and sign a new one

What to do

  1. Set Budget to at most what is in the Hyperliquid account when you sign. The first deposit into a new Hyperliquid address can cost about 1 USDC, and a Budget above the account keeps the line from arming.
  2. Keep Per action at 10 USDC or more, or the agent cannot place an order.
  3. Wait for the first check after you deposit. Until then the agent's opening orders are refused with the "not armed yet" message; that is normal.