# Password Recovery

To recover the password on a 3rd party device, write your new password to a file called `password.txt` in the Clarity Gateway data directory:

`echo "<NEW PASSWORD>" | sudo tee <CLARITY GATEWAY DATA DIRECTORY>/password.txt`

For example, if your password is `MyNewPassword` and your Clarity Gateway data directory is `/mnt/data/clarity-gateway`, you would run:

`echo "MyNewPassword" | sudo tee /mnt/data/clarity-gateway/password.txt`

Restart Clarity Gateway to make the change effective:

`docker restart clarity-gateway`

After Clarity Gateway changes the password, it will delete the password.txt file from its data directory so that future restarts don't unintentionally overwrite the password.


---

# 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://docs.jcore.io/clarity-gateway/other/password-recovery-on-3rd-party-devices.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.
