# tui-use

> tui-use is a free MCP server for developer tools. Let AI agents drive vim, ssh, REPLs and other interactive terminal programs. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Free
- **Platforms:** CLI, macOS, Linux
- **Repository:** https://github.com/pavanmanishd/tui-use
- **MCP Registry name:** io.github.pavanmanishd/tui-use
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools), [desktop automation](https://ai-powered.com/categories/desktop-automation)
- **Listing updated:** 2026-11-23

## About

tui-use gives an agent a real terminal it can read and type into over many turns. That fixes the usual trouble with one-shot shell calls, where a prompt waits until timeout, a full-screen program prints escape codes and a REPL forgets its state.

Every call that changes something returns the screen as numbered text, with the cursor marked and highlighted text wrapped in guillemets. After the first screen, input returns only the rows that changed. Agents can send text, named keys such as esc, ctrl+c or f5, or an ordered input list, and wait until some text appears, disappears, matches a regex, goes idle or the program exits.

It needs Node.js 22 or newer on macOS or Linux, with WSL on Windows. A CLI offers the same operations to agents that only have a shell, using a background daemon to keep sessions alive.

## Features

- **Persistent terminal sessions:** Start a program once and keep interacting across turns.
- **Screen as text:** Numbered rows with a cursor marker and highlight marks.
- **Diff updates:** After the first screen, only changed rows are returned.
- **Flexible waiting:** Wait for text, a regex, text to vanish, idle time or exit.
- **Scrollback search:** Read output that scrolled off by range or search.
- **CLI and plugin:** A shell CLI and a Claude Code plugin offer the same operations.

## Good for

- Squash commits with git rebase -i from an agent
- Drive an ssh session or database shell
- Walk through an npm init or installer prompt
- Work in a REPL or debugger that keeps state

## Install

### Claude Code: Add with the CLI (Terminal)

```sh
claude mcp add tui-use -- npx -y @pavanmanishd/tui-use
```

Add --scope user to use it in every project, or --scope project to share it in .mcp.json.

### Claude Code: Or share it with your project (.mcp.json)

```json
{
  "mcpServers": {
    "tui-use": {
      "command": "npx",
      "args": [
        "-y",
        "@pavanmanishd/tui-use"
      ]
    }
  }
}
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "tui-use": {
      "command": "npx",
      "args": [
        "-y",
        "@pavanmanishd/tui-use"
      ]
    }
  }
}
```

Settings → Developer → Edit Config, then quit and reopen Claude Desktop.

### Cursor (~/.cursor/mcp.json)

```json
{
  "mcpServers": {
    "tui-use": {
      "command": "npx",
      "args": [
        "-y",
        "@pavanmanishd/tui-use"
      ]
    }
  }
}
```

Use .cursor/mcp.json in a project to share it with the project.

### VS Code (~/.copilot/mcp-config.json)

```json
{
  "mcpServers": {
    "tui-use": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@pavanmanishd/tui-use"
      ]
    }
  }
}
```

Or put the same entry in .mcp.json at your workspace root to share it.

### Codex: Add with the CLI (Terminal)

```sh
codex mcp add tui-use -- npx -y @pavanmanishd/tui-use
```

### Codex: Or add to config.toml (~/.codex/config.toml)

```toml
[mcp_servers.tui-use]
command = "npx"
args = ["-y", "@pavanmanishd/tui-use"]
```

### Gemini CLI and Antigravity: Gemini CLI (~/.gemini/settings.json)

```json
{
  "mcpServers": {
    "tui-use": {
      "command": "npx",
      "args": [
        "-y",
        "@pavanmanishd/tui-use"
      ]
    }
  }
}
```

Or run: gemini mcp add -s user tui-use npx -- -y @pavanmanishd/tui-use

### Gemini CLI and Antigravity: Antigravity (~/.gemini/config/mcp_config.json)

```json
{
  "mcpServers": {
    "tui-use": {
      "command": "npx",
      "args": [
        "-y",
        "@pavanmanishd/tui-use"
      ]
    }
  }
}
```

Use .agents/mcp_config.json to add it to one workspace only.

### Devin Desktop (~/.config/devin/mcp_config.json)

```json
{
  "mcpServers": {
    "tui-use": {
      "command": "npx",
      "args": [
        "-y",
        "@pavanmanishd/tui-use"
      ]
    }
  }
}
```

On Windows the file is %APPDATA%\\devin\\mcp_config.json. Use .devin/mcp_config.json to share it with a project.

### Cline (cline_mcp_settings.json)

```json
{
  "mcpServers": {
    "tui-use": {
      "command": "npx",
      "args": [
        "-y",
        "@pavanmanishd/tui-use"
      ]
    }
  }
}
```

Open it from the MCP Servers icon → Configure → Configure MCP Servers.

### Zed (Zed settings.json)

```json
{
  "context_servers": {
    "tui-use": {
      "command": "npx",
      "args": [
        "-y",
        "@pavanmanishd/tui-use"
      ]
    }
  }
}
```

Open it with zed: open settings file. Merge context_servers into the settings you already have.

### JetBrains AI Assistant and Junie: AI Assistant (Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add)

```json
{
  "mcpServers": {
    "tui-use": {
      "command": "npx",
      "args": [
        "-y",
        "@pavanmanishd/tui-use"
      ]
    }
  }
}
```

### JetBrains AI Assistant and Junie: Junie (~/.junie/mcp/mcp.json)

```json
{
  "mcpServers": {
    "tui-use": {
      "command": "npx",
      "args": [
        "-y",
        "@pavanmanishd/tui-use"
      ]
    }
  }
}
```

Use .junie/mcp/mcp.json to share it with a project.

### Kiro (~/.kiro/settings/mcp.json)

```json
{
  "mcpServers": {
    "tui-use": {
      "command": "npx",
      "args": [
        "-y",
        "@pavanmanishd/tui-use"
      ]
    }
  }
}
```

Use .kiro/settings/mcp.json to add it to one workspace only.

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "tui-use": {
      "command": "npx",
      "args": [
        "-y",
        "@pavanmanishd/tui-use"
      ]
    }
  }
}
```

## Tools

From the tool list in its README, going by the names, 2 of 6 tools change data; 4 names don't say. From the server's own tool labels and tool names; not verified by us.

- `tui_start` (name suggests: changes): Start a program and return its first screen
- `tui_send` (name suggests: changes): Send text and keys and return the new screen
- `tui_snapshot`: Return the screen without sending input
- `tui_wait`: Wait without sending input
- `tui_scrollback`: Read output that scrolled off screen
- `tui_manage`: List, kill or resize sessions, or get a recording path

## FAQ

### What are the requirements?

Node.js 22 or newer on macOS or Linux; Windows users run it under WSL.

### Which clients can use tui-use?

Claude Code, Codex, Cursor, Gemini CLI, OpenCode, Claude Desktop, or any agent with a shell.

### Does tui-use need compiling?

No. Prebuilt terminal binaries ship for x64 and arm64.

### Is tui-use free?

Yes. tui-use is free to use.

### How do I add tui-use to Claude Code?

Run this command in your terminal: claude mcp add tui-use -- npx -y @pavanmanishd/tui-use

### What are the best alternatives to tui-use?

The closest alternatives to tui-use are terminal-use, SmartCLI — drive terminal TUIs, shell-use, Smart Terminal and taria.

## Where this comes from

- Description: written from the project's README and its MCP Registry entry.
- Install steps: from the official MCP Registry entry.

## Alternatives

- [terminal-use](https://ai-powered.com/mcp/terminal-use): terminal-use is an open-source MCP server for developer tools.
- [SmartCLI — drive terminal TUIs](https://ai-powered.com/mcp/smartcli-drive-terminal-tuis): SmartCLI — drive terminal TUIs is an open-source MCP server for developer tools.
- [shell-use](https://ai-powered.com/mcp/shell-use): shell-use is an open-source MCP server for developer tools.
- [Smart Terminal](https://ai-powered.com/mcp/smart-terminal): Smart Terminal is an open-source MCP server for developer tools.
- [taria](https://ai-powered.com/mcp/taria): taria is an open-source MCP server for developer tools.
- [Terminal sessions for agents](https://ai-powered.com/mcp/terminal-sessions-for-agents): Terminal sessions for agents is an open-source MCP server for developer tools.
- [Interactive Terminal](https://ai-powered.com/mcp/interactive-terminal): Interactive Terminal is an open-source MCP server for developer tools.
- [Unterm](https://ai-powered.com/mcp/unterm): Unterm is an open-source MCP server for developer tools.

---
Source: https://ai-powered.com/mcp/tui-use
