> For the complete documentation index, see [llms.txt](https://hweippy.gitbook.io/copychain/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://hweippy.gitbook.io/copychain/getting-started/quick-start.md). Agents can also search and read this documentation through its [MCP server](https://hweippy.gitbook.io/copychain/~gitbook/mcp).

# Quick start

This page takes you from download to a first running config. Everything after the start happens in the browser.

{% stepper %}
{% step %}

#### Install

Download and extract the latest release:

```sh
wget -O- https://github.com/Hweippy/copychain/archive/refs/heads/main.tar.gz | tar -xz
cd copychain-main
chmod +x copychain
./copychain --version
```

CopyChain works in the directory where you start it. It keeps `settings.toml`, `configs/`, `wallets/`, `nonces/` and `copychain_logs/` there.
{% endstep %}

{% step %}

#### Start the web terminal

```sh
./copychain server
```

The default address is `127.0.0.1:8787`. To open the terminal from another machine, bind a private address, for example `./copychain server --bind 100.x.y.z:8787` on Tailscale, or use an SSH tunnel. See [Requirements](https://hweippy.gitbook.io/copychain/getting-started/requirements.md#browser-access).

Keep the process running, for example in `tmux`, `screen` or a systemd service. Only one server runs per user.
{% endstep %}

{% step %}

#### Pair your browser

At each start, the terminal prints a pairing token and a link:

```
Pairing token: ABCD1234
Open to pair this browser: http://127.0.0.1:8787/?pair=ABCD1234
```

Open the link. The browser stays paired after a restart, even though the token changes. To pair another browser or a phone later, use Settings > Connection > Paired browsers > Share.
{% endstep %}

{% step %}

#### Set the connection

On the first start there is no `settings.toml`, so the terminal opens its setup page. It offers two ways to start:

* **Set the RPC and gRPC.** Enter the RPC URL, its optional auth header (name and value), and one Yellowstone gRPC URL with its token. The play button next to each URL tests it. **Save and start** tests both first: when one fails, its error shows under the field and nothing is saved. You can add more gRPC providers later in Settings > Connection. No provider yet? See [Requirements](https://hweippy.gitbook.io/copychain/getting-started/requirements.md#rpc-and-grpc).
* **Import a CopyChain v4 config.** The connection of the old config moves to `settings.toml`, its wallet joins My wallets and its nonces join the nonce list of the wallet. See [Upgrade from v4](https://hweippy.gitbook.io/copychain/getting-started/upgrade-from-v4.md).

CopyChain now watches the arbitrage market. The wallets and successes fill within seconds. Live pools shows once an Auto Markets config runs, or with Settings > Auto markets > Live pools > **Always show**.
{% endstep %}

{% step %}

#### Add a wallet

Open **My wallets** and add a wallet: create a new one, or import a key (a byte array, a Base58 key or an encrypted CopyChain file). Fund it with SOL: every attempt pays a network fee, and a tip when it goes through Jito or a vendor. A config does not start when the wallet is at or below Settings > Balance > **Stop at**. A config signs with one wallet of this list.
{% endstep %}

{% step %}

#### Create and start a config

Open **Configs**. With no config yet, it offers three ways:

* **Start from a template:** Copy (the wallets you list) or Auto Markets (CopyChain finds the pools; it starts in dry run). RPC (when Settings has an RPC URL), Jito and a vendor are on; change them in the editor before you save.
* **Import a config** of CopyChain v4, or a TOML file of v5.
* **Start fresh:** an empty config where each key shows its default.

Save, then press **Start**. The run bar at the bottom shows the running configs, their sessions and their PnL.

{% hint style="warning" %}
A Copy config pays the priority fee and the tip of the wallet it copies, up to 0.1 SOL per transaction by default. Set a lower `maximum` on `priority_fee` and `tip` in [sending.defaults](https://hweippy.gitbook.io/copychain/configuration/parameters/sending.defaults.md) before you start it.
{% endhint %}
{% endstep %}

{% step %}

#### Go live and follow the results

Only Auto Markets has a dry run. A copy or static markets config sends real transactions from its first session.

When the dry run looks right, open the config, turn off **Dry run** in the Auto Markets section and save. From then on it sends real transactions and spends SOL.

The run bar shows the PnL of each running config. [Logs](https://hweippy.gitbook.io/copychain/using-copychain/web-terminal/logs.md) shows why a config waits or stops.
{% endstep %}
{% endstepper %}

{% hint style="success" %}
A safe first run: create an Auto Markets config from the template and keep **Dry run** on. It watches the market and makes every decision, but sends no transaction and spends no SOL.
{% endhint %}

## Next steps

* Pick wallets worth copying in [Wallets and successes](https://hweippy.gitbook.io/copychain/using-copychain/web-terminal/wallets-and-successes.md), then press **Copy** on a wallet.
* Learn the three [trading modes](https://hweippy.gitbook.io/copychain/using-copychain/trading-modes.md).
* Read the [parameters](https://hweippy.gitbook.io/copychain/configuration/parameters.md) of a config.
* Connect your AI agent with [Connect AI](https://hweippy.gitbook.io/copychain/using-copychain/web-terminal/connect-ai.md).
