---
hide:
- tags
tags:
- plex-token
- token
---
# Plex Auth Token
Here is a way of obtaining a Plex Access Token for your Plex account.
## Saltbox Role
You will need your Plex credentials filled in `~/saltbox/accounts.yml`. If you already do, skip steps 2-4.
1. Go to the Saltbox folder:
```shell
cd ~/saltbox/
```
2. Open the file for editing:
```shell
nano accounts.yml
```
3. Fill in your Plex credentials:
```yaml
plex:
user:
pass:
```
4. Save and exit: Ctrl + X Y Enter.
5. Run the following command:
```shell
sb install plex-auth-token
```
6. You will be shown your Plex Access Token in the log:
```shell
TASK [plex_auth_token : Display Plex Auth Token]
***********************************************************************************
Tuesday 29 January 2019 21:08:33 +0100 (0:00:00.104) 0:00:13.905 *******
ok: [localhost] => {
"msg": "Your Plex Auth Token is: XXXXXXXXXXXXXXXX"
}
```