In short.
Build Your Own Agent TUI is a guide for developers building a custom terminal AI assistant, but its documented defaults enable file changes and shell commands while leaving tool approval off. The create-agent-tui skill generates a TypeScript application around @openrouter/agent, which manages model calls and tool execution. The guide covers interface customization, optional harness modules and CLI or HTTP entry points. It lists Node.js 18+ and an OpenRouter API key as prerequisites. Prices, licensing and generated-code reliability are not established by the page; runtime behavior and production readiness are not assessed.
Researched and written by an AI model and checked by a second AI model. How it works
Covers the complete captured documentation page at [https://openrouter.ai/docs/cookbook/building-agents/create-agent-harness-tui.md], including installation routes, prerequisites, SDK responsibilities, visual options, project structure, default and optional features, entry points, examples and the headless-agent notice. Linked pages, the documentation index, repository contents, package contents and image assets are excluded. Installation success, generated-code behavior, costs, licensing, compatibility and production readiness are not independently established; no installation or execution results are available.
The overview
Resource identity
This is OpenRouter’s documentation guide for using create-agent-tui, a skill that an AI coding assistant loads to scaffold an agent application. A terminal user interface, or TUI, lets someone interact with that application through a terminal window. The selected resource is the guide, rather than the linked skill implementation or SDK.
The original page is [https://openrouter.ai/docs/cookbook/building-agents/create-agent-harness-tui.md]. It describes generated TypeScript projects targeting OpenRouter and using @openrouter/agent for the agent loop.
Practical assessment
The guide offers a concrete starting point when a developer needs custom tools, terminal presentation or control over an agent’s execution. Its strongest decision aid is the explicit list of default and optional features: readers can see which capabilities a scaffold includes before choosing them.
The main tradeoff is responsibility for the generated application. File writing, editing and shell execution are selected by default, while the approval module is optional and off. The page does not establish the quality of the generated implementations or the effectiveness of any approval configuration.
Who it suits
It suits developers building assistants for their own APIs, databases or domain-specific systems, teams wanting a tailored terminal interface, and learners who want to understand model calls and tool execution. Experienced developers also get a map of extension points for stop conditions, shared state and alternate entry points.
Beginners should expect to work with a Node.js project, an API key and generated source code. The page itself suggests that people already satisfied with Claude Code, Codex CLI or Cursor may have little reason to build another terminal assistant.
Documented capabilities
The scaffold offers grouped, emoji, minimal or hidden tool displays; block, bordered or plain input; selectable loading animations; and an optional ASCII banner. Developers can request custom styles and override documented display settings at launch.
Default tools cover file reading, writing and editing, file discovery, content search, directory listing and shell commands. OpenRouter web search and datetime server tools are also selected by default. Optional additions include image generation, a persistent JavaScript environment, child agents and structured user questions.
Session persistence and the /model, /new and /help commands are enabled by default. Context compaction, approval gates, structured event logging and several other modules require selection. The guide also describes generating an HTTP server with server-sent event streaming, or both CLI and server entry points.
Using it
Requirements
The stated prerequisites are Node.js 18+ and an OpenRouter API key. The workflow also assumes access to an AI coding assistant that can use the skill. The GitHub CLI installation route requires version 2.90.0 or later; separate installation routes are shown for Claude Code and Cursor.
The example project lists @openrouter/agent, Zod and tsx as dependencies, with strict TypeScript configuration targeting ES2022 and Node16 module settings. Dependency versions, operating-system support, hardware requirements and a tested terminal compatibility matrix are not supplied.
How it works
The skill gives the coding assistant a checklist of tools, modules, visual styles and commands. The assistant then generates the application. The described layout separates configuration, the agent runner, terminal interaction, rendering, session storage and tool implementations.
@openrouter/agent handles the repeated cycle of calling a model, executing requested tools and calling the model again until a stop condition fires. Tools use tool() with Zod schemas for input validation and an execute function for implementation. Documented stopping options include stepCountIs(n), maxCost(amount), hasToolCall(name) and custom functions.
The SDK exposes text and tool-call streams, input/output token usage and typed shared state through sharedContextSchema. Session storage is described as an append-only JSONL conversation log.
Setup described by the guide
The GitHub CLI installation command is gh skill install OpenRouterTeam/skills create-agent-tui. For Claude Code, the page gives /plugin marketplace add OpenRouterTeam/skills followed by /plugin install openrouter@openrouter. Cursor users are directed to add OpenRouterTeam/skills through its remote GitHub rule settings.
After installation, the user asks the coding assistant to build an agent TUI and chooses the scaffold options. The generated layout includes .env.example with OPENROUTER_API_KEY. The launch instructions show setting that environment variable and running npm start.
These are the page’s documented steps. Successful installation, dependency resolution and startup are not established by the supplied evidence.
Examples
The launch example is npm start -- --banner "Acme Bot" --model '~anthropic/claude-sonnet-latest' --input bordered --tool-display emoji. It illustrates changing the banner, model selection, input appearance and tool display through command-line flags.
The page also presents an illustrated GitHub trending-repository viewer that it says was scaffolded from a single prompt. It does not provide the complete prompt, generated project, execution logs or reproducibility results for that demonstration.
Assessment & evidence
Limitations and unknowns
The page describes intended behavior without supplying the skill’s implementation or a generated application for inspection. Error recovery, tool isolation, permission enforcement, model compatibility and generated-code quality remain unassessed.
Tool approval, context compaction and structured event logging are off by default. Conversation persistence is on, but the page does not explain log locations, retention controls, encryption or redaction. These omissions matter when deciding what files and conversations an agent should handle.
The claimed terminal adaptation and display compatibility are not supported by a compatibility matrix. Performance, accessibility, concurrency and production deployment behavior are also not established.
Design tradeoffs
The described architecture places model/tool cycling in @openrouter/agent and application behavior in generated TypeScript files. This suggests a useful balance for developers who want SDK support while retaining control over tools, configuration and presentation. The amount of development time saved is unknown.
Customization creates additional code and configuration to understand. A minimal scaffold may be easier to review, while optional modules add capabilities such as approvals, compaction and logging. These are architectural implications of the documented options, rather than measured outcomes.
Alternatives mentioned
The page names Claude Code, Codex CLI and Cursor as existing terminal-agent options for users whose needs are already met. It supplies no comparative pricing, performance or feature evaluation.
For scripts, pipelines or API servers, it points to a separate headless-agent guide [https://openrouter.ai/docs/cookbook/building-agents/create-headless-agent.md]. It also links the underlying SDK package [https://www.npmjs.com/package/@openrouter/agent]. Those linked resources are not assessed here.
Evidence and its limits
The evidence is the complete OpenRouter documentation page at [https://openrouter.ai/docs/cookbook/building-agents/create-agent-harness-tui.md], captured on 23 November 2026 at 12:50:53.164 UTC. It contains installation instructions, a project layout, feature tables, examples and image references.
This supports an account of the documented workflow and defaults. It does not supply independent execution results, benchmark data or implementation-level verification. The linked skill repository, npm package and image files are not separately supplied evidence.
Access & freshness
Costs and budgeting
Costs are unknown. The page supplies no prices for the skill, model requests, server tools or the coding assistant used to generate the project. Requiring an API key does not establish a particular subscription or usage price.
The SDK documentation summarized here includes maxCost(amount) and response usage containing input/output token counts. The page does not explain the budget amount’s units, enforcement timing, possible overshoot or treatment of server-tool charges. These controls do not establish an end-to-end spending guarantee.
Licensing and reuse
The selected page does not state licensing terms for the documentation, skill, generated application or dependencies. Reuse, modification and redistribution rights are therefore unknown from this evidence.
The linked repository and package may contain relevant terms, but their contents are outside the selected page. Public availability and installation instructions alone do not establish redistribution permission.
Version and freshness limits
The capture is dated 23 November 2026, but the page gives no publication date, update date, skill release, repository commit or @openrouter/agent version. The capture date does not establish when the implementation last changed.
Node.js 18+ and GitHub CLI 2.90.0+ are documented minimum requirements. The launch example names ~anthropic/claude-sonnet-latest without identifying a fixed model release. Current compatibility, model availability and prices are unknown.
Suggested next steps
First identify the custom tool or interface requirement that justifies maintaining your own agent. For an initial scaffold, select only the required tools and consider enabling the approval module before allowing file changes or shell commands.
Before relying on a generated application, inspect the actual skill and generated code, confirm dependency versions and licensing, establish model and server-tool charges, and decide how session logs should be stored. The skill is linked at [https://github.com/OpenRouterTeam/skills/tree/main/skills/create-agent-tui]. Installation, approval behavior and budget controls still need verification in the intended environment.
