# Master Key

The Master Key allows you to interact with various protocols such as: Nostr, Bitcoin on-chain, Liquid or LNURL-Auth.

### How to generate a new Master Key and how to import an existing Master key

{% hint style="info" %}
You can generate one Master Key for each wallet in the Alby Browser Extension
{% endhint %}

#### **Step 1**: **Open the Alby Browser Extension, select the relevant account and click on the settings symbol**

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

#### **Step 2: Here you can generate a new Master Key or import your existing one**

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

#### **Step 2a: To Create or add a Nostr private key, click on Nostr Settings**

<figure><img src="/files/6ObS248Q6Mdg8vE0DzRN" alt=""><figcaption></figcaption></figure>

For more information about how to create, import and manage your Nostr keys visit:

{% embed url="<https://guides.getalby.com/overall-guide/alby-browser-extension/features/nostr>" %}

#### **Step 2b: To use the Master Key for logging into lightning-powered app via LNURL Auth), switch the toggle**

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

{% hint style="warning" %}
**Don't forget to backup your Master Key. It cannot be recovered in case it's lost. You will find the 12 words recovery phrase of your Master Key by following step 2.**
{% endhint %}

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

### How to access the recovery phrase of your Master Key

Perform step 1 from above: Open the Alby Browser Extension, select the relevant account and click on 'Account settings'. You will find a button to view your recovery phrase.

<figure><img src="/files/JgBk2uaZhaSQHTuqPl9I" 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://guides.getalby.com/user-guide/browser-extension/features/master-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.
