# Auth

After you have downloaded the latest release the first thing to do is to fill out the auth.json file.&#x20;

## Manual Method

Open auth.json in a text editor of your choice, the default windows notepad is sufficient enough, when you open auth.json for the first time you should see something like this:

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

Next, log into Onlyfans and press F12 to open the dev tools and select the 'Network' tab.

In the filter box type \`api\` and open any page on Onlyfans e.g Messages, you should see some requests appear in the list on the right within the Network tab:

<figure><img src="/files/3jxDIFsb5NlBQWjnuNOu" alt=""><figcaption></figcaption></figure>

Click on one of the requests you see in the list and scroll down until you find the 'Request Headers' section.

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

You should be able to find the 3 fields we need, `Cookie`, `User-Agent` and `x-bc`.

Within `Cookie` you will find 2 bits of information that we need to copy, these being `sess` and `auth_id`.

So heading back to your text editor:

The value of `USER_ID` will be set to what `auth_id` is set to.

The value of `USER_AGENT` will be set to what the `User-Agent` is set to in the Request Headers.

The value of `X_BC` will be set to what the `X-Bc` is set to in the Request Headers.

The value of `COOKIE` will be set to `auth_id=YOUR AUTH_ID HERE; sess=YOUR SESS HERE;`, please make sure you copy the values from within the `Cookie` field found in the Request Headers section.

If you have done everything correct you should end up with something like this (this is all dummy info):

```json
{
  "USER_ID": "123456",
  "USER_AGENT": "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:121.0) Gecko/20100101 Firefox/121.0",
  "X_BC": "2a9b28a68e7c03a9f0d3b98c28d70e8105e1f1df",
  "COOKIE": "auth_id=123456; sess=k3s9tnzdc8vt2h47ljxpmwqy5r;"
}
```

## Browser Extension

You can also use this browser extension which you can add to Chrome and Firefox <https://github.com/whimsical-c4lic0/OF-DL-Auth-Helper/> to help get the required info instead of using the dev tools.

Finally you need to add the path to ffmpeg.exe which you should of downloaded earlier. I would recommend copying ffmpeg somewhere safe where you can then add the path to the `config.json` file. You can do this easily by holding `shift` when right clicking on the .exe file which should give you the option to `copy as path`, this will include `\` so you will need to replace them with `/`. In the config.json file the lines should look something like this `"`FFmpegPath`": "C:/ffmpeg.exe"`


---

# 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://of-dl.gitbook.io/of-dl/auth.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.
