# How To Generate a Cluster Token for Don't Starve Together (/docs/dont-starve-together/generate-token)



import { Step, Steps } from 'fumadocs-ui/components/steps';

A cluster token is **required** for your Don't Starve Together server to run. Without it, the server will not start. The token links your server to your Klei account. Here is how to generate one.

<Steps>
  <Step>
    Log in to Your Klei Account [#log-in-to-your-klei-account]

    Go to the [Klei Account page](https://accounts.klei.com/account/info) and log in. If you do not have a Klei account, create one and link it to your Steam account.
  </Step>

  <Step>
    Navigate to the Game Servers Section [#navigate-to-the-game-servers-section]

    Once logged in, click on **Games** in the navigation menu, then select **Don't Starve Together** from your game list. Click on the **Game Servers** tab.
  </Step>

  <Step>
    Generate a New Token [#generate-a-new-token]

    Click **Add New Server**. Give it a friendly name (e.g., "My XGamingServer") so you can identify it later. Click **Generate** to create the token.
  </Step>

  <Step>
    Copy the Token [#copy-the-token]

    Copy the generated token string. It will look something like `pds-g^KU_xxxxxxxx^xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx`.
  </Step>

  <Step>
    Add the Token to Your Server [#add-the-token-to-your-server]

    Log in to the [XGamingServer Panel](https://panel.xgamingserver.com) and select your Don't Starve Together server. In the sidebar, click **Startup**. Find the **Cluster Token** field and paste your token.
  </Step>

  <Step>
    Restart Your Server [#restart-your-server]

    Go to **Console** and restart your server. It should now start successfully with the token.
  </Step>
</Steps>

> ⚠️ **Warning:** Do not share your cluster token with anyone. It is linked to your Klei account and could be used to impersonate your server.

> 📝 **Note:** If you regenerate or delete the token on the Klei website, your server will stop working until you update it with a new token.
