> For the complete documentation index, see [llms.txt](https://docs.insilicoterminal.com/documentation/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.insilicoterminal.com/documentation/setup/setting-the-terminal-up-with-a-stream-deck.md).

# Setting the Terminal up with a Stream Deck

Use a Stream Deck to trigger Insilico Terminal CLI commands with one tap. This is useful for fast execution commands like buy, sell, reverse, close, stop orders, and custom position sizing.

### What you need

* Insilico Terminal open in your browser
* Elgato Stream Deck app installed
* A Stream Deck connected to your computer
* Terminal CLI module added to your Insilico layout

### 1. Add the CLI module in Insilico Terminal

Open Insilico Terminal and click the menu icon in the top-right corner of the terminal layout.

From the module list, add **CLI** to your layout.

The CLI is where you create keyboard shortcuts that can later be triggered from your Stream Deck.

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

### 2. Create CLI hotkeys

Explained [here](https://docs.insilicoterminal.com/documentation/~/revisions/GAOgdqS2yhnSR3ZSRJ6H/terminal-cli/shortcut-hotkeys).

### 3. Check your hotkeys

Once your commands are created, click **Hotkeys** in the top toolbar of Insilico Terminal.

You should see your newly created binds listed there.

If the hotkeys show up in Insilico, the terminal side is set up correctly.

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

### 4. Add the hotkeys to Stream Deck

Open the Stream Deck app.

On the right-hand side, go to:

```
System → Hotkey
```

Drag **Hotkey** onto an empty Stream Deck button.

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

Then configure the button:

* **Title:** The label you want to see on the button, for example `LONG 0.25 BTC`
* **Hotkey:** The same key combination you used in the CLI, for example `Shift + A`

Repeat this for every command you want on your Stream Deck.

### Example setup

CLI command:

```
bind shift+a "close 10%"
```

Stream Deck button:

```
Title: 10%
Hotkey: Shift + A
```

Pressing the Stream Deck button now sends `Shift + A`, which triggers the CLI command and closes 10% of the position.

### Suggested Stream Deck layout

Use this as a starter layout if you imported the default Insilico Stream Deck hotkey file. These binds use `Ctrl + Shift + key`, which tends to work more reliably than heavier modifier combinations on Mac.

| Button      |                                     Action | Hotkey             | Insilico command        |
| ----------- | -----------------------------------------: | ------------------ | ----------------------- |
| Buy         |       Market buy using selected order size | `Ctrl + Shift + B` | `buy $ordersize`        |
| Sell        |      Market sell using selected order size | `Ctrl + Shift + S` | `sell $ordersize`       |
| Chase Buy   |  Limit Chase buy using selected order size | `Ctrl + Shift + Q` | `chase buy $ordersize`  |
| Chase Sell  | Limit Chase sell using selected order size | `Ctrl + Shift + W` | `chase sell $ordersize` |
| Cancel      |                         Cancel open orders | `Ctrl + Shift + X` | `cancel`                |
| Close       |                     Close current position | `Ctrl + Shift + C` | `close`                 |
| Reverse     |                   Reverse current position | `Ctrl + Shift + V` | `reverse`               |
| Reduce Only |                         Toggle reduce-only | `Ctrl + Shift + R` | `ui order btn_reduce`   |
| Post Only   |                           Toggle post-only | `Ctrl + Shift + P` | `ui order btn_post`     |
| Nuke Orders |                          Cancel all orders | `Ctrl + Shift + N` | `nuke ord`              |
| Size -10%   |                 Decrease order size by 10% | `Ctrl + Shift + D` | `ui order size -10%`    |
| Size +10%   |                 Increase order size by 10% | `Ctrl + Shift + A` | `ui order size +10%`    |
| Size 10%    |                      Set order size to 10% | `Ctrl + Shift + J` | `ui order size 10%`     |
| Size 25%    |                      Set order size to 25% | `Ctrl + Shift + K` | `ui order size 25%`     |
| Size 50%    |                      Set order size to 50% | `Ctrl + Shift + L` | `ui order size 50%`     |

To add the hotkey layout to your Terminal, simply type `import`  into the CLI and select your json file.

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

{% file src="/files/DUApCapcUDSlB7fbYG1e" %}
Download Starter Hotkey Layout&#x20;
{% endfile %}

To add the Streamdeck Profile, go to Profiles -> Edit Profiles.. -> Import as shown on the image below.

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

{% file src="/files/0WANvE7vu6RE7lDJ1LGV" %}
Download Starter Streamdeck Profile
{% endfile %}
