# Setup LiquidOps on Voltage nodes (agent based - push)

In order to fully leverage the capabilities of LiquidOps with a Voltage node, it is essential to utilize our open source [agent](https://github.com/bolt-observer/agent). Since Voltage does not support direct installation of bolt.observer, the recommended approach is to install the agent on a separate server, which can seamlessly operate alongside a Voltage node.

### Recommended setup

In this tutorial, we will explain how to configure our open-source agent to work with a Voltage node. Refer to the chart below for a visual representation:

<figure><img src="https://1042602664-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FmGGbJoPTvKkAmLqqpdCK%2Fuploads%2FNHZNGUJpOThnWUf7keil%2Fimage.png?alt=media&#x26;token=a98e679e-5420-467b-9fc7-934ada91aff7" alt=""><figcaption><p>Agent and Lightning node running on separate machines </p></figcaption></figure>

Machine 1: Voltage node

Machine 2: a secondary server  where the agent can be installed&#x20;

For the agent installation, you can find more information in [agent-based-push](https://docs.bolt.observer/readme/liquidops/setup-liquidops/agent-based-push "mention") and in the [repository](https://github.com/bolt-observer/agent#install).

### Voltage setup

LiquidOps provides extensive automation capabilities for a wide array of operations, including connectivity, node status notifications, and liquidity management through [auto swaps](https://docs.bolt.observer/readme/liquidops/node-and-liquidity-automation). Liquidity management specifically requires on-chain and off-chain permissions, as well as access to addresses, invoices, and read/write permissions.

<figure><img src="https://1042602664-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FmGGbJoPTvKkAmLqqpdCK%2Fuploads%2Fk6IBuxC7rK1zee6FbC57%2FScreenshot16.png?alt=media&#x26;token=c9d7a2dd-ae70-44cc-aaa7-f7fa8e84e3a1" alt=""><figcaption></figcaption></figure>

After logging into your Voltage account, navigate your "**home**" page. Scroll down the page and download the **Admin macaroon** and the **TLS certificate** onto the machine where you plan to install the agent. In this case, it would be Machine 2, as mentioned in the previous instructions[#agent-setup](#agent-setup "mention").

### Agent installation

Install the agent by following the instructions under github [repository](https://github.com/bolt-observer/agent#install).

### Agent options

Ensure the following options are properly configured in the agent:&#x20;

#### Apikey

Log into your account on bolt.observer, and from your node page and click on "**Enroll in LiquidOps**"

<figure><img src="https://1042602664-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FmGGbJoPTvKkAmLqqpdCK%2Fuploads%2FVqbvIN3ptDat8FokzcsE%2FScreenshot12.png?alt=media&#x26;token=6c2877ee-1b41-4a40-a979-5baf3fd9fc98" alt=""><figcaption><p>LiquidOps setup with agent</p></figcaption></figure>

Generate an API key and copy its value.&#x20;

<figure><img src="https://1042602664-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FmGGbJoPTvKkAmLqqpdCK%2Fuploads%2F3TSfDQcaMT3PVE0pwV4H%2FScreenshot13.png?alt=media&#x26;token=7262bacd-90d8-4007-a6dc-6475b7bb6c01" alt=""><figcaption></figcaption></figure>

Add the API key as an option in your command line:

<figure><img src="https://1042602664-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FmGGbJoPTvKkAmLqqpdCK%2Fuploads%2FteACxKZnEtd6pO5G63oy%2FScreenshot14.png?alt=media&#x26;token=cf40fbc7-2537-4b9b-9bef-48e420c8c89e" alt=""><figcaption></figcaption></figure>

<pre><code><strong>--apikey a3fxxxxxxxxxxxxxxxxxxxxxxxxxx
</strong></code></pre>

#### Macaroon path

Specify the path to the admin macaroon file using the following option:

<pre><code><strong>--macaroonpath /some/path/to/file.macaroon
</strong></code></pre>

#### TLS Certificate path

Specify the path to the TLS certificate file using the following option:

```
--tlscertpath /some/path/to/tls.cert
```

#### RPC server

Set the RPC server address using the following option:

```
--rpcserver demo.m.voltageapp.io:10009
```

The complete command line with all options is shown below:

{% code overflow="wrap" %}

```
bolt-agent --apikey a3fxxxxxxxxxxx --macaroonpath /some/path/to/file.macaroon --tlscertpath /some/path/to/tls.cert --rpcserver demo.m.voltageapp.io:10009
```

{% endcode %}

<figure><img src="https://1042602664-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FmGGbJoPTvKkAmLqqpdCK%2Fuploads%2FoS238dR2uEjJ0gDhWuzl%2FScreenshot17.png?alt=media&#x26;token=68c8a626-1dfa-41eb-81f8-5e3eea269844" alt=""><figcaption><p>Command line agent configuration</p></figcaption></figure>

For additional options&#x20;

### Verification

Once the bolt-agent is running correctly, refresh your node page, and you should see "LiquidOps enabled" and the data source displayed in the top right corner of the page.

<figure><img src="https://1042602664-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FmGGbJoPTvKkAmLqqpdCK%2Fuploads%2FqoX9fnppcnOyvyUjpOov%2FScreenshot15.png?alt=media&#x26;token=616ed5bd-7d61-4cbb-8a48-4d6127d948e0" alt=""><figcaption></figcaption></figure>

From this point, you can [create-a-workflow-with-auto-swaps](https://docs.bolt.observer/readme/guides/create-a-workflow-with-auto-swaps "mention") and starts enjoying the benefits of LiquidOps.
