The full upstream README, mirrored here for reference. Install config, tool schemas, adoption signals, and an original overview live on the Unterm listing page.
The terminal AI agents can drive.

Cross-platform terminal (macOS / Linux / Windows) built on Unterm's native
next-core terminal engine, with one design bet: the terminal itself is
controllable from the outside by any AI agent over MCP. Claude Code, Codex,
Gemini CLI, Cursor, Aider, your own scripts — they all get the same JSON-RPC
surface (149 authenticated methods plus auth.login) to spawn shells, run
commands, read pane state, capture screenshots, change settings, and record
sessions.
Since v0.68 the terminal is also something an orchestrator can govern rather than merely call: it publishes what it can do and how dangerous each capability is, works under leases that expire and cannot be replayed, keeps agents inside workspaces that cannot see each other, and can hand you an evidence bundle for a task that somebody who was not there can verify.
Since v0.55 the relationship runs both ways: agents drive the terminal from outside, and the terminal is an Agent Cockpit for the agents running inside it — live per-pane agent state, a waiting-first Inbox, fleets of N agents on one task in N isolated git worktrees, and a Review page to diff / merge / roll back what they produced.
The other 2026 terminals each pick a different side: Warp embeds AI inside a closed cloud (Oz), Ghostty stays out of your way and lets you bring your own tools, iTerm2 is Mac-only. Unterm picks the third side — terminal as MCP-controllable surface, deliberately keep AI generation out of the terminal, let external agents grip it through the API, and give the human one cockpit to run them all from.
Practical implications:
▼ menu holds quick actions and links out to the Web Settings page — configuration itself happens in the browser.unterm-cli lang set <code>.~/.unterm/instances/<name>.json. Agents that drive several windows at once enumerate that directory.The GUI and terminal runtime now use Unterm's native next-core engine. The
repository still carries selected upstream components and attribution where
they remain dependencies, but WezTerm mux/window state is no longer the
product kernel.
Run Claude Code, Codex, Gemini CLI, or Aider in any pane and Unterm sees them — no configuration, no wrapper. Five pillars, all local:
Ctrl+Shift+A) — every agent that's waiting for you in one queue, longest-waiting first. Enter jumps to the pane; one keystroke later you've answered its prompt.../<repo>.fleet/), one tab each. Same agent ×3 for throughput, or claude,codex,gemini for a bake-off.agent.status, cockpit.inbox, fleet.launch, review.merge… an orchestrating agent can run fleets and review diffs with no human in the chair.Full docs: unterm.app/docs/agent-cockpit.
Pre-built artifacts are published on GitHub Releases:
https://github.com/zhitongblog/unterm/releases
| Platform | Artifact |
|---|---|
| macOS | Unterm-macos-<version>.dmg (universal arm64+x86_64, signed + notarized) |
| Linux | unterm-<version>.deb or Unterm-<version>-x86_64.AppImage |
| Windows | Unterm-<version>-x64.msi or Unterm-windows-x64-<version>.zip |
Double-click Unterm-macos-<version>.dmg, then drag Unterm.app onto the
Applications shortcut. The DMG is signed with a Developer ID and Apple-
notarized, so Gatekeeper opens it on first launch without warnings.
Finder integration is bundled in the DMG. After the first launch, Finder's
right-click menu can show Open in Unterm for folders and files; if macOS
doesn't refresh the extension immediately, run Repair Finder Integration.app
from the DMG once.
Other distros — use the AppImage:
Run the MSI installer; it places unterm.exe in Program Files\Unterm and creates a Start Menu shortcut.
agent_session.*: what it said, what it asked to run, how it ended,
with your own task ids carried through untouched). It can lease a browser
from Unzoo and be leased from in turn — terminal.manifest publishes
what this terminal can do and how dangerous each family is, taken from the
same table the gateway refuses by. Approvals can finally be answered:
Settings shows what an agent is waiting on, with "allow once / for this
task / always". Workspaces are roots that cannot see each other, and a
shell that cds out stops being inside. The audit trail is hash-chained,
so an edit to it disagrees with the next line. unterm-cli provider | scope | artifact | evidence | system — 46 new MCP methods (149 total).force override), and retries failed members in their existing worktree without losing work — review.verify / fleet.retry over MCP + CLI. The sidebar gains repository-grouped navigation with always-on fuzzy search. Every logo surface moves to the new command-loop mark.Ctrl+Shift+A), fleets running one task across N agents in N isolated worktrees, and a Review page with checkpoints, diffs, rollback, and squash-merge. 12 new MCP methods, 3 new CLI families.Ctrl+Shift+J) that runs batched prompts into an agent pane with smart auto-advance through confirmation prompts, and a read-only Git status panel (Ctrl+Shift+G).The full Unterm docs live at https://unterm.app/docs/:
unterm-cli subcommands, flags, exit codes~/.unterm/This README is the short version. The site is the long version.
127.0.0.1:<auto-port> (default 19876) —
line-delimited JSON-RPC over TCP, loopback-only and auth-token gated. It
exposes 149 authenticated methods plus auth.login; meta.surface (or
unterm-cli reference) returns the authoritative live inventory in one
call.127.0.0.1:<auto-port> (default 19877) — open in any browser via unterm-cli settings open or the Settings (Web) item in the ▼ menu. Tailwind-styled SPA, supports all 9 languages, keyboard + mouse.~/.unterm/proxy.json also persists manual HTTP/SOCKS URLs,
no_proxy, named nodes, rotation, and Clash/mihomo controller settings.~/.unterm/screenshots/, on the system image clipboard, and the path on the text clipboard.capture.scrollback re-renders a pane's entire history into one tall PNG headlessly (exact fonts/theme, streaming-encoded, works while occluded); capture.window_scroll long-shots another app's window by synthesizing wheel events and stitching frames via row-hash matching with sticky-header/footer detection (macOS). Both also in the ▼ menu and unterm-cli screenshot --scrollback / --scroll-app.KEY=value / 40+ char hex/base64 patterns are masked). Recordings are stored in the project directory under <cwd>/.unterm/sessions/<date>/<tab>-<time>.md, or in ~/.unterm/sessions/_orphan/ when no writable project context.▼ button, with live key chords from the binding table:
Bind a window to a coherent developer identity — GitHub PAT, AWS keys, npm token, git author, SSH keys — all in one shot. New window for a different identity. The chip in the tab bar tells you which one you're in. Secrets live in the OS-native vault (Keychain / Credential Manager / Secret Service), never in ~/.unterm/.
Inside a profile-bound shell:
Full docs: unterm.app/docs/profiles.
Every running Unterm process is one instance with a NATO-phonetic name: alpha, bravo, charlie, … zulu. The first window claims alpha, the second bravo, etc. When all 26 are taken at once, the next one wraps to alpha2. Names are easy to pronounce and AI agents handle them right — no UUIDs, no ports in your head.
Each GUI instance writes its metadata (mcp_port, http_port, auth_token, pid, started_at, version, platform) to ~/.unterm/instances/<name>.json. Agents that need to drive a specific instance enumerate that directory and pick by id, cwd, or title.
The headless Core writes core.json to its platform data directory — %LOCALAPPDATA%\Unterm on Windows, ~/.local/share/Unterm on Linux, ~/Library/Application Support/Unterm on macOS — not to ~/.unterm. (UNTERM_STATE_DIR overrides both, which is how the two got confused: every test that set it saw them agree.) unterm-cli mcp-stdio and MCP-backed CLI commands prefer that Core record so terminal sessions keep working across GUI restarts, and it is on instance.list as the instance core when no window is open — unterm-cli --instance core reaches it.
An instance is a front end, not a window: since v0.68 one process holds several windows, each with an id of its own. instance.windows lists them, instance.new_window opens one and returns its id, and instance.focus takes one.
For old single-target agents, ~/.unterm/active.json points at the current live GUI instance, and ~/.unterm/server.json mirrors that same record for backward compat.
The MCP instance.* namespace exposes this directly: instance.list, instance.info, instance.set_title, instance.focus. See the multi-instance docs for examples and the discovery protocol.
The unterm-cli binary exposes the full Unterm product surface, transparently routing to the local MCP server. New integrations should use unterm-cli mcp-stdio or unterm-cli directly; they resolve core.json, live GUI instance records, and legacy files in the right order. Scripts that bypass the CLI can read core.json in the Core's platform data directory (%LOCALAPPDATA%\Unterm, ~/.local/share/Unterm, ~/Library/Application Support/Unterm) for the Core MCP endpoint, ~/.unterm/instances/<name>.json for a specific GUI instance, or ~/.unterm/server.json for the legacy active-GUI pointer. Note the two directories are different: only the Core's record lives outside ~/.unterm.
Pass --json to any subcommand for raw JSON-RPC output (suitable for scripts); place it before -- CMD so it is parsed by unterm-cli, not the child command. session create preserves multi-token commands as argv, while a single command string still runs through the platform shell. Pass --lang <code> to override the locale for one invocation. Pass --instance <id> (or set UNTERM_INSTANCE=<id>) when several Unterm windows are open and you need a deterministic target.
Multi-instance discovery is available through MCP and CLI: call
instance.list, run unterm-cli instance list, or inspect
~/.unterm/instances/.
Unterm makes every AI coding agent on the machine aware of it, so they can drive the terminal without manual setup. On first launch (per version) the GUI runs unterm-cli setup-ai, which detects installed agents — Claude Code, Codex, Gemini CLI, Cursor, Windsurf, OpenCode — and, for each:
unterm MCP server into the agent's global config (merging into existing config, never clobbering), so the agent can list/run/read/screenshot the real terminal the moment it starts;CLAUDE.md / AGENTS.md / GEMINI.md) so even an agent that never loads the MCP server knows Unterm is here.The registered bridge (unterm-cli mcp-stdio) self-discovers the live control server at connect time, preferring unterm-core and falling back to GUI instance records, so a static registration keeps working across restarts and multiple windows. Agents that connect also receive a usage brief via the MCP initialize instructions field.
User config lives at:
| Platform | Location |
|---|---|
| macOS | ~/.unterm/ |
| Linux | ~/.unterm/ |
| Windows | %USERPROFILE%\.unterm\ |
Files:
| File | Purpose |
|---|---|
core.json | Headless Core endpoint + auth token + pid (preferred for MCP-backed automation) |
server.json | Active GUI instance's MCP/HTTP ports + auth token + pid (auto, mirrors the active GUI for back-compat) |
active.json | Pointer at the current active GUI instance id (auto, updated only when previous active dies) |
instances/<name>.json | Per-instance metadata (NATO id, ports, token, pid, started_at, version, platform) |
auth_token | Legacy mirror of the active auth token (for back-compat) |
proxy.json | Auto/manual proxy URLs, exclusions, nodes, rotation, and Clash controller state |
theme.json | Active theme id |
lang.json | Persisted locale override |
compat.json | {"term_program": "..."} override for $TERM_PROGRAM |
scrollback.json | Override the default scrollback line count |
update_check.json | Background update-poller state (last check, latest seen version) |
onboarded.json | First-run flags (which ▼ items have been seen) |
recording.json | Recording config (redaction patterns, etc.) |
fleets.json | Live agent fleets: members, worktrees, branches, review state (Agent Cockpit) |
checkpoints.json | Pre-agent-work snapshots per repo (dangling-commit SHAs, most recent 20 per repo) |
sessions/ | Recording metadata index (per-project subdirs) |
screenshots/ | Region screenshots (PNG) |
Prereqs: a recent stable Rust toolchain. Linux additionally needs the system deps in get-deps.
Build a release for the current platform:
Build platform packages:
macOS code-signing + notarization is local-only (no CI step) so the
Developer ID .p12 private key never has to leave your Mac. One-time
setup, on the Mac that holds the cert:
Unterm release tags may use either minor tags (v0.50) or patch tags (v0.50.0). Use the tag form that matches the changelog and package version for the release. Cut a tag only when a coherent batch of fixes / features is ready to ship.
make release-mac reads the tag from git describe --exact-match HEAD,
builds universal x86_64+aarch64 binaries, calls ci/sign-macos.sh with
NOTARY_PROFILE=UntermNotary, then gh release uploads the resulting
DMG to the matching GitHub Release. After local validation/upload, run
make clean-release-artifacts to remove root-level release packages while
keeping build caches intact.
CI on every PR runs cargo check against macOS, Linux, and Windows.
Tagged pushes (vX.Y or vX.Y.Z) trigger the release-linux and release-windows
workflows that publish those two platforms' artifacts to GitHub Releases.
macOS sits out of CI by design — see above.
This repository is the main Unterm project:
https://github.com/zhitongblog/unterm
Unterm includes modified WezTerm components. Upstream WezTerm remains a separate project by Wez Furlong and contributors.