> For the complete documentation index, see [llms.txt](https://docs.origami.tech/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.origami.tech/terminal/bots-and-variables.md). Agents can also search and read this documentation through its [MCP server](https://docs.origami.tech/~gitbook/mcp).

# Bots and Variables widgets

Control bots and edit global variables without leaving the Terminal — the Bots widget, floating bot windows and the Variables widget.

Two widgets bring automation into the Terminal: **Bots** lists every bot in the project with start/stop controls, **Variables** edits the global variables that grids read.

## Bots

![Bots tab of the portfolio widget: Bot, Type, Account, Exchange, Symbol, Status columns with Add Bot, Start selected bots and Bulk actions](https://602593284-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDjboTEEPFNxFhKJ6msZi%2Fuploads%2F8PC0VYmSc1WIKhdKbNa8%2Fterminal-bots-01.png?alt=media)

| Column                                | Meaning                                                                  |
| ------------------------------------- | ------------------------------------------------------------------------ |
| **Bot**                               | Bot name.                                                                |
| **Type**                              | Spot grid, Futures grid or Lua bot.                                      |
| **Account**, **Exchange**, **Symbol** | Where the bot trades.                                                    |
| **Status**                            | `Active` or `Stopped`; `Pending` while a start or stop is being applied. |

### Actions

* **Play / pause** icon — start or stop the bot. Stopping a grid bot cancels its open orders; see [Bot lifecycle](https://docs.origami.tech/bots/lifecycle.md).
* **Pencil** icon — open the bot in a floating window above the grid to edit its grids, presets and settings. Several bots can be open as tabs of one floating window; right-click a tab for **Close**, **Close others**, **Close tabs to the right**, **All tabs**.
* Row menu — **Edit Bot**, **Error Log** (recent rejected orders and formula errors for grid bots), **Delete Bot**.
* **Add Bot** in the gear menu creates a new bot for the group's symbol and account.

### Filters

**Current Account** limits the list to the group's account; **Aggregate by Account** groups rows by account. Empty state: **No bots found**.

## Variables

Global variables are named values shared by every grid in the project. Grids read them as `globals.<name>`, so changing the value here changes all bots that use it at once. See [Global variables](https://docs.origami.tech/bots/global-variables.md).

> Global variables apply to the entire project, updating all linked bots and grids for consistency and easier management.

| Column    | Meaning                         |
| --------- | ------------------------------- |
| **Name**  | Variable name used in formulas. |
| **Value** | Number or formula text.         |

### Edit variables

* Click **Add**, type **Name** and **Value**, click **Apply**.
* Click the pencil in a row to edit in place; **Apply** saves, **Cancel** discards.
* Click the trash icon to delete. The confirmation reads *Are you sure you want to delete the {name}? This action cannot be undone.*

Changes take effect on the next grid recalculation.

{% hint style="warning" %}
Deleting a variable that a grid still references makes that grid fail on its next cycle. Check the bot's **Error Log** after removing variables.
{% endhint %}

## Related

* [Bots overview](https://docs.origami.tech/bots/overview.md)
* [Global variables](https://docs.origami.tech/bots/global-variables.md)
* [Bot lifecycle](https://docs.origami.tech/bots/lifecycle.md)
