---
title: AI SDK TUI
description: "Reference documentation for @ai-sdk/tui"
url: "https://ai-sdk.dev/docs/reference/ai-sdk-tui"
docs_index: /llms.txt
---

> For an index of all documentation, see [/llms.txt](/llms.txt).

[`@ai-sdk/tui`](/docs/agents/terminal-ui) provides a terminal UI for running
AI SDK agents locally. It is designed for `ToolLoopAgent` instances that can run
from free-form terminal input.

#### [runAgentTUI](/docs/reference/ai-sdk-tui/run-agent-tui)

Run a ToolLoopAgent in an interactive terminal interface.

---

For a semantic overview of all documentation, see [/sitemap.md](/sitemap.md)

For an index of all available documentation, see [/llms.txt](/llms.txt)

For agent-facing discovery, including API and MCP surfaces, see [/agents.md](/agents.md)