# Reinstall While Keeping Token

**Method One (Preferred)**

The token file is located at /opt/clore-hosting/client/auth. For convenient copying, you can use a program with a file manager, such as Snowflake:

<figure><img src="/files/4R3odz4Lb4jLEOxwGorK" alt=""><figcaption></figcaption></figure>

1. Ensure that your computer and the server are on the same local network.
2. Drag the auth file onto your computer or a flash drive.
3. Reinstall Hive OS with the command:

   ```
   hive-replace -y --stable
   ```
4. Follow the installation instructions, and instead of using the command:

   ```
   /opt/clore-hosting/clore.sh --init-token <token>
   ```

   simply return the auth file back to the`/opt/clore-hosting/client/`directory
5. Reboot the server:

   ```
   reboot
   ```

**Method Two**

1. Connect to the server via SSH or open Hive Shell and run the command:

   ```
   mcedit /opt/clore-hosting/client/auth
   ```

   The auth file will open in a text editor. Copy its contents and save it on your computer, for example, in a text editor.

<figure><img src="/files/EdNtCENzb8HNbXdHtwv0" alt=""><figcaption></figcaption></figure>

2. Press F10 to exit the editor.
3. Reinstall Hive OS with the command:

   ```
   hive-replace -y --stable
   ```
4. After completing the installation, run the following commands in sequence:

   ```
   cd /opt/clore-hosting/client/
   touch auth
   mcedit auth
   ```

   A blank auth file will open in the text editor. Paste the previously saved content of the old file.
5. Press F2 to save and F10 to exit.
6. Reboot the server:

   ```
   reboot
   ```


---

# 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.clore.ai/for-hosts/server-offline-on-clore.ai/how-to-reinstall-while-keeping-the-old-token.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.
