> For the complete documentation index, see [llms.txt](https://docs.coti.io/coti-documentation/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.coti.io/coti-documentation/build-on-coti/tools/coti-metamask-snap.md).

# COTI MetaMask Snap

Powered by MetaMask Snaps. MetaMask® is a trademark of ConsenSys.

The COTI MetaMask Snap allows users to onboard their COTI accounts, add/decrypt on-chain tokens and NFTs , and interact with COTI dApps.

<figure><img src="https://2557786554-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FeC83qbrBhITO4kE7kTNB%2Fuploads%2Fgit-blob-94503b70cb1ea56fcd74ac3d9c7bec1446baec03%2Fimage.png?alt=media" alt="" width="361"><figcaption><p>Coti Snap running inside MetaMask</p></figcaption></figure>

### Getting Started

#### 1. Install the Snap

As a user, you can start by installing the snap here:

[**COTI Snap**](https://snaps.metamask.io/snap/npm/coti-io/coti-snap/)

Simply click the "**Add to MetaMask**" button on the upper right hand side of the screen and follow the prompts in your MetaMask wallet.

Once you click the "**Connect**" button, the prompt will go over the necessary permissions:

<figure><img src="https://2557786554-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FeC83qbrBhITO4kE7kTNB%2Fuploads%2Fgit-blob-0522024d18b54f6531fdd3e5c306e7068e741d16%2Fimage.png?alt=media" alt="" width="360"><figcaption><p>COTI snap installation screen</p></figcaption></figure>

The snap will request permissions stated in the details of the snap webpage.

Once the snap is installed, the MetaMask site will offer to continue to COTI's companion dApp website to get started with the snap.

<figure><img src="https://2557786554-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FeC83qbrBhITO4kE7kTNB%2Fuploads%2Fgit-blob-2595f13dca4c36131cdc037260de3ec27bd934a4%2Fimage.png?alt=media" alt=""><figcaption></figcaption></figure>

#### **2. Onboard Account (Retrieve AES Key)**

For a plain-language overview, see [What Is Onboarding?](/coti-documentation/build-on-coti/core-concepts/what-is-onboarding.md).

Once you are in the companion dApp site ([metamask.coti.io](https://metamask.coti.io)):

1. Click on the "**Connect Wallet**" button, follow the prompts on MetaMask.
2. You might be prompted to install the snap via the companion dApp. it is an attempt of the snap to connect to the metamask.coti.io dApp
3. Click on the "**Onboard**" button. The prompt will indicate the contract you are interacting with. Click the "**Onboard**" button. Follow the prompts on MetaMask.\
   \
   **NOTE**: Because the data from the onboarding operation is encrypted and MetaMask does not know how to decrypt this data, the "***Signature request***" screen in MetaMask will show illegible characters. This is normal.\
   \
   ![](https://2557786554-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FeC83qbrBhITO4kE7kTNB%2Fuploads%2Fgit-blob-f1a37261a8e9cebb6532f5312b52d7af257623d1%2Fimage.png?alt=media)\\
4. Once your account is onboarded, you will have to request Metamask to allow access to the security key:
   1. Click the "**Reveal**" button to view your AES key.
   2. Click the "**Delete**" button to delete your AES key.

{% hint style="info" %}
**NOTE**: Your AES key should be treated with the same sensitivity as your MetaMask private key. Users who can obtain this key will be able to decrypt sensitive data on the COTI network.
{% endhint %}

5. Click on Launch dApp and that will navigate to the token management so you could import any token that are private and interact with them (send/receive)


---

# 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://docs.coti.io/coti-documentation/build-on-coti/tools/coti-metamask-snap.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.
