AIToday
Large Language ModelsAI Coding AssistantsOpen-Source AIHacker NewsPublished: Jul 27, 2026, 01:01 JST

Terminai: transparent terminal wrapper for on-demand AI

Terminai: transparent terminal wrapper for on-demand AI

3 Key Points

  1. What happened

    A developer released Terminai, an open-source terminal wrapper that overlays an AI agent (Codex, Claude Code, OpenCode, or custom) accessible via Ctrl+Space while preserving normal shell use. The tool is in alpha, available for macOS and Linux via Homebrew or GitHub, and handles authentication and model selection through the agent's own CLI rather than managing keys itself.

  2. Why it matters

    The wrapper isolates AI interaction from the primary shell interface and gates all suggested commands through user approval before they reach the terminal, reducing the risk of unintended execution. It uses a local MCP server to give agents read-only access to visible terminal content and session context (working directory, shell type, dimensions) while filtering sensitive data—a design that delegates model behavior and credentials to the agent, not the wrapper itself.

  3. What to watch

    The tool is marked alpha and the developer recommends keeping a fallback shell profile. Configuration is stored in YAML ($XDG_CONFIG_HOME/terminai/terminai.yaml on macOS/Linux), approval mode can be set to always-ask or auto-approval, and the chat overlay position and height are adjustable. Code is available at emosenkis/terminai on GitHub under the MIT License.

Not sure about something? Ask the AI

Questions and answers are published on this page.

Summaries like this, in your inbox every morning.

Context & Analysis

Terminai addresses a usability gap in terminal-based AI workflows: existing agent CLIs (like Codex or Claude Code) run standalone, breaking the user's shell context and requiring context-switching between tools. By wrapping the shell in a PTY and rendering it with VT100 emulation, Terminai keeps the shell as the primary interface while the AI agent runs in a parallel overlay, accessible on demand. The separation is not merely cosmetic—it enforces a deliberate approval boundary. Every AI suggestion must pass through user review before it touches the actual shell PTY, which materially reduces the risk that a misaligned or misbehaving agent corrupts the user's environment.

The security model is intentionally narrow: Terminai itself is stateless and untrusted. It does not authenticate with any AI provider, does not manage credentials, and does not make model requests. Instead, it delegates authentication, model selection, and conversation state to the agent CLI—Codex, Claude Code, or a custom command—which owns those responsibilities. The bridge between the wrapper and the agent is a local MCP server that exposes a small, read-only surface: terminal reads (filtered for sensitive data), session context (cwd, shell type, OS), and an input suggestion queue. This design means Terminai's attack surface is confined to local PTY manipulation and filtering logic, not API or model behavior.

FAQ
Which AI agents does Terminai support?
Terminai has built-in presets for Codex, Claude Code, and OpenCode, and supports custom agents that can opt into MCP (Model Context Protocol) and/or the tool CLI.
How does Terminai prevent accidental command execution?
Suggested input is queued for the user to review and approve (or deny) before it reaches the wrapped shell; approval mode defaults to always-ask and suggestions are classified as safe, caution, or dangerous to assist user review.
Does Terminai upload terminal data or hold API credentials?
No. Terminai does not implement a model client, choose a provider, or hold model API keys; the selected agent CLI owns credentials and network access. Terminal contents passed through MCP are filtered with configurable pattern-based privacy rules, but filtering is best-effort, not a guarantee.

AI news that matters for your work, delivered every morning.

Pick your industry and the AI tools you use, and get news related to your work every day.

Free · 30 seconds with Google · unsubscribe anytimeWhat is AIToday? →

Ask AI

Ask AI anything about this article. The AI reads this article, earlier AIToday articles, and Wikipedia, and cites its sources. Q&As are published on this page for other readers too.

Questions and answers are published on this page.

Related Articles

Next articleSalesforce edges ServiceNow as cheaper AI play despite slower growth