> For the complete documentation index, see [llms.txt](https://doc.lockerprotocol.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://doc.lockerprotocol.com/hyper-agentic-trader/go-live.md).

# Go live under the mandate

What changes when the agent trades your real account, and how to pause, stop or revoke it.

Simulation and real run the same code, the same quotes and the same limits. What changes when you go live is that a signature happens, and that money moves.

{% hint style="danger" %}
**Do not go live with money you need.** Perpetual futures are leveraged and a position can be liquidated. Use an account dedicated to this, holding only what you are ready to lose. The simulation account pays the same fees and the same funding as the real one, so there is no hurry to leave it.
{% endhint %}

## What live trading needs

Four things, and the command names the one that is missing.

| # | What                                                                                              | How                                                                          |
| - | ------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------- |
| 1 | An account set up with your wallet (Locker Vault, the safest, or your extension or mobile wallet) | `lpa setup`, or `lpa init`                                                   |
| 2 | The guardian holding the agent key                                                                | `lpa unlock`, typed by **you**: it asks the password. An agent cannot unlock |
| 3 | A mandate in force that allows `trade` and `pilot`                                                | `lpa mandate sign --actions trade,pilot`, signed in your **wallet**          |
| 4 | Simulation mode off                                                                               | `lpa paper off`                                                              |

Once the mandate ends or is released, what the real account holds is still followed: its exits, its stops, a cancel and a close go as before, and nothing new is opened (a step, a level of a grid, an entry of a range) until a mandate that allows `pilot` is in force again.

Two pilots can trade live, and the first is the one this documentation is about:

```sh
lpa unlock
lpa mandate show
lpa pilot schedule --on --live     # the daily pilot: one day every day, played by the service
```

```sh
lpa paper off
lpa pilot start --live             # the continuous pilot: a deliberation every few minutes, inside the guardian
```

Both ask you before anything is armed, and neither takes `--yes`: *A pilot never takes --yes: what it may sign is what you signed on your phone.* The daily pilot needs simulation mode off: while it is on, `--live` is refused, and a schedule on the real account plays none of its days (each is refused by name in its log) until you come back with `lpa paper off`. The continuous pilot costs what its deliberations cost, about three dollars a day at a deliberation every fifteen minutes with a hosted model: it is not what `lpa setup` arms.

## What changes

|                     | In simulation                                 | Live                                                                  |
| ------------------- | --------------------------------------------- | --------------------------------------------------------------------- |
| Who signs           | nobody                                        | the agent key, inside the guardian                                    |
| The order book      | the real one                                  | the real one                                                          |
| Fees                | the real ones, always counting the Locker fee | the real ones, as your account's tier and approval give them          |
| Funding             | charged every hour                            | charged by Hyperliquid                                                |
| Liquidation         | simulated, like a cross-margin account        | real                                                                  |
| The mandate         | not needed                                    | **read again before every opening**                                   |
| The day's counters  | kept for the simulation book                  | kept for the real account, and the mandate's notional ceiling applies |
| Where it is written | the journal, marked `simulation`              | the journal, and the fees are totalled                                |

A live pilot also needs a mandate whose use list carries `pilot`. Without it, the opening is refused with `MANDATE_INVALID`, and a live pilot never falls back on the local policy alone.

## The limits that hold it

Three layers, and the **narrowest** wins:

1. **The charter** (`~/.lpa/pilot/charter.json`): how much, for every strategy. The risk per trade, the leverage, the markets, the positions at once, the budgets and the brakes. It names the **strategy**, which says how a position is built and left; a strategy widens nothing, and `lpa pilot strategy show` says what the two layers below would refuse of it before a day plays it.
2. **The policy** (`~/.lpa/policy.json`): this computer's limits. Tightening takes effect at once. Widening waits for your password at the next `lpa unlock`.
3. **The mandate**: the limits your wallet signed. Nothing on this computer widens them, whichever wallet signed them.

Two limits stop openings for the rest of the day on their own:

* the **orders a day**, 20 by default.
* the **notional opened a day** your mandate signed.

No loss in percent stops anything since lpa 2.4.0: not the day's loss, not the loss since the start, not a fall of the equity. If the price falls, the position is not cut; the pilot waits. The stops each strategy sets for itself stay.

The daily pilot adds one rule of its own, under a strategy that places a stop (the kinds `stop` and `range`): three losing trades in a row pause it for 72 hours, and the pause lifts on its own. It is a count of trades, not a percentage. By steps and under a grid the room before liquidation is the bound instead.

## When the pilot pauses itself

It names the reason, every time:

* the key left the guardian,
* the mandate no longer allows what it was doing,
* the agent key or the policy ended,
* the day's deliberations or the day's dollars are used up (it goes on after midnight UTC),
* the same calls three times with no order passing,
* three failures of the model in a row,
* a deliberation that does not fit the model's context.

`lpa pilot resume` is refused while the cause still holds, and says which one it is.

## How to pause and stop

```sh
lpa pilot pause          # it thinks no more; the positions stay
lpa pilot resume         # take it up again
lpa pilot stop           # it ends; the positions stay yours
lpa pilot stop --flat    # it ends, then closes at market what it opened
lpa lock                 # the agent key leaves memory: nothing can be signed
lpa panic                # everything stops, then the key leaves memory
```

`--flat` closes only the positions this pilot's activities opened. A market another activity also opened stays open, and is named. It asks your go, and for a live pilot the key's password.

`lpa panic` is the one to remember. It stops every pilot and every copy, then locks the key. It works when the rest is broken: with no guardian running, it stops the pilot and the copies on disk, so no guardian takes them up.

```
The pilot: stopped. The positions it opened stay yours.
Copies: 1 stopped.
The key: locked, it left memory: nothing can be signed.
Nothing was closed and nothing was cancelled: your positions and orders stay as they are (`lpa perps positions`; `lpa perps close --all` closes them).
To take the agent's right to trade away for good, revoke it with your phone: run `lpa agent revoke` in your own terminal.
```

{% hint style="info" %}
**Stopping is not closing.** Pausing, stopping and locking leave your positions exactly where they are, because they are yours. To close them: `lpa perps close --symbol ETH`, or `lpa perps close --all`.
{% endhint %}

## How to take the right to trade away

Three levels, from the softest to the hardest.

{% stepper %}
{% step %}

### Revoke the mandate

```sh
lpa mandate revoke
```

Only restricts, so it never needs a password and an agent may run it. It lasts: the revocation is written beside the mandate, and no guardian, this one or the next, opens anything under it or under any older mandate until your wallet signs a new one. Closing stays allowed.
{% endstep %}

{% step %}

### Lock the key, or stop the service

```sh
lpa lock
lpa service stop
```

Nothing can be signed until the next `lpa unlock`. Copies in simulation keep running, because they sign nothing.
{% endstep %}

{% step %}

### Revoke the agent key, with your wallet

```sh
lpa agent revoke
```

Hyperliquid has no revoke, so `lpa` approves a throwaway address under the agent's name, which replaces it, and keeps no key of that address. The sealed key is removed from your computer here, and the mandate signed for that agent goes with it. Your wallet signs this.

```
Agent 0x8c1f...9a2e revoked. `lpa agent renew` approves a new one.
```

{% endstep %}
{% endstepper %}

To start again later: `lpa agent renew` approves a new agent with one signature in your wallet, and `lpa mandate sign` signs new limits for it. A mandate signed for the old agent opens nothing for the new one, and the command says so.

## Renewing, before it bites

| What                             | How long                                                           | Renewed by                   |
| -------------------------------- | ------------------------------------------------------------------ | ---------------------------- |
| The agent key                    | 180 days at most                                                   | `lpa agent renew`            |
| The mandate                      | the agent key's life, 180 days at most, never past it              | `lpa mandate sign`           |
| The key in a terminal's guardian | 8 hours, 24 at most                                                | `lpa unlock --hours`         |
| The key in the service           | the agent key's life, until `lpa lock` or a restart of the machine | `lpa unlock`, or the console |

The agent's end is warned at 30, 14, 7, 3, 1 and 0 days: in the session's banner and in `lpa agent show` whenever you are past a rung, and once each in the console and in your alerts when a service runs.

## The daily pilot on the real account

```sh
lpa pilot schedule --on --live
```

The service then plays one day every day at the charter's time, on your real account, under the strategy the charter names, and follows what the pilot holds every hour, every five minutes while a grid or a range is held. It starts only when three things are there: the account of this home (`lpa init`), a key in the guardian (`lpa unlock`) and a mandate in force that allows `trade` and `pilot` (`lpa mandate sign --actions trade,pilot`, signed in your wallet), with simulation mode off. Each want is refused by name, before the question, with the step to take. A day played by hand on the real account is `lpa pilot run-now --live`, with the same three needs.

On the real account the first step is signed by the guardian under the mandate's bounds, the steps after it rest on Hyperliquid as limit orders and the exit as a reduce-only limit at its price. The follow reads the venue's own executions since the last one and moves the exit with the average; the service runs it every hour, and `lpa pilot follow` runs one by hand.

What the other kinds do there:

| The strategy in use | On the real account                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     |
| ------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| A grid              | each starting order rests as a limit at the venue's tick, weighed one by one against the policy and the mandate; an order filled whole is replaced by its opposite one level away, a part filled waits, an order gone is posted again for what it still has to fill. The follow runs every five minutes. A grid that stops out of its range keeps a stop of its position resting on the venue, so it holds without the service, the computer or the key. `lpa pilot end-grid --symbol <S>` ends one now, `--close` closing what it holds and `--keep` leaving it to you |
| A range             | the two entries rest as limits; the one executed opens the position and the other is cancelled, and the position's target and its stop then rest on the venue as its take profit and its stop loss, which the venue cancels together when one fills. The follow runs every five minutes and arms again at each refresh. `lpa pilot end-range --symbol <S>` ends a session now, the same way                                                                                                                                                                             |
| A trailing stop     | the follow has the guardian move the position's stop on the venue, the new one posted and then the old one cancelled, and a stop that would recede is refused. It closes one thing itself: a position whose stop the venue refuses because the price is already past it, at the market, as the stop would have                                                                                                                                                                                                                                                          |

Ending a grid or a range on the real account is **your** own act, like any order of yours, and `--preview` does nothing at all.

The service starts locked after every restart of the machine: unlock it again (`lpa unlock`, or the console), and `lpa pilot status` says a day that could not start meanwhile. The clock tries a day that could not start four times, a quarter of an hour apart, then leaves the date and says so.

{% hint style="warning" %}
Start with a mandate whose bounds make the first step small. The mandate's daily notional is the whole plan's: five steps of a 5000 USD equity engage about 5000 USD of notional over the position's life, and a grid's levels count the same way. And read what the account must hold: with the default charter the pilot opens nothing below $120, and with `claude-sonnet-5` it trades from about $324 ([Models and costs](https://doc.lockerprotocol.com/hyper-agentic-trader/models-and-costs.md)). `lpa pilot strategy show --name <name> --equity <usd>` says, for the strategy you mean to run, what the policy and the mandate would refuse of it at that equity, before any day plays it.
{% endhint %}

## Learn more

* [Stop, and take your money out](https://doc.lockerprotocol.com/hyper-agentic-trader/leaving.md)
* [The strategies](https://doc.lockerprotocol.com/hyper-agentic-trader/strategies.md)
* [The mandate](https://doc.lockerprotocol.com/hyper-agentic-trader/mandate.md)
* [The guardian and the keys](https://doc.lockerprotocol.com/hyper-agentic-trader/guardian-and-keys.md)
* [Safety rules for the agent wallet](https://doc.lockerprotocol.com/hyper-agentic-trader/safety-rules.md)
* [lpa pilot](https://doc.lockerprotocol.com/hyper-agentic-trader/commands/pilot.md)
