# Import from Private Key

### 1. Navigate to the "Import Private Key" menu

If you're running from source code, please execute "yarn start-commander" to run the client.&#x20;

```
yarn start-commander
```

If you're running with Docker, please use the following commands to run it in interactive mode (assume the container name is commander)

```
docker rm commander
docker run -it --name commander -v $HOME/.exsat/:/app/.exsat -e CLIENT_TYPE=commander exsatnetwork/exsat-client:latest
```

Then perform the "Import Private Key" action by choose :&#x20;

Synchronizer/Validator -> Import Private Key

### 2. Perform the "Import Private Key" action

Enter the private key of the account

<figure><img src="/files/S4QW95kYq8AYm92VTqT2" alt=""><figcaption></figcaption></figure>

After entering the private key, click \[Enter] to generate the keystore. At this point, you need to enter and verify the account name (note: do not include `.sat` in the account name).

<figure><img src="/files/MdU7DDKsE3QYNUQ9x3iA" alt="" width="422"><figcaption></figcaption></figure>

Keystore will be generated from the private key, please set up the password for unlocking the keystore.  And choose a path to store the keystore file at the end of importing the account. You could select a directory ,choose the root directory, or mannually input a path.

If you're running the client in the **docker,** be sure that the path you choosed is mapped to the host machine. Otherwise, if you remove the Docker container, the keystore file will be lost, and you will need to regenerate the keystore file by importing the seed phrase or private key. It's suggested to choose the home path (the 1st option in the menu) .

<figure><img src="/files/3ApsvpRFB07Nt28TIfoS" alt=""><figcaption></figcaption></figure>


---

# 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://docs.exsat.network/guides-of-data-consensus/others/operation-references/common-operations/import-from-private-key.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.
