# Attach Mode

## Overview

Elld provides an `attach` command that allows users to start a console that connects to a running Elld client locally or remotely.&#x20;

## Usage

```bash
elld attach
```

The command above will attempt to start a console that will connect to an Elld client running on `localhost:8999`.&#x20;

To connect to a different address, use the `--rpc-address` flag.&#x20;

```bash
elld attach --rpc-address "35.178.18.11:8999"
```

## Change Loaded Account

To change the loaded account in attach mode, use the `--account` flag. An interactive session is started to collect the passphrase needed to unlock the account.&#x20;

```bash
elld attach --account "e4Tkr4AMxhPPjptDSMzX98F2BwHvQM2DKx"
```

{% hint style="info" %}
The `--account` flag can take the index of a local account (e.g 0, 1 etc).&#x20;
{% endhint %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://ellcrys.gitbook.io/ellcrys/elld/attach-mode.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
