<!-- https://zunderlabs.com/docs/start/quickstart · Markdown version of the page -->

# Quickstart in paper mode

Install Guard, load your rules, and point a bot at it in paper mode. Paper mode uses Hyperliquid's real prices and sends no orders.

Paper mode is the rehearsal path you can choose before enabling real orders. It reads Hyperliquid's real prices and your real account, judges every order with the same rules, and records what it would have done. It sends nothing to Hyperliquid's `/exchange` endpoint.

## 1. Install and set up, with your rules

Run Guard on the machine where your bot runs: the setup detects your system (macOS, Linux, Windows or Docker). A server you reach over SSH is the other way. The setup carries the rules you set on this site (Backtest, Watch or the homepage), stored in your browser as a rules code that starts with `zr1_`; otherwise the defaults. **Select paper in the setup below for this walkthrough.** Mainnet setup is a separate explicit choice with [host activation steps](https://zunderlabs.com/docs/start/go-live).

Run it on the machine where your bot runs. With the default rules (the page fills in your own and detects your system); every command matches Guard's v1.0.2 release:

**macOS**

```sh
# v1.0.2 installation channel is not published or verified yet.
# Selected mode: mainnet. Keep preparing your rules; installation is disabled.
```

**Linux**

```sh
# v1.0.2 installation channel is not published or verified yet.
# Selected mode: mainnet. Keep preparing your rules; installation is disabled.
```

**Windows**

```
# v1.0.2 installation channel is not published or verified yet.
# Selected mode: mainnet. Keep preparing your rules; installation is disabled.
```

**Docker**

```
# v1.0.2 installation channel is not published or verified yet.
# Selected mode: mainnet. Keep preparing your rules; installation is disabled.
```

**On a server (SSH)**, from your computer:

```sh
# v1.0.2 installation channel is not published or verified yet.
# Selected mode: mainnet. Keep preparing your rules; installation is disabled.
```

The API wallet key is typed into Guard's hidden prompt where Guard runs; it is never part of a command.

The default rules are: 5x leverage, 2% loss at the stop, no stop: Guard sets one 2% away, liquidation at least 10% away, a position at most 200% of equity, 6% open risk, 6% daily loss stop, 25% drawdown halt, all markets. The format is on [Rules codes](https://zunderlabs.com/docs/reference/rules-schema).

The setup prints a **client key** for your bot. The client key is not your API wallet key. Hyperliquid does not accept it. Only your Guard does. Guard listens on `http://127.0.0.1:8547`, on your machine only.

## 2. Point your bot at Guard

One setting changes: the API URL. The private key becomes the client key the setup printed.

```python
from eth_account import Account
from hyperliquid.exchange import Exchange

client_key = Account.from_key("0x...")          # the client key Guard printed
exchange = Exchange(client_key, base_url="http://127.0.0.1:8547",
                    account_address="0xYourAccountAddress")
```

Guides for ccxt, Freqtrade, the TypeScript SDK, MCP and TradingView are under [Integrations](https://zunderlabs.com/docs/integrations).

## 3. Confirm paper mode, then send a request

First check `/guard/status` reports `"mode":"paper"`. Only then send one order your bot would normally send. In paper mode the answer your bot gets says what Guard would have done: `Zunder Guard paper mode: would resize [resized]: … (nothing was sent)`. To see Guard's state and its decisions:

```sh
curl -s http://127.0.0.1:8547/guard/status              # mode, risk state, positions, alerts
curl -s 'http://127.0.0.1:8547/guard/events?since=0'    # every decision, with its rule and code
```

You see the decision (allow, resize or veto), the rule that decided, and what would have been sent. Nothing reached Hyperliquid, because this is paper mode. The fields are listed in [Events](https://zunderlabs.com/docs/reference/events).

## Using Pro

If you bought Pro, [activate the emailed licence and verify its status](https://zunderlabs.com/docs/start/licence) on this installation. You can check activation in paper mode before changing networks.

## Choose your next network

- **Testnet** sends orders with test funds. Use it to check exchange execution and resting stops.
- **Mainnet** uses real funds. The mainnet installer sets up a managed service on macOS, Windows, Linux systemd or Docker on native Linux. Account confirmation, API wallet, equity cap, journal admission and explicit start remain required.

AWS provisions in paper mode first; use its private host shell for activation. Guard never promotes a paper or testnet installation automatically. Keep this rehearsal's state separate from your mainnet journal.

[Activate mainnet](https://zunderlabs.com/docs/start/go-live) · [Network details](https://zunderlabs.com/docs/concepts/networks)
