> 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/using-copychain/web-terminal.md). Agents can also search and read this documentation through its [MCP server](https://hweippy.gitbook.io/copychain/~gitbook/mcp).

# Web terminal

The web terminal is the browser view of a running `copychain server`. It is one page served by the CopyChain executable. Data updates live, about every 250 ms.

<figure><img src="https://591094602-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FfAbmrVzryv9CpULapTxA%2Fuploads%2FQONZGtXaDGjD05wvDhkW%2Fcopychain-main.png?alt=media" alt="CopyChain web terminal on a desktop: sidebar, landed arbitrages chart, wallets table and successes feed"><figcaption><p>The web terminal on a desktop</p></figcaption></figure>

## Layout

On a desktop, the page has these parts:

| Part              | What it shows                                                                                                                                                                                            |
| ----------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Sidebar           | My wallets, Configs (with the saved configs and a play or stop button for each), Trophies, Logs, Settings. At the bottom: Connect AI and the links (Discord, Documentation, Releases, Prism client SDK). |
| Top bar           | The time range of the statistics, the SOL price, the current slot and the transactions per block. A state (lagging, offline) shows here when the stream is not live.                                     |
| Landed arbitrages | A chart of the last 1,500 slots. Each tick is an arbitrage that landed: its height is the profit, its color is the bot.                                                                                  |
| Wallets           | Every wallet that sends arbitrage transactions through the watched programs.                                                                                                                             |
| Live pools        | The pools that trade now, with their price movement and activity.                                                                                                                                        |
| Successes         | The feed of profitable arbitrages, newest first.                                                                                                                                                         |
| Run bar           | At the bottom, while a config runs: its sessions, its status and its PnL.                                                                                                                                |

The panels resize by dragging their edges. The browser remembers the sizes and the column order.

See [Wallets and successes](https://hweippy.gitbook.io/copychain/using-copychain/web-terminal/wallets-and-successes.md) and [Live pools](https://hweippy.gitbook.io/copychain/using-copychain/web-terminal/live-pools.md) for the details of each panel.

## Phone and tablet

Up to 1180 px wide, the terminal uses a compact layout:

* A dock at the bottom has three tabs: **Live** (the wallets), **Pools** and **Successes**.
* Configs, Settings, My wallets, Logs and Trophies open as full screen pages. The back gesture of the browser closes them.
* The ⋯ menu at the top right holds the other items, Connect AI included.
* The top bar changes color when the stream lags or is offline. A tap on the lag state reconnects the gRPC streams.

## Time range

The time range button in the top bar sets the span of the statistics and of the successes: last hour, last 6 hours, last day, last 7 days, last 30 days, or all time. The chart of landed arbitrages always shows the last 1,500 slots.

## Stream health

CopyChain reads blocks from the gRPC providers and checks the slot of its RPC. The landed arbitrages chart marks slots without a block:

| Mark    | Meaning                                           |
| ------- | ------------------------------------------------- |
| Skipped | The leader produced no block. This is normal.     |
| Missed  | A block was produced but did not reach CopyChain. |
| Lagging | Blocks arrive, but processing is behind.          |
| Offline | CopyChain was not running.                        |

When the RPC node is behind the network by more than the limit of [slot\_check](https://hweippy.gitbook.io/copychain/configuration/parameters/slot_check.md), configs pause their sending unless **Copy when lagging** is on.

## Pairing and access

* A browser gets access once, with the pairing token printed at each start (`/?pair=<token>`). It then keeps a cookie. The token changes at each restart; paired browsers stay paired.
* Settings > Connection > Paired browsers lists every paired browser and AI agent, with its address and last visit. **Remove** unpairs one, **Remove all** unpairs the others. **Share** shows the current token.
* Wrong tokens in a row lock out the address for longer and longer.

{% hint style="warning" %}
A paired browser has full control: it starts configs, sends transactions from your wallets and can export their keys. Pair only your own devices, and keep the server on a private address. See [Requirements](https://hweippy.gitbook.io/copychain/getting-started/requirements.md#browser-access).
{% endhint %}

## Files and data

| Path                               | Content                                                                                                  |
| ---------------------------------- | -------------------------------------------------------------------------------------------------------- |
| `./settings.toml`                  | The machine settings: connection, arbitrage programs, aliases, feeds, balance rules. Edited in Settings. |
| `./configs/<name>.toml`            | One file per config. Edited in Configs. A save keeps the comments of the file.                           |
| `./wallets/`                       | The wallets of My wallets, encrypted.                                                                    |
| `./nonces/<wallet>.txt`            | The nonce list of each wallet.                                                                           |
| `./copychain_logs/`                | Application logs, and one log file per copy session in `sessions/`.                                      |
| `~/.copychain/states/copychain.db` | The history of the terminal: wallet statistics, successes, logs, slot charts, trophies, paired browsers. |

See [Settings and configs](https://hweippy.gitbook.io/copychain/configuration/settings-and-configs.md) for the split between the two kinds of TOML files.
