> ## Documentation Index
> Fetch the complete documentation index at: /docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Use Inlay in the terminal

> Install the Inlay terminal UI and work on a firmware project from a terminal or an SSH session.

Use the terminal UI when you work over SSH, on a headless lab machine, or prefer a terminal. A few editor features [still need the VS Code extension](#what-still-needs-vs-code).

## Install

> [tab] macOS and Linux
>
> ```bash theme={"theme":"css-variables"}
> curl -fsSL https://useinlay.app/install | bash
> ```

> [tab] Windows
>
> Run in PowerShell:
>
> ```powershell theme={"theme":"css-variables"}
> irm https://useinlay.app/install.ps1 | iex
> ```

> [tab] npm
>
> ```bash theme={"theme":"css-variables"}
> npm install --global @inlay/inlay
> ```

The install script ends with **Installation complete!** Open a new terminal so that `inlay` is on your `PATH`, then check the installation:

```bash theme={"theme":"css-variables"}
inlay --version
```

An installation from the install script updates itself in the background, and the new version starts the next time you run `inlay`. A global npm or bun installation does not update itself in the background. When a new version is available, Inlay shows the command to install it:

```bash theme={"theme":"css-variables"}
npm install -g @inlay/inlay@latest
# or, for a bun installation
bun add -g @inlay/inlay@latest
```

Running the install script removes an existing global npm installation.

### Update prompt

When your installation is 3 or more published releases behind, Inlay asks **Would you like to update?** at startup. The prompt shows the latest version, your current version, and how many releases behind you are.

* **Update now** installs the latest version with the method you used to install Inlay: the install script, npm, or bun. Inlay then restarts in the same terminal.
* **Not now** closes the prompt and continues with your current version.

If the update fails, Inlay shows the error and offers **Copy update command** so you can run the command yourself, then restart `inlay`. If Inlay can't detect how it was installed, the prompt offers **Copy update command** instead of **Update now**.

## Open a project

1. Go to your firmware project and start Inlay:

   ```bash theme={"theme":"css-variables"}
   cd /path/to/firmware
   inlay
   ```

2. Sign in. The **Sign In** screen shows a one-time code, and your browser opens the **Connect VS Code** page, which the terminal UI shares with the extension. Enter the code and select **Authorize VS Code**. If no browser opens, for example over SSH, open the link shown on the **Sign In** screen on any device and enter the code there.

3. If you belong to more than one team, choose one under **Select Team**.

4. Choose a project under **Select Project**, or select **+ Create new project**. For a new project, pick its platform under **Select Platform** and name the project under **Name Project**, or choose **Upload schematics** to start from your design. If your team has only one project, or you used this folder with a project before, Inlay selects it without asking.

5. Run `/init`. Inlay inspects the project, asks you to confirm how it builds, tests, flashes, and debugs, and then records that in [INLAY.md](/docs/core-concepts/inlay-md.md).

For a first question, a first change, and serial output from the board, continue with the Quickstart from [Ask a focused question](/docs/quickstart.md#ask-a-focused-question). Its steps work in the terminal UI.

## Work in the terminal

You can plan, edit, build, test, flash, debug, use MCP tools, and resume conversations from the terminal.

* Run `/serial` to open the serial sidebar for UART, RTT, ITM, or xSCOPE output.
* Run `/env` to choose where a new session runs: **Local** or a [bench](/docs/integrations/benches.md). Run `/bridge` to open the **Benches** manager. Without a bench, Inlay uses the boards and probes attached to this computer.
* Run `/new-tab` or press `Alt+T` to work on several chats at once. Run `/tabs` to switch between them.
* Run `/review-edits` to accept or reject Inlay's file edits per file or per change, and `/view-plan` to reopen the latest plan.
* Paste, drop, or pick files to attach them. Mention a schematic with `@sch:` or a line range with `@file:L10-20`. Click a mention to open its info card, then press `o` to open it.
* Links in the conversation are clickable. Web links open in your browser, and `file:` links open in `$EDITOR`.
* When Inlay plots serial or capture data, the plot appears under the tool row in the conversation. Terminals that support the kitty or sixel graphics protocols show high-resolution images. Other terminals show a braille plot. Plots stay in the conversation when you resume it. Press `Alt+M` to open the full **Plot** view in the Monitor.
* While the terminal is in the background, Inlay sends a desktop notification when it finishes a turn, needs an approval, or asks a question. Run `/notifications` to turn them off or on.

With the default approval mode, Inlay asks before it edits a file, runs a command that isn't on the read-only list, or uses hardware. Run `/approvals` to see what runs without asking, and see [Tool approvals](/docs/core-concepts/approvals.md) to change when it asks.

### Open the Monitor and schematic viewer in a browser

The terminal UI serves the Monitor and the schematic viewer in your browser:

* Run `/monitor` or press `Alt+M` to open the Monitor, with its serial, plot, capture, trace, power, and dashboard views. See [Monitor and debug](/docs/debug-mode/overview.md) for the guide to each tool.
* Run `/schematic-viewer [path]` to open the schematic, PCB, and 3D viewer. Add a KiCad file path relative to the project to open that design.

```text theme={"theme":"css-variables"}
/schematic-viewer hardware/board.kicad_pcb
```

The first time you open a browser view, Inlay downloads the files it needs. If the download fails, set `INLAY_WEB_ASSETS_DIR` to a local copy of the assets.

### Work over SSH

Over SSH, Inlay runs on the remote machine and uses the boards and probes attached to it. Chat, the `/serial` sidebar, edit review, and inline plots all work in the SSH session.

The browser views are the exception. `/monitor` and `/schematic-viewer` open a browser on the machine that runs Inlay, at a `127.0.0.1` address, so they don't appear on your workstation. Over SSH, use these instead:

* Run `/serial` to watch serial output.
* Ask Inlay to take the capture or measurement and report it. Plots of serial and capture data appear in the conversation.

### What still needs VS Code

These features are available only in the [VS Code extension](/docs/integrations/vscode-extension.md):

* Gutter and CodeLens actions in the editor.
* Hover cards in the editor.
* WYSIWYG plan editing. In the terminal, `/view-plan` lets you open the plan in `$EDITOR` instead.

## Useful controls

| Key or command | Action |
| - | - |
| `Enter` | Send the message. While Inlay is working, the message steers the current turn. |
| `Shift+Tab` | Cycle through the available modes. |
| `/` | Show command suggestions. |
| `@` | Select a file or directory to mention. |
| `Escape` | While Inlay is working, remove the latest queued prompt, or stop the turn when nothing is queued. |
| `Ctrl+C` | Same as `Escape` while Inlay is working. Otherwise, clear the input; press twice on an empty input to exit. |
| `!` | At the start of an empty input, switch to shell mode and run a command directly. |
| `~` | At the start of an empty input, switch to serial-send mode and send text to the connected serial port. |
| `/history` | Resume a previous conversation. |
| `Alt+T`, `Alt+W` | Open a new chat tab, or close the active one. |
| `Alt+N`, `Alt+P` | Switch to the next or previous chat tab. |
| `Alt+M` | Open the Monitor in your browser. |
| `/background` | View and manage background tasks. |
| `/theme`, `/keybindings` | Change the color theme or switch to Emacs or Vim bindings. |
| `/exit` | Close the terminal UI. |

Shell and serial-send modes run exactly what you type. Use an ordinary prompt when you want Inlay to choose the action and interpret the result. Serial-send mode needs a connected serial port.

See [Keyboard shortcuts](/docs/core-concepts/keyboard-shortcuts.md) and [Slash commands](/docs/core-concepts/slash-commands-reference.md) for the full lists.

## Run a saved hardware check

Run a script from the project's `.inlay/hardware/` folder:

```bash theme={"theme":"css-variables"}
inlay script boot_check.py --json
```

See [Hardware scripts](/docs/debug-mode/hardware-scripts.md) for writing scripts and capture profiles, and [CLI reference](/docs/headless/cli-reference.md#hardware-scripts) for every option.

## Automate repository work

Run `inlay start daemon` to handle GitHub and Slack tasks on this machine, and `inlay monitor` to follow them in the Daemon Monitor. See [Automation overview](/docs/headless/overview.md#set-up-automation) for the full setup, and [Operate the daemon](/docs/headless/daemon.md) for the daemon itself.

For equipment attached to another machine, use a [bench](/docs/integrations/benches.md).

See the [CLI reference](/docs/headless/cli-reference.md) for every command and option.

## Troubleshoot

| What you see | What to do |
| - | - |
| `inlay: command not found` after installing | Open a new terminal. On macOS and Linux, the install script puts `inlay` in `~/.inlay/bin` and adds that folder to your shell's `PATH`. |
| No browser opens at sign-in | Open the link shown on the **Sign In** screen on any device and enter the code there. |
| **Couldn't connect to the server** at sign-in | Check that a proxy or firewall isn't blocking Inlay. |
| **Failed to load platforms** when you create a project | Press `Esc`, check your connection, and select **+ Create new project** again. |
| **Protected Directory** at startup | You started Inlay in a system directory. Choose **Exit** and start it again from your project directory. |
| `Alt` shortcuts do nothing on macOS | `Alt` is the `Option` key. Set your terminal to send `Option` as Meta. |
| Startup A banner says your workspace **is out of shared credits** | Your workspace has used its shared credits. See [Startup plan](/docs/core-concepts/startup-plan.md). |

For a problem that persists, run `/bug` followed by what happened. See [Get help](/docs/core-concepts/get-help.md) for other ways to send logs and how to reach support.

## Use a self-hosted instance

If your organization runs its own Inlay instance, run `inlay connect <url>` to use it, or `inlay disconnect` to return to the hosted service. See [Connect to a self-hosted instance](/docs/headless/cli-reference.md#connect-to-a-self-hosted-instance).

## Continue

> [card] [Common workflows](/docs/core-concepts/common-workflows.md)
>
> Plan, build, test, flash, and verify a change.

> [card] [Flashing firmware](/docs/debug-mode/flashing.md)
>
> Program a local board or one on a bench.

> [card] [Serial transports](/docs/debug-mode/serial-transports.md)
>
> Read UART, RTT, ITM, and xSCOPE output.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.