> For the complete documentation index, see [llms.txt](https://docs.jcore.io/clarity-gateway/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.jcore.io/clarity-gateway/other/password-recovery-on-3rd-party-devices.md).

# 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.
