> 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="https://3493680727-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FiXQV5vKQhxotviCfaO7L%2Fuploads%2F6FdlD6sSrJ57HhaPnuYR%2F9XnYl1se87.png?alt=media&amp;token=2c87546f-d86f-4f7b-986c-12b0616fdf6a" alt=""><figcaption></figcaption></figure>

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

<figure><img src="https://content.gitbook.com/content/iXQV5vKQhxotviCfaO7L/blobs/eEmvh5PBOwAvpe31M782/VfdlrHrnyj.png" alt=""><figcaption></figcaption></figure>

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

<figure><img src="https://content.gitbook.com/content/iXQV5vKQhxotviCfaO7L/blobs/MRPg8BTE454SHWdbLtF8/tEwTM97MLG.png" 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="https://content.gitbook.com/content/iXQV5vKQhxotviCfaO7L/blobs/FRn75xTaaYVjRFNEWzd0/86meoFzIij.png" 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="https://content.gitbook.com/content/iXQV5vKQhxotviCfaO7L/blobs/uUCW7Yc9TDPYdQvJU1Yy/image.png" 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="https://content.gitbook.com/content/iXQV5vKQhxotviCfaO7L/blobs/GEoaWp3oTqwI1rwZkgdN/oEIbbwyOej.png" 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

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

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
