# Architecture

Cloak is anonymous by design. No one is spying on your interaction with the AI and no one is preventing you from using the AI.

You have 3 choices when it comes to history storage:\
\
1\) **No storage:** Close the browser window, and your interaction with the AI is lost forever. Nothing is stored anywhere.\
2\) **Local storage only**: Your chat history is stored encrypted on the current device/browser you are using. You need your wallet to decrypt the chat history. If you use Cloak from another machine or browser, there is no chat history.\
3\) **Cloud history:** All your history is stored in the cloud encrypted. When you login to use Cloak, it is downloaded to your local device for usage. Your encrypted history is synced with the cloud. ***No unencrypted history is stored on the cloud.*** If you go to a new device or browser, you can access your history.

The choice of history mode is entirely up to you.

<figure><img src="/files/1VnCNLEneJEMVuERDhX6" 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://cloak-2.gitbook.io/cloak-docs/features/architecture.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.
