---
title: Access tokens
project: OpenSync
version: 1.0
section: guides
language: en
license: MIT
url: https://totaljs.es/docs/opensync/1-0/guides/access-tokens/
updated: 2026-11-19T09:22:07.357Z
---

# Access tokens

> Create, edit, copy and remove the tokens your apps use to connect.

Every client that connects to OpenSync needs a token. Create one **access token** for each app, so you can see who is connected and remove one app without touching the others.

![The Access tokens list with two tokens](/files/JapjQk37l60f.webp)

## Create a token

1. On the **Setup** page, click **Add** next to **Access tokens**.
2. In **Name**, type the name of the app, for example `Demo app`.
3. Leave **Allow to use only these channels** empty to receive every channel, or add channels. See [Limit a token to channels](../token-channels/).
4. Click **SUBMIT**.
5. Click **APPLY** at the bottom of the page.

The token is saved only when you click **APPLY**. OpenSync creates the token value for you.

![The Create token form with the name and one channel](/files/JapjQm38l61f.webp)

## Copy a token

Click the **...** button of a token:

- **Copy URL address** copies the address a client connects to, with the token: `https://sync.example.com/?token=…`.
- **Show token** shows the token in the list.
- **Copy token** copies only the token.

![The options menu of an access token](/files/JapjQn39l60f.webp)

Use the token in the `token` query argument of the [WebSocket](../../reference/websocket/) or [Server-Sent Events](../../reference/server-sent-events/) address.

## Edit a token

Click a token, or choose **Edit** in its **...** menu. Change the name or the channels, click **SUBMIT** and then **APPLY**. Connected clients get the new channels at once; they do not need to reconnect.

## Remove a token

Choose **Remove** in the **...** menu and click **APPLY**. Clients connected with that token are disconnected at once (WebSocket close code `4001`), and the token cannot connect again.
