> For the complete documentation index, see [llms.txt](https://guides.getalby.com/user-guide/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://guides.getalby.com/user-guide/browser-extension/features/master-key.md).

# 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
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://guides.getalby.com/user-guide/browser-extension/features/master-key.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
