# Remote Extension Tasks

{% hint style="danger" %}
*We have implemented protection (using your password) to avoid any kind of third party but we cannot 100% guarantee that it is safe.*&#x20;

\
*The following guide will make your bot api public to the internet and someone with your password might be able to perform things you can do with extension (buy,sell etc.).*

*Although we tried our best for your protection, run at your own risk*
{% endhint %}

## 1. On Your Server

* First of all go ahead and signup on [ngrok](https://ngrok.com/)
* Then download ngrok on your **server** (where bot is running) [here](https://download.ngrok.com/downloads/windows?tab=download)
* Unzip the file and then double click on it. It will open command promt window
* Copy your auth token from [here](https://dashboard.ngrok.com/get-started/your-authtoken)
* type in `ngrok config add-authtoken $YOUR_AUTHTOKEN` then replace `$YOUR_AUTHTOKEN` with the auth token you copied and press enter
* then type in `ngrok http 9192`. This command will make the bot api where extension communicates public
* On your console you will see bunch of stats which includes forwarding. Copy the url which starts with `https://` and ends with `-ngrok-free.app`

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

## 2. On Your Local Device

* Make sure the extension is setup and up to date
* Click on the extension and paste the url you copied from your server to the field which says `Host (optional)`&#x20;
* Now type in your **bot password** in the extension and press enter
* Select tasks on the extension then go to one of the websites we support to start trading

<figure><img src="/files/94JwokhwPEtZ2mh5oBzO" alt=""><figcaption></figcaption></figure>

{% hint style="warning" %}
You should not close the console where ngrok is running.&#x20;

If you do, you need to double click the ngrok.exe and then type in `ngrok http 9192` again. You won't be able to access extension from local otherwise
{% endhint %}


---

# 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://guide.lunar.trade/extension/remote-extension-tasks.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.
