# Setting up Self-Managed Connectors

## Overview

This tutorial will guide you through the process of running an example self managed connector end-to-end setup. Kindly complete the prerequisites before following this guide.

{% content-ref url="/pages/-MfdqmhMoJP6ITTt0LFt" %}
[Installing Prerequisites](/deploying-farmstack/installing-prerequisites.md)
{% endcontent-ref %}

## Setting up FarmStack connector

In the terminal window type the following command to run FarmStack setup:

```
python3 setup.py
```

After the setup is complete, in the browser window, open the installer frontend by typing <http://localhost:8000>.

## Running example connectors

Navigate to New Connector tab

Give the provider a unique name, for example, `Test Provider 1` and click `Next`

![](/files/-MdE0U8Powj5I51pA8S6)

Give the consumer a unique name, for example, `Test Consumer 1` and click `Next`

![](/files/-MdE0cYXfh2YiCqoD3b-)

Verify the details and start the connection by clicking `Set up Connection` button.

![](/files/-MdE0hXnO_DARA4zOIWA)

Depending on your system resources and internet speed this step could take anywhere from a few seconds to a few minutes. You can check the progress in the terminal window.

When the connector setup is complete, open the status tab and click `View transferred data` link to see your data.

![](/files/-MfeDJJ0ovWp8YNG2GOj)

Kindly wait a couple of minutes for the contract negotiation process of provider and consumer to complete before they can start sharing the data.&#x20;

After the negotiation, the provider will start streaming data to the consumer. Kindly refresh to see the data shared into the consumer application.

![](/files/-MfeDWo5Mi2goltFVkM6)

This completes the tutorial for Setting up a Managed connector with usage control example. If you face any issue while running the self managed connector, kindly open a new issue in the Github repository and our experts will guide you.


---

# 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.farmstack.co/deploying-farmstack/setting-up-self-managed-connectors.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.
