# First Time Setup

## Step 1

Click `Login With Plex` and follow the steps to log in.

![](/files/-MWprb453i_hq_2CUUhR)

## Step 2

After you log in with Plex you will need to specify your Petio specific admin credentials, by default it uses your Plex username and email but you still need to specify your own password.

![](/files/-MWprb46qEhH0I-CW4fW)

## Step 3

After setting up your credentials, you need to pick your Plex server.

![](/files/-MWprb47sUFzF9kK5oUp)

## Step 4

Once you select your server, you need to configure how Petio will connect to your database. You will either use the self-hosted MongoDB instructions or the remote hosted MongoDB database instructions for your OS.

![](/files/-MWprb48yeAtp8g6dX2S)

{% hint style="warning" %}

* If you are using the MongoDB Remotely option click on `mongo://` to switch it to `mongo+srv://` and copy the connection string from Atlas, without the `mongo+srv://` and `/test`.&#x20;
* Replace the `<password>` with your password. The syntax should be user:<password@cluster.mongodb.net>.
  * If your password contains any special characters you should encode it using [URLEncoder](https://www.urlencoder.org/).
    {% endhint %}

## Step 5

If you configured everything correctly, the last screen should look like this.

![](/files/-MWprb49WdpL-gAaBRIl)

## Step 6

Once the last step is finished, you will be presented with a login screen. Use your Plex username and the password you set up on Step 2. You can now get started with configuring Radarr, Sonarr and start requesting!


---

# 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.petio.tv/configuration/first-time-setup.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.
