Skip to content
Proyek

Tentang

One terminal for Windows, macOS and Linux: the same Unix commands everywhere, a command history you can search as you type, pictures and markdown in the terminal, built for agents.

Alat pengembangan

Cara angka ini diukur

Pertumbuhan bintang terukur

dalam 24 jam
0
dalam 7 hari
0
dalam 15 hari
Mengumpulkan riwayat
dalam 1 bulan
Mengumpulkan riwayat

Perubahan bersih pada periode yang tumpang tindih, bukan total harian. Pengukuran yang belum tersedia dibiarkan kosong. Bintang menunjukkan perhatian, bukan kualitas.

README.md

Asli

UnifyTerm

UnifyTerm

One terminal for Windows, macOS and Linux. The page that introduces it: dfine.tech/unifyterm.

UnifyTerm: the same Unix commands on Windows, history as you type, pictures and markdown, a model's explanation, agents beside the terminal

  • The same Unix commands everywhere. cat, ls, grep, jq, find, sed and the rest of 99 commands (114 on Linux) come with it (ut): on Windows too, and before PowerShell's aliases. Paths are printed with /.
  • A command history you can search as you type. Every command a shell runs is kept (without secrets) with its directory and exit code; a list of matches shows while you type.
  • Help with commands. A corrected command when one is not found, guessed on your machine from the commands it knows. With a model you name and agree to once: better corrections, what each part of a command means (Ctrl-Shift-E), the rest of a command in grey, and a command for what you say in words (# the five largest files here, then Enter). The model is a service, a model server on your machine, or an agent's command line you already have (Claude Code, Codex, pi).
  • Pictures, video and markdown in the terminal. ut view photo.png, ut view clip.mp4, ut md README.md.
  • Mail beside the terminal. Ctrl-Shift-M shows your mailboxes in the window as conversations, and the terminal again; a mailbox is added there too. An agent reads it through ut mcp and writes drafts; only you send.
  • For agents. A sidebar with the agents keepane watches (Ctrl-Shift-A); ut mcp, an MCP server with the history, the commands' help and the mail; a skill file.

It runs your own shell: PowerShell, cmd, bash, zsh or fish.

Install

macOS (Apple silicon, Intel; macOS 11 or later), with Homebrew: the cask puts UnifyTerm.app in /Applications, where each upgrade puts the new one in its place, so it keeps its place in the Dock; unifyterm and ut go on your PATH.

brew install --cask newdee/tap/unifyterm

Installed before with brew install newdee/tap/unifyterm (the formula)? That one puts the app in a folder of its version, which an upgrade removes, and the Dock then shows a question mark. Move to the cask once; your settings, history, mail and secrets stay where they are:

brew uninstall unifyterm
brew install --cask newdee/tap/unifyterm

Then take the old icon out of the Dock and put UnifyTerm in from /Applications.

Linux (x86_64), with Homebrew: the formula.

brew install newdee/tap/unifyterm

Homebrew 6 and later load a cask or formula of a tap that is not their own only once it is trusted. The full name above installs it; before brew upgrade or any other use of the short name, trust it once (--cask or --formula trusts this one, not the whole tap):

brew trust --cask newdee/tap/unifyterm      # macOS; on Linux: brew trust --formula newdee/tap/unifyterm
brew upgrade --cask unifyterm               # macOS; on Linux: brew upgrade unifyterm

The tap has a cask and a formula of the same name: on macOS say --cask, or Homebrew may take the name for the formula.

Or with one line, for you alone (no root): it puts unifyterm and ut in ~/.local/bin, UnifyTerm.app in ~/Applications on macOS, a menu entry on Linux.

curl -fsSL https://raw.githubusercontent.com/newdee/unifyterm/main/install.sh | sh

Windows 10 1809 or later, with Scoop: add the bucket once, then install by name.

scoop bucket add newdee https://github.com/newdee/scoop-bucket
scoop install unifyterm

Installed earlier from the manifest's address, it keeps updating from there: scoop update unifyterm.

Or with one line, for you alone (no administrator rights): it puts UnifyTerm in %LOCALAPPDATA%\Programs\unifyterm, on your PATH and in the Start menu.

irm https://raw.githubusercontent.com/newdee/unifyterm/main/install.ps1 | iex

Packages on the releases page, each with a .sha256 beside it:

System File
Windows unifyterm-VERSION-x64.msi (into Program Files, for every user, with a Start menu item and a desktop icon; msiexec /i unifyterm-VERSION-x64.msi DESKTOPSHORTCUT=0 makes no desktop icon), or unifyterm-vVERSION-windows-x86_64.zip
macOS unifyterm-VERSION-macos-aarch64.dmg or -macos-x86_64.dmg, or the .tar.gz
Debian, Ubuntu unifyterm_VERSION-1_amd64.deb: sudo apt install ./unifyterm_VERSION-1_amd64.deb
Other Linux unifyterm-VERSION-x86_64.AppImage, or the .tar.gz

On Linux the window needs Vulkan and xkbcommon (on Debian and Ubuntu: mesa-vulkan-drivers libxkbcommon-x11-0). Updating: brew upgrade --cask unifyterm (macOS), brew upgrade unifyterm (Linux), scoop update unifyterm, or the same one line again.

The macOS builds are signed with a Developer ID, so the system keychain's "Always Allow" for UnifyTerm's master key (see Secrets) lasts from one update to the next. They are not notarized yet: a .dmg downloaded in a browser, and the cask, may be checked once when first opened (right-click the app, then "Open"); install.sh is not. The Windows builds are not signed yet: SmartScreen may ask once ("More info", then "Run anyway").

Uninstalling keeps your settings, history and log (see Where things are).

From source: cargo build --release with Rust 1.93 or later; on Windows run pwsh tools/fetch-conpty.ps1 first. On Linux GPUI needs libxkbcommon-dev libxkbcommon-x11-dev libxcb1-dev libwayland-dev libvulkan-dev libfontconfig-dev.

Keys

On macOS the window's own keys use Cmd, as the second column shows; the keys at the prompt are the same everywhere. The first thirteen, down to "Add a mailbox", are the keys until you give others: each is a setting in [keys] (below), and a change is the window's key at once. The keys of the list and the popups are fixed.

Key macOS What it does
Ctrl-Shift-T Cmd-T A new tab
Ctrl-Shift-W Cmd-W Close the tab
Ctrl-Tab Ctrl-Tab The next tab
Ctrl-Shift-Tab Ctrl-Shift-Tab The tab before
Ctrl-Shift-C Cmd-C Copy the selection
Ctrl-Shift-V, Shift-Insert Cmd-V Paste
Ctrl-Shift-A Cmd-A Select everything the tab holds, its history too
Ctrl-Shift-J Cmd-Shift-J Show or hide the agents' sidebar
Ctrl-Shift-B Cmd-Shift-B The row of tabs out of the way (window.tab_bar = "auto-hide"), or always there again: for this window, until the setting is changed
F11, Alt-Enter Cmd-Enter, Ctrl-Cmd-F Full screen, over the taskbar; again to leave it. A program in the terminal no longer gets Alt-Enter
Ctrl-Shift-E Ctrl-Shift-E Explain the command on the line
Ctrl-Shift-M Cmd-Shift-M The mail in place of the terminal, or the terminal again (see Mail)
Ctrl-Alt-Shift-M Alt-Cmd-Shift-M Add a mailbox: the mail, with the form that adds one
Ctrl-Shift-K Cmd-Shift-K The plugins' column at the terminal's right: shown and gone to, or hidden (see Plugins)
Ctrl-Shift-P Cmd-Shift-P The plugins' panel: every view to open, the plugins installed, those to install (see Plugins)
Ctrl-N, Down Ctrl-N, Down The next command in the list while typing
Ctrl-P, Up Ctrl-P, Up The command before in the list
Tab, Right Tab, Right Put the chosen command on the line; Right with none chosen takes the grey suggestion
Enter Enter With a command chosen: put it on the line (it does not run)
Esc Esc Close the list or a popup

A web address on the screen opens in the browser with Ctrl-click (Cmd-click on macOS), whether written in the words or as a link a program writes (OSC 8); with the key held, the address under the mouse is underlined. Only http and https addresses open. It works in a program that has the mouse (vim, htop) too.

With no list showing, Up and Down are the shell's: they walk its own history, and no list opens for the commands they bring back until you type; Up again gives the command before. With the list showing, they choose in it.

In a popup, Enter takes what it offers (a corrected command goes on the line, not run) and Esc closes it. A click on a tab goes to it; a middle click closes it. A click on an agent's card goes to its pane, or copies where the pane is when that fails.

Settings

The settings file is config.toml in %APPDATA%\unifyterm (Windows), ~/Library/Application Support/unifyterm (macOS) or ~/.config/unifyterm (Linux); unifyterm --config FILE names another. Every key is optional. A key that is misspelt, or a value out of range, is named in a line at the top of the first tab, and the defaults are used; the file is left as it is, and once it is put right its settings (your mailboxes among them) are used again. The same file works on every system: paths may be written with /.

ut setting, in a tab, shows every setting and changes it from the keyboard. ↑↓ move; Enter changes the one the cursor is on: a switch turns, and a font, a shell, the fallback fonts, the commands to leave to the system and the model's provider open a list to pick from (type to narrow it; Space marks several, in order). ←→ make a number smaller or larger, e types any value (a font the list lacks), d puts the default back, u takes the last change back, / narrows the settings, q leaves. A value UnifyTerm would refuse is not written, and the line says why. The comments in your file stay. For a script: ut setting list, ut setting get font.size, ut setting set font.size 16, ut setting reset font.size, ut setting path.

UnifyTerm reads the file again whenever it changes, by ut setting or by an editor. The font, the theme and everything in [theme], the keys in [keys], the padding, window.tab_bar, the list of earlier commands, [images] and [mail] (the mail's sync starts again with it) change at once. The rest of [prompt] is used at the next prompt. shell.*, terminal.scrollback and prompt.enabled are used by the next tab; agents.command and agents.poll_ms when the sidebar is shown again. The rest (commands.*, history.enabled, ai.*, window.system_title_bar, agents.sidebar, updates.check) is set up when UnifyTerm starts. A changed file that is wrong changes nothing: the settings in use stay, and the log says why.

Key Default What it is
font.family Cascadia Code (Windows), Menlo (macOS), DejaVu Sans Mono (Linux) The font
font.size 14 In pixels, 6 to 72
font.line_height 1.35 A line's height as a multiple of the size, 1 to 2
font.ligatures true ->, != and the like as one shape, where the font has them
font.fallbacks Microsoft YaHei UI, Segoe UI Emoji, Segoe UI Symbol (Windows); PingFang SC, Apple Color Emoji (macOS); Noto Sans CJK SC, Noto Color Emoji (Linux) Fonts tried, in order, for characters the font lacks
shell.program PowerShell (Windows), $SHELL (elsewhere) The program a new tab runs
shell.args [] Its arguments. With arguments of your own the shell gets nothing from UnifyTerm: no history hook, no login start
terminal.scrollback 10000 Lines kept for each tab, at most 1000000
terminal.padding 6 Pixels between the window's edge and the text, 0 to 64
window.system_title_bar false The system's title bar above the tabs. Without it the row of tabs is the title bar: drag its empty part to move the window. On Linux the system's bar is always there
window.tab_bar "always" "always": the row of tabs is always there. "auto-hide": it keeps out of the way until the pointer rests at the window's top edge, or a tab is opened, closed or gone to; it then lies over the text, and the terminal keeps its size. Ctrl-Shift-B changes it for the window it is pressed in

| keys.new_tab | as in Keys, above | The keys for a new tab: a list, as ["ctrl-shift-t"]. A key is its name with the keys held with it before it, - between: ctrl-shift-t, cmd-enter, alt-[, f11. []: no key | | keys.close_tab | as above | The keys that close the tab | | keys.next_tab | as above | The keys for the next tab | | keys.previous_tab | as above | The keys for the tab before | | keys.copy | as above | The keys that copy the selection | | keys.paste | as above | The keys that paste | | keys.select_all | as above | The keys that select everything the tab holds, its history too | | keys.agents | as above | The keys that show or hide the agents' sidebar | | keys.tab_bar | as above | The keys that put the row of tabs out of the way, or back | | keys.full_screen | as above | The keys for full screen, and out of it | | keys.explain | as above | The keys that explain the command on the line | | keys.mail | as above | The keys that show the mail in the window, or the terminal again | | keys.mail_add | as above | The keys that show the mail with the form that adds a mailbox | | keys.side | as above | The keys that show the plugins' column at the terminal's right and go to it, or hide it | | keys.plugins | Ctrl-Shift-P (macOS: Cmd-Shift-P) | The keys that show the plugins' panel: every view to open, the plugins installed, those to install | | theme.name | | The theme: one of UnifyTerm's or one of your own (below). Not set: paper-dark | | theme.foreground | the theme's | The color of text, #rrggbb | | theme.background | the theme's | The color behind it | | theme.cursor | the theme's | The cursor's color. It also marks the tab in use and the chosen row of a list | | theme.selection | the theme's | The color behind selected text | | theme.bar | the theme's | The color behind the row of tabs and the sidebar | | theme.panel | the theme's | The color behind a list or a box over the text, and behind an agent's card | | theme.well | the theme's | The color behind the tab in use, and behind what the pointer is over | | theme.rule | the theme's | The color of a line between two parts | | theme.edge | the theme's | The color of the line around a list or a box | | theme.muted | the theme's | The color of words that matter less | | theme.symbol | the theme's | The color of the small signs, as the one in the tab in use | | theme.ansi | the theme's | The 16 colors: black, red, green, yellow, blue, magenta, cyan, white, then the bright eight | | theme.opacity | the theme's, else 1 | How much the window hides what is behind it, 0.1 to 1. The color behind the text, the row of tabs and the sidebar are seen through; text, lists and boxes are not | | theme.blur | the theme's, else false | What shows through the window is blurred, as through frosted glass. It needs opacity under 1 | | theme.picture | the theme's | A picture's file, shown at the foot of the sidebar: beside the file that names it, or one of UnifyTerm's own (aurora.png). "": none | | theme.rounding | the theme's, else 7 | How round the corners of the tabs, the cards, the lists and the boxes are, in pixels, 0 to 18. 0 is square | | theme.corners | the theme's | The window's own corners: "round", "small" or "square". Windows 11 only; not set, they are as the system makes them | | theme.wallpaper | the theme's | A picture's file, drawn behind the text over the whole window. It is made as large as the window, and follows the window's size; what goes past the window's sides is cut off. Found as picture is. "": none | | theme.wallpaper_opacity | the theme's, else 0.25 | How much of the wallpaper shows over the color behind the text, 0 to 1 | | prompt.enabled | false | UnifyTerm writes the prompt, the line left of the cursor, in new tabs (PowerShell, bash, zsh, fish). Off: your shell's own prompt, as before. See The prompt | | prompt.style | the theme's, else "lean" | "lean": colored words. "classic": the segments on one band of the bar color, thin lines between them. "rainbow": a color behind each segment, arrows between them. "plain": ASCII only | | prompt.separator | the theme's, else "sharp" | The shape between segments of classic and rainbow: "sharp", "round" or "slant". UnifyTerm draws it: no font needs to have it | | prompt.lines | the theme's, else 2 | 1: the input after the segments. 2: the segments on one line, the input on the next | | prompt.left | the theme's, else ["dir", "git"] | The segments on the left, in order: dir, git, status, duration, venv, time | | prompt.right | the theme's, else ["status", "duration", "venv"] | The segments on the right: at the end of the first line with two lines; at the line's end in zsh and fish with one (PowerShell and bash have no place for them then). A segment on the left is not shown again here | | prompt.gradient | the theme's, else "off" | "off": each segment in its color. "segments": each from its color to the next one's. "whole": prompt.colors over the whole side | | prompt.colors | the theme's, else ["cyan", "blue", "magenta"] | The colors of the "whole" gradient, left to right: 2 to 8 | | prompt.dir_color | the theme's, else ["blue"] | The directory's color: one, or two for a gradient of its own. A color is one of the theme's 16 by its name (red, bright-blue, ...) or #rrggbb | | prompt.git_color | the theme's, else ["green"] | Git's color when there are no changes | | prompt.git_dirty_color | the theme's, else ["yellow"] | Git's color when there are changes | | prompt.status_color | the theme's, else ["red"] | The color of a failed command's exit code | | prompt.duration_color | the theme's, else ["yellow"] | The color of how long the last command took | | prompt.venv_color | the theme's, else ["cyan"] | The Python environment's color | | prompt.time_color | the theme's, else ["bright-black"] | The time's color | | prompt.shine | the theme's, else "off" | A light crosses the words of the newest prompt: "once" for each new prompt, "loop" again every prompt.shine_every seconds. Blank cells are not lit | | prompt.shine_every | the theme's, else 4 | Seconds between two lights with "loop", 1 to 600 | | commands.builtin | true | Put UnifyTerm's commands before the system's in each shell's PATH | | commands.system | [] | Commands that stay the system's although builtin is on, as ["find", "sort"] | | history.enabled | true | Keep the commands shells run. Off: no shell hook, no history file | | history.candidates | true | Show the list while typing | | history.limit | 8 | The most commands the list shows, 1 to 20 | | ai.provider | "none" | Where the model is: see the table below | | ai.model | | The model's name, as the service knows it ("claude-opus-5-5"). An agent's command line uses its own when none is named | | ai.base_url | | Where the service is: needed for openai-compatible; else only for another address than the provider's own | | ai.api_key_env | | The environment variable that holds the key (the key itself is never in this file) | | ai.command | [] | For the provider command: the program that answers, with its arguments | | ai.suggest | true | The rest of the command in grey while typing (not from an agent's command line) | | ai.fix | true | A corrected command when one is not found | | ai.explain | true | What each part of a command means (Ctrl-Shift-E) | | ai.ask | true | A line that begins with # is a sentence: Enter turns it into a command | | ai.ask_enter | "manual" | The command made from a sentence: "manual" puts it on the line; "auto" also runs it when it only reads | | agents.sidebar | false | Show the agents' sidebar when the window opens | | agents.poll_ms | 2000 | How often the agents are asked for while the sidebar shows, 500 to 60000 | | agents.command | ["keepane", "list-agents", "-J"] | The program that prints the agents as JSON | | agents.focus | ["keepane", "focus-pane", "{pane}"] | The program that brings an agent's pane to the front; {pane} is its number | | updates.check | true | Once a day, ask GitHub whether a newer UnifyTerm is out, and name it in the row of tabs; and read the plugins' sources for a later version of a plugin installed from one | | images.mail | "click" | Pictures in mails: click fetches one when you click it, so a sender's one-pixel picture cannot tell when you read the mail; show fetches them as the mail shows (one-pixel ones never) | | images.plugins | "show" | Pictures in plugins' messages (an article's): show fetches them as the message shows; click when you click one | | mail.address | | A mail address. Not set: no mailbox here; more mailboxes are [mail.accounts.NAME] (see Mail) | | mail.imap | the domain's | The IMAP server, host:port (993, TLS) | | mail.smtp | the domain's | The SMTP server, host:port (465 with TLS, or 587 with STARTTLS) | | mail.login | the address | The name logged in with | | mail.password_command | [] | A program, with its arguments, that prints the password. Empty: the one ut mail login keeps in UnifyTerm's secrets | | mail.proxy | | socks5://host:port or http://host:port: both servers are reached through it. Not set: directly | | mail.days | 30 | How many days of mail the first sync reads, 1 to 3650; a mailbox in [mail.accounts] without its own takes this | | mail.on_new | [] | A program run for each new mail from someone else: {thread}, {from}, {subject}, {snippet}, {account} in its words, the mail as JSON on its input | | mail.notify | true | A note at the window's foot when mail comes | | mail.auth | auto | How the mailbox logs in: password, or oauth2 (a sign-in in the browser, Microsoft). auto: oauth2 for outlook.com, hotmail.com, live.com and msn.com | | mail.accounts | | More mailboxes: [mail.accounts.NAME], each a table with the keys above from address to auth (see Mail) | | plugins | | Plugins: [plugins.NAME], each a table of command, background, keys, view_keys, pinned, on_new, proxy, agents, agents_most and settings (see Plugins, For agents) | | mail.oauth_client_id | UnifyTerm's | The application the browser sign-in uses at Microsoft, for an organization that registered its own | | mail.agents | "draft" | What agents may do with the mailboxes through ut mcp: draft (read, and keep drafts you send), or send too (see For agents); a mailbox in [mail.accounts] may say its own | | mail.agents_most | 20 | Where agents may send: the most they may send from one mailbox in an hour, 1 to 1000 | | secrets.key_command | [] | A program, with its arguments, that prints the key the secrets are sealed with (a password manager: pass, op, keepassxc-cli). Empty: the system's keychain keeps it |

Keys. A key in [keys] may be written as you would say it (Ctrl+Shift+G): ut setting keeps it as ctrl-shift-g. The keys held are ctrl, alt, shift and cmd (the Windows key on a PC). A letter, a digit or a sign needs Ctrl, Alt or Cmd with it, and so do Enter, Tab, Esc and the arrows: alone, or with Shift only, they are what the shell is typed to with, and are refused. A function key and Insert may stand alone. A key cannot be given to two commands. A key you give one command is taken from a command that has it only as its default (as a later version may give a new command a key you had already given another): that command keeps its other keys, and the first tab says so. A key another program has taken for the whole system (a screenshot key) never reaches UnifyTerm: give the command another one, as ut setting set keys.agents ctrl-alt-a.

Themes. A theme is a set of colors under a name. UnifyTerm has 17: paper-dark (in use until you choose another), tokyo-night, aurora, eclipse, phosphor, night, whale (哦鲸鲸), mint (薄荷), twin (双子), void (虚空), lyre (缪缪), prism (谱谱) and drake (龙龙), which are dark, and riso, day, paper and clay (陶陶), which are light. paper-dark and paper are keepane's own two looks, with its colors. The eight with a Chinese name each have a character of their own in their picture. ut theme lists them with a sample of each one's colors; ut theme NAME uses one. Every open window changes at once, and the next time UnifyTerm opens it has that theme: the name is the setting theme.name. demo/appearance.html shows six of them in a browser, and the window's colors are the ones on that page.

A theme of your own is a file NAME.toml in the themes folder beside the settings file (ut theme directory prints it), with a table [theme] and the keys of the table above, all but name. It must give foreground, background and ansi. It may give cursor, selection and the colors around the text (bar, panel, well, rule, edge, muted, symbol): one it leaves out is worked out from the foreground and the background (the cursor is the text's color). It may also give what is not a color: opacity, blur, rounding, corners, and two pictures, each a file beside the theme's own (PNG, JPEG, WebP, GIF, BMP, SVG or TIFF, at most 16 MB): picture, shown at the foot of the sidebar, and wallpaper, drawn behind the text over the whole window. The text is drawn over the wallpaper as it is: wallpaper_opacity (0.25 until you say) keeps the picture faint enough to read on. A table [prompt] beside [theme] says how the prompt looks in this theme, with the keys of the settings' [prompt] but enabled (see The prompt). UnifyTerm's own 22 pictures (14 for the sidebar, and a wallpaper for each theme with a character, as whale-wall.jpg) are found by their names from any folder, so a copy of a built-in theme keeps its picture. A key this version does not know is passed over, and ut theme check names it: a theme written for a later UnifyTerm still works in this one. ut theme new NAME begins one as a copy of the theme in use, and ut theme show NAME prints any theme's file. A window that uses your theme follows its file as you save it. A name is small letters, digits and -; your file with a built-in theme's name is used in that theme's place.

The eight themes with a character show its picture behind the text and at the foot of the agents' sidebar (Ctrl-Shift-A). Below is whale with UnifyTerm's prompt on; the settings file has these lines (wallpaper = "" under [theme] would take the picture away from behind the text):

[theme]
name = "whale"

[prompt]
enabled = true

The theme whale: a whale girl behind the text and at the foot of the agents' sidebar, the prompt in blue and cyan

A theme that is not there, or whose file is wrong, is never put to use: ut theme NAME says what is wrong and writes nothing, and a window keeps the colors it has. What the settings file gives itself in [theme] stays over any theme: theme.background = "#000000", or theme.opacity = 0.85 for every theme you use. On a light theme, white text on the theme's own background is drawn in the theme's text color: programs that take the screen for a dark one write in white (PowerShell does, for what you type), and a light theme's white is as light as its background.

Nothing is sent to a model until ai.provider names one and you agree in the window (once). What is sent, as the window says when it asks: the command line you type, what you write after #, the directory (your home as ~), your last five commands, and for a command that was not found the last 40 lines it printed. Anything that looks like a password, token or key is replaced first. With a sentence (#) the command lists go along too (below): one line for each program that has one, and the commands of the programs the sentence or your last commands name.

Where the model is (ai.provider):

Provider What it is What else to set
anthropic Claude, Anthropic's service ai.model, ai.api_key_env
openai OpenAI's service ai.model, ai.api_key_env
openai-compatible Any service with OpenAI's chat-completions shape: llama.cpp's server, LocalAI, Jan, OpenRouter, DeepSeek ai.model, ai.base_url (as http://localhost:8080/v1); ai.api_key_env if it wants a key
ollama Ollama on this machine, at http://localhost:11434/v1 ai.model (as qwen2.5-coder:1.5b)
lm-studio LM Studio's server, at http://localhost:1234/v1 ai.model
vllm vLLM, at http://localhost:8000/v1 ai.model
claude-code Claude Code's command line (claude), as you are logged in to it nothing; ai.model to name a model
codex Codex's command line (codex) nothing; ai.model to name a model
pi pi's command line (pi) nothing; ai.model to name a model
command A program of your own ai.command, as ["my-agent", "--quiet"]

UnifyTerm brings no model and downloads none. A service is asked for JSON that fits the answer's shape (response_format: json_schema); one that refuses that is asked for plain JSON, then without response_format, and the way that worked is kept while the window is open.

An agent's command line is started once for each question, with its tools off (Claude Code --tools "", Codex --sandbox read-only, pi --no-tools), no session kept, in an empty directory of its own under UnifyTerm's data: it can answer, and nothing else. It takes 10 to 40 seconds and counts against your plan with that agent, so it gives corrections, explanations and commands for sentences, but no grey suggestions. It gets 90 seconds; then it is stopped. A program of your own (command) gets the question on its standard input, or in place of {prompt} in an argument, and prints the answer; what it may do is its own business. Cursor's command line is not among these: its documentation says that print mode writes files whatever the flags, so it cannot be made to only answer.

A command for a sentence. With a model set, type # and what you want at the prompt, then Enter: # the five largest files here. UnifyTerm asks the model and puts its command on the input line in place of the sentence. It is not run: read it, change it, press Enter. Ctrl-Shift-E explains it. With ai.ask_enter = "auto" a command that only reads is run at once; "only reads" means every program on the line is one of a short list (ls, cat, grep, find without -delete or -exec, git status, PowerShell's Get-… and the like) and the line writes nothing (>), runs nothing inside itself ($(…), {…}) and nothing in the background. Anything else waits for your Enter, and so does every command in cmd.exe. With no model set, or ai.ask = false, such a line goes to the shell as before, which takes it as a comment.

Command lists. A program can say what its commands, options and arguments are, in a file in the OpenCLI format (JSON). ut program add FILE keeps such a file (PROGRAM ... | ut program add - reads it from the program itself). An open window reads it as you type on (it looks at the folder at most every two seconds): no restart. UnifyTerm runs no program to get one, and nothing in a list is ever run. UnifyTerm carries the list of ut's own commands (ut --opencli prints it), always the installed version's: ut offers its commands and options without adding anything. With a program's list, and with no model:

  • The list under the input line also has the program's own words for the word you are typing, after the commands from the history, at most 6: its commands (git st gives stash and status among them), its options once you type -, and the values an option or an argument takes when the list names them. Beside each is the first sentence of what the list says of it. history.candidates = false turns the whole list off.
  • When a command of the program fails and one of its words is no command or --option the list has, but is one or two keystrokes from one that is, the corrected line is offered (git comit -m x gives git commit -m x). Enter puts it on the input line, not run. ai.fix = false turns it off.
  • Ctrl-Shift-E tells what each word of the line is, from the list, at once; nothing is sent. This is for a line that is one command (no pipe, redirection or variable); any other line goes to the model as before, with what the list says of the command used.
  • A command the model wrote for a sentence is checked against the list: when it uses a command or --option the list does not have, the box says so, and the command is not run even with ai.ask_enter = "auto".

A list is as good as the program made it. A word the list does not have may still be right (a git alias, a plug-in); it is named, never refused. Names in a list that hold a blank or a character a shell reads are left out when the file is read. The OpenCLI project has lists for git, curl, ffmpeg and dotnet among its examples.

The prompt

With prompt.enabled = true (ut setting set prompt.enabled true), UnifyTerm writes the prompt in the tabs opened after it: PowerShell, bash, zsh and fish. It is a line of segments, the directory and git's branch on the left, and on the right a failed command's exit code, how long a command took (2 seconds or more) and the Python environment, with ❯ where you type. Off, the prompt is your shell's own, as before: Powerlevel10k, starship or your own PS1 stay until you turn this on.

How it looks is [prompt], in the settings file or in a theme's file: every built-in theme gives one, and the settings' own keys go over the theme's (see the table above). The colors are the theme's 16 by their names, so the prompt changes with the theme. ut prompt preview shows it with the settings and the theme in use.

  • The shell's hook runs ut prompt at every prompt, told the last command's exit code, how long it ran and the terminal's width. It reads git's branch from the repository's files; the changes need git status, and when that takes more than 0.3 seconds the prompt shows the branch alone. Measured on Windows: 18 ms a prompt outside a repository, about 90 ms in one with git status.
  • The shapes between segments (U+E0B0 to U+E0BD, powerline's) are drawn by UnifyTerm, so no font needs to have them. In another terminal (ut shell enable does not write the prompt there) they need a font that has them.
  • PowerShell and bash have no place at the end of a line for the right side: with prompt.lines = 1 they show the left side only. zsh puts it in RPROMPT, fish in its right prompt.
  • NO_COLOR set: PowerShell writes the prompt without its colors.
  • The prompt needs the shell hook: history.enabled = false turns both off. cmd.exe, and a shell with arguments of your own in shell.args, keep their own prompt.
  • prompt.shine lights the words of the newest prompt as a band of light goes across them, once for each new prompt or every prompt.shine_every seconds; blank cells are not lit. It works on any prompt the hooks mark, your own too.

A tab starts in your home directory, however UnifyTerm was started: from the Dock, the Start menu, a launcher or another shell. unifyterm --cwd DIRECTORY starts the tabs in another one (unifyterm --cwd . for the directory you are in).

On macOS a tab's shell is a login shell, as in Terminal.app: zsh and fish get -l, PowerShell -Login, and bash reads /etc/profile and your ~/.bash_profile (or ~/.bash_login, ~/.profile). A program started from the Finder has only the system's short PATH; the profile files are where Homebrew's and your own directories come from. On Linux and Windows the shell is started plainly, as other terminals there do.

After a shell's start files have run, UnifyTerm's commands are put first in PATH again (bash, zsh, fish, PowerShell): your files may add directories, but cat stays UnifyTerm's. commands.system names the commands you want from the system instead.

Mail

Ctrl-Shift-M (Cmd-Shift-M on macOS) shows your mailboxes in the window, in place of the terminal; pressed again, the terminal is back, and so it is after a click on a tab. The mailboxes are named at the top left: All shows every mailbox's conversations together, each marked with its mailbox; a name shows only that one. Under them, All, Unread, To answer (the newest mail is someone else's) and Sent (the newest is yours, waiting for theirs). There is no separate inbox and sent folder: a conversation holds both. The conversations are on the left, newest first. On the right is the chosen one as bubbles: the other person's mails on the left, yours on the right, the mail they quote folded under a link. Write an answer at the foot (r, or a click there) and press Ctrl-Enter or Send. The colors are the theme's, and a theme's wallpaper shows behind the bubbles.

By keys. The mail has four parts, each with keys of its own: [1] the mailboxes and filters, [2] the conversations, [3] the conversation shown, [4] the mail being written. 1 to 4, Tab, h and l go to them, and so does a click; the part the keys go to has a line round it. The line at the foot names the mode, the part and its keys; ? shows every key. In NORMAL a key is a command: j and k move, g and G go to the first and the last, Ctrl-d and Ctrl-u move five conversations at a time and half a page in a conversation (the list and the conversation follow the keys), f and F change the filter, [ and ] the mailbox, / searches (typed at the foot; Enter keeps what it found, Esc takes it away), c writes a new mail, q or Esc is the terminal again.

  • [1]: Enter shows the mailbox, a adds one, s signs it in again, m changes it, x removes it (y to confirm).
  • [2]: Enter opens the conversation, e archives it (u brings it back), U makes it unread again, on the server too, r answers.
  • [3]: j and k go mail by mail, o shows the mail it quotes, y copies the mail, r answers, R answers everyone, > quotes the mail into the answer, t lists its files, S, E and D send, edit or drop an agent's draft (u brings a dropped one back). v selects words and V lines (VISUAL): h, l, w, b, j and k move the end, y copies, > quotes them into the answer, Esc leaves.
  • [4]: typing is here only (INSERT): i, Enter or a click starts it, Esc ends it with the words kept.

Writing. An answer goes to the conversation's other person; R puts the others of its newest mail in Cc. To and Cc hold people: typing a name or an address lists the people your mailboxes have written with, most written with first; ↑↓ and Enter choose one, an address typed whole is taken as it is, and Backspace with nothing typed takes the last one away. Tab goes to To, Cc, the subject (a new mail has one) and the words. Ctrl-Enter or Send asks first, naming to whom it goes; y sends. A new mail goes from the mailbox shown (with All, the first) and starts a conversation of its own. An answer not sent goes when another conversation is shown; a new mail stays.

Files. t in a conversation lists the files of the mail the keys are on. Enter opens one with the system's program, s saves it to Downloads (under a new name when that one is taken), p shows a picture or a text in the window. A file is fetched from the server the first time, and kept beside the mail (mail-files/) after.

Adding a mailbox. Press + at the top left, or Ctrl-Alt-Shift-M; with no mailbox yet, the mail opens on the form. Type the address: UnifyTerm says which servers the domain uses and which way in is likely, and you may choose another: an authorization code or app password, a sign-in in the browser, servers by hand, or a program that prints the password. Choose Directly or Through a proxy. "Test and add" connects, logs in, finds the sent folder and logs in to SMTP, and says each step; only when all went is the mailbox written to the settings and the password (or the sign-in) kept in UnifyTerm's secrets. A step that fails says why, and nothing is kept. The right button on a mailbox's name signs it in again, changes it, or removes it (its settings, its kept password and the mail kept here; the server keeps its mail).

The same in a tab:

ut mail account add qq [email protected]          # asks for the code, tests, keeps
ut mail account add work [email protected] --imap mail.corp.example:993 --smtp mail.corp.example:587
ut mail account add gmail [email protected] --proxy socks5://127.0.0.1:7890

Most services want an app password or authorization code, not the password of their web page: QQ and 163 call it 授权码 and give it once IMAP is turned on in their settings; Gmail and iCloud call it an app password. Or name a program that prints it: password_command = ["pass", "mail/qq"]. The servers of qq.com, foxmail.com, 163.com, 126.com, yeah.net, gmail.com, icloud.com, yahoo.com, fastmail.com and aliyun.com are known.

The first mailbox may be in [mail] itself (as 0.8 wrote it); the others are tables of their own, which take address, imap, smtp, login, password_command, proxy, days and auth as above. A mailbox is named after its domain (qq) unless you name it:

[mail.accounts.qq]
address = "[email protected]"

[mail.accounts.gmail]
address = "[email protected]"
proxy = "socks5://127.0.0.1:7890"

Outlook, Hotmail and work mail at Microsoft let mail programs in with a sign-in in the browser (OAuth2) only. Choose "Sign in in the browser": UnifyTerm shows a code, opens Microsoft's page, and keeps the token Microsoft gives once you sign in there; it never sees your password, and gets a new token by itself as each one ends. The consent page names the publisher as not verified. An organization may have to allow UnifyTerm before its people can sign in, or may set its own application as mail.oauth_client_id.

A mailbox abroad: mail.proxy = "socks5://127.0.0.1:7890" (or http://...) sends both servers' connections through that proxy. The server's name goes to the proxy, which looks up its address. Not set: directly.

While a window is open, it reads each mailbox's inbox and sent folder, each mailbox on its own: first the last mail.days days, then each mail as the server tells of it (IDLE; a server without IDLE is asked every five minutes). One window on the machine reads a mailbox at a time; ut mail sync reads once when no window is open. A connection that fails is tried again after 30 seconds, then twice as long each time up to ten minutes; a password the server refuses, after half an hour. What went wrong is shown under the mailboxes' names; one mailbox that fails does not keep the others from being read. A mail of more than 8 MiB is kept by its header only. A mail with an HTML part is drawn from it: headings, lists, tables of data, quotes, code and links, each link followed by its host in brackets, so that words cannot hide where it goes. Nothing in it is run, no style is read, a form is left out, and a table used only to lay the mail out gives what is in it. A picture it names is fetched only when you click it (images.mail); a one-pixel one, there to tell the sender when you read the mail, is marked in red and never fetched by itself. Its quoted part folds as a text mail's does. Mails kept before 0.24 show their text, as before; agents and mail.on_new are given the text either way.

When mail comes, ✉ in the row of tabs counts what is unread, and a note shows at the window's foot. mail.on_new names a program run for each new mail, with {thread}, {from}, {subject}, {snippet} and {account} (the mailbox's name) in its words and the mail as JSON on its input; no shell is between, so nothing a mail says is run as a command. on_new = ["keepane", "send-message", "--to", "%3", "Mail {thread} from {from}: {subject}"] tells an agent in keepane.

Agents write drafts; you send (unless you let them send: see For agents). An agent reads the mailboxes through ut mcp (mail_threads, mail_thread, mail_search; each conversation says its mailbox) and keeps an answer with mail_draft, or with ut mail draft. The draft shows in its conversation in a dashed box, with Drop, Edit and Send. By default no tool sends: an answer goes out from the mailbox its conversation is in, when you press Send, Ctrl-Enter or S and then y, or answer y to ut mail send. The tools give mails with a note that their words are other people's, to be read as data. An agent that can run commands could still send mail its own way (with curl, say): this keeps the agent's tools from sending; it cannot stop a program.

Plugins

A plugin is a program of its own that UnifyTerm starts and talks with on its standard input and output (JSON-RPC, one message a line; docs/plan-plugins.md is the protocol). It gives data and actions, chats or a calendar say, and UnifyTerm draws them with the keys and the theme of the mail. Being made: the window starts the plugins with background = true, shows each one's mark and unread count beside ✉ (faint while it does not run; its tip says why), a note at its foot for each new thing, and runs on_new; a plugin that ends is started again after 30 s, then twice as long each time, at most 10 minutes. A plugin's key, or a click on its mark, shows its view in place of the terminal (as Ctrl-Shift-M shows the mail), and starts it first when it does not start with the window: its views and filters at the left, the list, the conversation, the same keys as the mail (its views are a row: [ and ] show the view before and the next one from anywhere, and in [1] h/l do, j going down to the list), its own actions on their keys (one that sends, or that gives its own question, asks first), its files opened from its own folder only. A message may be written in Markdown or HTML (the plugin says which): it is drawn as a mail's HTML is, and its pictures are fetched as it shows (images.plugins). A message may also be a diff (git diff), drawn with each line's old and new number at its left, added lines green and removed ones red, its lines not wrapped (the block scrolls sideways); a code block of Markdown or HTML in the language diff or patch is drawn so too. What is copied is the diff as it came. Esc goes back to the terminal. A view whose plugin takes nothing written in it (a feed's articles) has no box and no [4], its conversation the whole height. A plugin's action that takes what is written (an answer on r, say) opens a box under the conversation, with the conversation's draft in it when there is one (an agent's, say): Ctrl+Enter sends what is written, asking first as the plugin says to; > quotes a message, or words selected, into it; c writes something new where the plugin has an action for it. Only the words are written for now: whom to, as the mail's To and Cc, comes with the plugin's list of people. A view of the kind agenda is a calendar: the small month under the views, the day's events by time with a line at now and the event chosen in full, or the week as a grid of hours (w; under 900 pixels wide it stays the day); j/k choose an event, h/l the day, [/] the week, t today, and the plugin's keys answer an invitation (asking first). An action whose input is a form opens it over the view: text, a secret shown as dots, lines, a choice (h/l), a day (h/l a day; empty, it begins at the day shown), a time, and people, found as you type (the plugin's people/suggest); Enter writes in a field, Tab goes to the next, Ctrl+Enter checks what is needed (a day as 2026-12-03, a time as 14:30) and gives it to the plugin, asking first when it sends. A view that says place: "side" is also shown in a column at the terminal's right while you work (Ctrl-Shift-K, keys.side): its items in short rows, j/k and Enter to open the plugin's whole view at one, Esc back to the terminal. A plugin keeps its tokens with UnifyTerm (secret/get, secret/set, secret/delete), sealed as the mail's passwords are and apart from every other plugin's; it may open a page in the browser (a sign-in) only within 10 seconds of your running one of its actions, once for each. With more than one window open, a plugin runs in one of them; the others show its mark faint.

[plugins.feishu]
command = ["unifyterm-feishu"]   # the program and its arguments, run with no shell between
background = true                # started with the window, to tell of new messages
keys = ["ctrl-alt-f"]            # show its view; a default key of the window's gives way to it
pinned = true                    # its own button in the row of tabs (else it is in the panel only)
on_new = ["keepane", "send-message", "--to", "%3", "Feishu {title}: {body}"]
proxy = "socks5://127.0.0.1:7890"  # told to the plugin, for what it reaches; empty: none
log_lines = 10000                # the lines its log views keep, the newest (100 to 100000)

[plugins.feishu.view_keys]       # a view's keys in place of the ones the plugin gives it ([]: none)
chats = ["f9"]

[plugins.feishu.settings]        # given to the plugin as they are; UnifyTerm reads none of it
app_id = "cli_xxx"

Tables and logs. A view of the kind table is rows of the columns the plugin names (containers, pods, jobs): words, numbers, times shown as how long ago, sizes, shares drawn as a bar, tags in the theme's colors, and trends (a row's last numbers drawn as a small line, sorted by the last); the plugin's rules may color numbers, sizes, shares and trends by how high they are (green, then yellow from 50%, red from 80%, say). A row the plugin marks red has its first cell red, one it marks faint (stopped, done) is faint. j/k choose a row, s sorts by the next column and S the other way, / searches every cell, f turns the filter; when the view has details, the row chosen is shown at the right (Enter hides or shows them). A narrow window hides columns from the right and says which. A table may be a tree (processes under their parent, containers under their project): each row under the one it names, set in by its depth, sorted among the rows beside it; o folds or opens the row (on a row with none under it, the row above), O folds every row or opens them all, t lays the rows flat and back (each view keeps what t chose while the window is open; a view may open flat, its busiest rows first), and a search shows the rows found with the rows above them. Space marks rows: an action that acts on many (restart, remove) acts on every row marked, naming each in the question it asks first. A table can be read again every few seconds by itself, and one that says place: "side" shows its rows in the column at the terminal's right, those the plugin marks red first. A view of the kind log is lines that keep coming (a container's, a pod's, or several merged, each source in its color): it follows the newest line; scroll up or press Space and it stays where it is, counting what comes; G follows again. / marks a word in every line and n/N go from one to the next, f shows only the lines with it, v raises the least level shown (info and up, warnings and up, errors, then all again), t and w turn the times and the wrapping, y copies a line. A log may show its volume over the lines: a bar for each stretch of time (a second to a day, so that at most 60 bars are drawn), errors and warnings in their colors, every line counted whatever level or words are shown; H/L choose a bar and go to its first line, stopping, and G follows again. Colors written in a line (ANSI) are drawn in the theme's. A log keeps the newest log_lines lines and is read only while it shows: shown again, it goes on from its last line, none twice. An action can open another view at a row (a container's log from its row; a view the plugin marks opened: "from-item" is reached only that way, and is listed only while it shows, as "Log · shop-api-1"), or ask to run a command in a new tab (a shell in a container): UnifyTerm shows the command in full and runs it only on y.

Charts. A view of the kind chart draws series as lines, areas, bars or dots, over time, numbers or named categories, with values as numbers, sizes, shares or durations; areas and bars may be stacked. h/l move the cursor one place and H/L ten, g/G go to the first and the newest (at the newest it follows new points), and each series' value at the cursor is read out beside it, with the plugin's mark there (a deploy, a restart), if any. 1–9 hide or show a series, / keeps the series whose names match, t shows the values as a table, y copies those at the cursor. A chart over time can show the last 15 minutes, hour or six hours (the plugin names them), - and + choosing; UnifyTerm asks for that span and drops points older than it as new ones come. Past 2000 points a series is drawn from a sample that keeps its peaks; the values read out and copied are the plugin's own. An action can open a chart at a row (a container's CPU from its row), and a chart that says place: "side" shows each series in the column at the right, with its last points as a small line. A table may have a chart under it, taking about a third of the height: of the whole view (a machine's CPU), or of the row at the cursor, read again as the cursor moves (a container's CPU). Tab goes from the rows to the chart and on to the views; the chart takes the chart's keys there, and z makes the part you are in fill the view, or no longer. A chart may name one of the plugin's rules for its values: a line at each step, a faint band from one step to the next, and the points at or over the first step drawn as dots in their step's color.

Timelines. A view of the kind timeline draws rows of states over time (a CI run's jobs and steps; containers running, restarting, stopped), each state in the color the plugin's rule gives it; its rows may be a tree, as a table's. A row with no states of its own shows those of the rows under it: at each moment, the most pressing of them. j/k choose a row, o/O fold, / keeps the rows whose names match. h/l move a cursor of time by a sixtieth of the axis and H/L by ten times that, and the line under the rows gives every row's state at the cursor (Esc hides the cursor); without the cursor, that line gives the chosen row's last state, when that state started and how long it took, and for a row of several states when the first started and how long they took in all. A state that goes on grows each second. The plugin's actions on an item act on the row chosen.

Your own entries. A view of the kind sources holds what you give a plugin yourself: the feeds a reader reads, the calendars it shows. It is a table of the fields the plugin names, a secret one (a calendar's private link, a token) shown as dots, then where each comes from (the settings or here), how it is, when it was last read and how many it holds. a adds one in a form; the plugin reads it first and, when it does not take it, says why on the form, which stays. e changes the fields the plugin lets be changed (a secret left empty stays as it was), x removes one, asking first. An entry from the settings is read only here: change it there. A secret field is kept by UnifyTerm with the plugin's other secrets, before the plugin is asked; the plugin gets its name only, and the secret goes when the entry is refused or removed. An entry an agent proposed (ut mcp) waits after the others, "proposed by" the agent: y opens the form that adds it, holding what it proposed, for you to look at and give any secret (an agent never gives one), and n declines it. A plugin may also say what a view is made of (components: a list and a conversation, with or without a box to write in; a table, with or without details; or entries), and ut plugin check lists them. Any of them may have a line of numbers over it, across the top of the view (stats: a machine's CPU and memory, how many containers run), of the whole view or of the row at the cursor, read again with the view; it has no keys of its own. A number there may be colored by a rule, and may show its last 30 values as a small line, kept while the view, the filter and the row it follows stay the same.

The plugins' panel. Ctrl-Shift-P (keys.plugins; Cmd-Shift-P on macOS), or the ⊞ button at the right of the row of tabs, shows it over the terminal; Tab goes through its three pages, Esc closes it. Open lists every view there is to open, the mail's too: each with its key, how its plugin is and its unread count; type a few letters of its name (fs finds feishu), and Enter, or 1–9, opens it. Installed lists the plugins in the settings, with their versions, where they came from, a later version their source has, and each view's key; there t puts one in the row of tabs or takes it out, c checks it, u updates it, b starts it with the window or when opened, k gives a view another key (Backspace: none), and x removes it, asking first. Install lists the sources and what they offer: Enter asks once, with what the source says of it, and after y downloads it, checks it, greets it and puts it in the settings in the background, then says what it gives; it asks again only if the program is not what its source says (another version, or things it gave were left out). Several can be installed or updated at once, each row saying how it is going, and closing the panel stops none of them. Alt-A adds a source, x takes one away. Only plugins with pinned = true have their own button in the row of tabs; the ⊞ button counts the unread of the others. With updates.check on and a plugin installed from a source, the window reads the sources by itself once a day (and when the panel shows, if a day has gone by): a later version puts a dot on the ⊞ button, and Installed shows how many plugins have one.

A view's keys. A plugin gives each view its keys in its hello: Ctrl-Alt with a letter or a digit, or F1 to F12, so that none takes a key of the shell, of the programs in it, or of the window. [plugins.NAME.view_keys] changes them. A key the window or the settings already have, or an earlier plugin in the settings took, is not given: the panel crosses it out and says who has it, and ut plugin check NAME says the same.

on_new runs once for each new thing a plugin tells of, with {title} (who or what, as Lin), {body}, {view}, {item} and {plugin} (its name here) in its words, and the mail's names in the same places ({from} is the title, {subject} the body); the notice is JSON on its input. No shell is between. A plugin is told the system's language (as zh-CN) and the proxy set here. It has 10 seconds to answer what the window asks, and a minute for an action (sending can be slow): an action not answered in time is said to have maybe been done, so that it is looked at before it is done again.

NAME is small letters, digits and -, not starting with -: two of one program (two accounts) are two names. ut plugin check NAME starts it, says hello and prints what it offers: its views, its actions (one that sends something must ask first, or it is left out; an action's key that UnifyTerm takes first in a view, as k moving up in a table, is said, and the action does not run there), the tools it gives agents (only those that read or draft), and what it wrote on standard error. ut plugin add NAME -- PROGRAM checks it the same way, prints what it offers, and puts it in the settings once it has said hello and you say yes. ut plugin remove NAME takes it out with its secrets and what it keeps in its folder in the data directory. Not on a terminal, both need --yes.

Installing from a source. ut plugin search [WORD...] lists what the sources offer (by default newdee/ut-plugins, UnifyTerm's own plugins), whether this system has a build, and what each needs on your PATH. ut plugin install NAME downloads its program for this system, checks it against the sha256 the source gives, keeps it in the data directory's plugin-programs/, and then adds it as ut plugin add does, asking once it has said hello. ut plugin update [NAME] takes a later version of what was installed so, asking first. ut plugin source add OWNER/REPO (a GitHub repository with a plugins.json, or the address of one) adds a source, asking first: what a source offers are programs that run with your rights. ut plugin source lists the sources; ut plugin source remove takes one away.

Secrets

The mailboxes' passwords and sign-ins and the plugins' tokens are kept in secrets.db in the data directory, each sealed (XChaCha20-Poly1305) with one master key, as a browser keeps passwords: the file alone, copied or read by another program, gives nothing. The system's keychain (Windows' Credential Manager, the macOS Keychain, the Secret Service on Linux) holds that key, one entry for the machine however many mailboxes and plugins there are. Where no keychain can be used (a Linux with no desktop), set secrets.key_command to a program that prints a long random key, at least 16 characters, kept in your password manager: the same key each time opens the same secrets. Neither: nothing is kept, and the error says so; a mailbox's password_command still works, and UnifyTerm then keeps nothing for it. Passwords that versions before 0.11 kept in the keychain, one entry each, are moved into the secrets the first time they are read, and taken out of the keychain.

Environment variables

Variable What it does
UNIFYTERM_CONFIG The settings file ut setting changes, when it is not the default one. UnifyTerm sets it in its tabs when it was started with --config
UNIFYTERM_PROMPT Set by UnifyTerm in its tabs when prompt.enabled is on, to ut's path: the shell's hook then runs ut prompt at every prompt (see The prompt)
UNIFYTERM_DATA_DIR Keep UnifyTerm's data (history, log, command links, shell hooks) in this directory instead of the system's
UNIFYTERM_LOG info or debug: the log file (unifyterm.log in the data directory) also gets what is not a warning, as what the system was told about the window. For looking into a problem
UNIFYTERM_RAW_LOG A file to append every byte the first tab's program prints to (later tabs: .2, .3); unifyterm --replay FILE shows the screen they draw
UT_NATIVE_PATHS On Windows: ut's commands print paths with Windows' own \
UT_NO_GLOB On Windows: ut's commands keep every wildcard as typed instead of expanding it

The variable named by ai.api_key_env holds the model service's key. ut view and ut jq follow NO_COLOR (no colors when it is set); ut jq takes its colors from JQ_COLORS, as jq does.

The commands: ut

ut --list names them (99 on Windows, 114 on Linux): coreutils, findutils, grep, sed, jq, diff, which and others. In a UnifyTerm shell they are on PATH under their own names; elsewhere run them as ut cat FILE, or put them in every shell with ut shell enable.

In every shell (keepane's panes, another terminal, an agent's shell): ut shell enable puts a line at the end of each shell's start file (PowerShell's profile, .zshrc, .bashrc, fish's config.fish) between two marked lines, and on Windows the commands' directory first in your PATH. The line loads a script in UnifyTerm's data directory that puts the directory first in PATH; in PowerShell it also takes cat, ls and the other aliases of the same names out of the way, once in each shell. A shell that is open keeps what it has: open a new one (a new keepane pane). ut shell disable takes out only what enable put in; ut shell status says where it is enabled. After changing commands.system, run ut shell enable again.

Command What it does
ut history recent [-n N] [--cwd DIR] [--long] The commands last run
ut history search TEXT Commands that begin with or contain TEXT
ut history forget TEXT Remove a command from the history
ut view FILE [--mode M] [--width N] A picture, or a video with ffmpeg (no sound; q stops it)
ut md [FILE] Markdown as styled text
ut mcp An MCP server on standard input and output (below)
ut skill [--install DIR] The agents' skill file, printed or written to DIR/unifyterm/SKILL.md
ut --opencli The list of ut's own commands, options and arguments (OpenCLI), as UnifyTerm offers them
ut shell enable|disable|status These commands in every shell, not only in UnifyTerm's tabs (above)
ut program The programs whose command lists UnifyTerm has: name, version, how many commands and options
ut program add FILE|- Check a command list and keep it (- reads standard input)
ut program check FILE|- Check it only: for who writes one
ut program show NAME [WORD...] A program's commands, or one command with its options and arguments
ut program remove NAME Forget a program's list
ut program directory Print the folder the lists are kept in
ut plugin The plugins in the settings (see Plugins)
ut plugin check NAME Start a plugin, say hello, print what it offers and what of it is left out (check -- PROGRAM for one not in the settings)
ut plugin add NAME [--yes] -- PROGRAM [ARGUMENT...] Check a plugin, print what it offers, and put it in the settings as [plugins.NAME] once you say yes
ut plugin remove NAME [--yes] Take a plugin out: [plugins.NAME], its secrets, and what it keeps in the data directory
ut plugin search [WORD...] What the sources offer
ut plugin install NAME [--yes] Download a plugin from a source, check it, and add it
ut plugin update [NAME] [--yes] A later version of the plugins installed from a source
ut plugin source [list], ut plugin source add SOURCE [--yes], ut plugin source remove SOURCE The sources plugins are installed from
ut theme The themes there are, with a sample of each one's colors; * marks the one in use
ut theme NAME Use the theme NAME: it is read first, and one that is wrong is not written
ut theme show NAME Print a theme's file
ut theme new NAME [--from NAME] Begin a theme of your own: a copy of the theme in use, or of the one named
ut theme check FILE Check a theme file only: for who writes one
ut theme directory Print the folder your own themes are in
ut mail [list] [--unread|--waiting|--mine|--all] [--account NAME] [--json] The conversations, newest first, of all mailboxes or one (see Mail)
ut mail show THREAD [--json] One conversation, oldest first, with its draft
ut mail search TEXT [--account NAME] The conversations with TEXT in a subject, a mail or a sender
ut mail draft THREAD FILE|- [--by NAME] Keep an answer as the conversation's draft (- reads standard input)
ut mail send THREAD Show the draft and ask, on the terminal, before sending it
ut mail sync [--account NAME] Read the servers' new mail now, when no window does
ut mail status Each mailbox: its address, servers, what its sync last said, how many are unread
ut mail account list The mailboxes, by name
ut mail account add NAME ADDRESS [--imap H:P] [--smtp H:P] [--login NAME] [--proxy URL] [--auth password|oauth2] Try a mailbox, sign in, and keep it in the settings
ut mail account remove NAME [--yes] Take a mailbox out: its settings, its kept password, the mail kept here
ut mail login [--account NAME], ut mail logout [--account NAME] Keep the password or the sign-in in UnifyTerm's secrets (tried on the server first), or take it away
ut prompt preview The prompt UnifyTerm writes, with the settings and the theme in use (see The prompt)
ut prompt --shell NAME ... The prompt for a shell's hook: what UnifyTerm's tabs run at every prompt

For agents

  • The sidebar (Ctrl-Shift-A) shows the agents in keepane's panes (keepane is a terminal multiplexer): model, cost, context, CPU, memory. A cost or a context share keepane does not know is left out of the card; a cost with a + ($2.10+) is less than the real one, because keepane has no price for some of the tokens. It asks keepane only while it shows.
  • ut mcp gives an agent eight tools: history_search, history_recent, list_commands, command_help, and for the mail mail_threads, mail_thread, mail_search, mail_draft. It reads the history and the mail, keeps drafts, and runs nothing; it sends only where you let it (below). Each plugin in the settings adds its own tools, named PLUGIN_TOOL (the plugin's name in the settings first): those that read or write a draft, each answer marked as other people's words. UnifyTerm also makes two tools from a plugin's views: PLUGIN_read reads the views the plugin lets agents read (an inbox's items or one conversation, a table's rows or one row, each with the row it is under in a tree and a trend as its last number, a timeline's rows with their states, a calendar's next seven days, the entries of a sources view with any secret left out; first the view's line of numbers when it has one), set out by UnifyTerm after a note that the words are other people's; PLUGIN_propose proposes an entry (a feed, say) to a sources view that takes proposals, which waits there until you add it or not. The plugins start when the tools are first listed and end with ut mcp. Register it with Claude Code: claude mcp add unifyterm -- ut mcp.
  • Letting agents send. By default an agent reads and writes drafts, and you send. For work that runs by itself, let it send: mail.agents = "send" (or agents = "send" in one [mail.accounts.NAME]) adds mail_send, which sends an answer, or the conversation's draft, at once; [plugins.NAME] agents = "send" gives agents that plugin's tools that send. Each send is counted, at most agents_most an hour (20 unless you say; then the agent is told to write a draft), written to agents-sent.jsonl in the data directory, told of at the window's foot, and a mail sent so shows "sent by" and the agent's name. Only the settings file turns it on; no tool does. Mind what this lets in: anyone who can write to you can write words meant for the agent, asking it to send, forward or answer for you; while it only drafts, the worst is a draft you see, and once it may send, it goes. An agent that can change your files can also change the settings: this is your leave, not a fence.
  • The skill (skills/unifyterm/SKILL.md, or ut skill) tells an agent how to work in UnifyTerm.

Where things are

What Windows macOS Linux
Settings %APPDATA%\unifyterm\config.toml ~/Library/Application Support/unifyterm/config.toml ~/.config/unifyterm/config.toml
Your own themes %APPDATA%\unifyterm\themes ~/Library/Application Support/unifyterm/themes ~/.config/unifyterm/themes
History, mail (mail.db, its files in mail-files/), secrets (secrets.db), log, links, command lists (programs/) %LOCALAPPDATA%\unifyterm ~/Library/Application Support/unifyterm ~/.local/share/unifyterm

The history is one SQLite file, history.db; a copy works on every system. update.json beside it keeps what GitHub last said about the latest version (updates.check): once a day the window asks api.github.com for it, telling it only unifyterm/VERSION. With a plugin installed from a source, the same setting has the window read the sources' plugins.json once a day.

Known limits

  • No sound with video; ffmpeg must be installed for video.
  • UnifyTerm draws kitty's graphics protocol; sixel and iTerm2 images are for ut view in other terminals.
  • PowerShell's Tab completion still writes paths with \; ls -R and find -exec print uutils' own \ paths on Windows.
  • The shell hooks (history, the list while typing) need PowerShell 7 or 5.1, cmd, bash, zsh or fish.
  • macOS: CI builds it, runs the tests and starts it, and it is checked on one Mac; it has been used little there by hand. 0.1.0 did not start a login shell there (PATH lacked Homebrew) and started tabs in /: both fixed in 0.1.1.
  • On macOS with history.enabled = false, zsh, bash and fish have no start file of UnifyTerm's, so the system's directories come before UnifyTerm's commands in PATH.
  • The programs the window starts (the agent sidebar's keepane, mail.on_new, password_command, an AI command line, plugins) are found in UnifyTerm's own PATH or, on macOS and Linux, in your login shell's ($SHELL -l -c 'printenv PATH', asked once), and then run with that PATH. A PATH that only your .zshrc sets is not seen: then give the program's full path.
  • On Windows the command links are hard links to ut.exe: after an update they lead to the old one until UnifyTerm opens a window or ut shell enable runs again.
  • Where the model is: Claude Code and Codex were tried with their real answers (a command with a fitting program for 30 of 30 sentences with Claude Code, 10 of 10 with Codex). The services (openai, ollama, lm-studio, vllm) are written to their documents and tried against a stand-in on this machine, not yet against the real thing; pi is written to its documents. No model is right every time: read a command before you run it.
  • A correction from an agent's command line comes 10 to 40 seconds after the command that was not found, and each one starts the agent once: ai.fix = false turns that off.
  • Command lists: a list tells the commands a program has, not what is on this machine now, so there are no session names, branch names or file names in what is offered. OpenCLI is a draft (version 0.1); UnifyTerm reads the root shape of 2026-04 and the one before it. The lists tried: git, curl, ffmpeg and dotnet from the OpenCLI project's examples, and small ones written for the tests.
  • window.tab_bar = "auto-hide": while the row is out of the way, the window's buttons and the part that moves the window are out of the way with it; the pointer at the top edge brings them back. On macOS the system's three buttons are hidden with the row and shown with it (0.6.0; before, the row kept out of the way in full screen only).
  • theme.opacity, theme.blur and theme.corners were measured on Windows 11, on the screen itself (behind a half-opaque window, an even mix of the two colors; stripes behind it blurred; the window's corner cut by 1, 2 or 3 pixels). Opacity and blur have not been looked at on macOS or Linux: on Linux they need a compositor, and X11 has no blur. theme.corners does nothing but on Windows 11.
  • The picture at the foot of the sidebar and the wallpaper are read again when the settings or the theme's file change, not when only the picture's own file is written anew. The sidebar's picture is not shown in a window less than 480 pixels high.
  • The row of tabs, the lists, the boxes and the sidebar were redrawn in 0.5.0 and looked at on Windows only: macOS and Linux build them and run the tests.
  • The white-text rule for light themes covers white and bright white on the theme's background. A program that writes another color the theme has made light is left as it wrote it.
  • A wallpaper is blended toward its own edges where the window shows them, over about half a pixel of the picture: 2 rows of the window for a picture of 400 by 200 made 3 times larger, and more the smaller the picture is. A picture of the window's size or larger shows none of it.
  • Mail: read while a window is open or ut mail sync runs; the inbox and the sent folder only. The browser sign-in (Outlook) was tried against a pretend sign-in service; against Microsoft, only as far as getting a code. Attachments are named, not saved or opened. The answer line takes text at its end (Backspace, no cursor within it). It was tried against a pretend IMAP and SMTP server on this machine, through SOCKS5 and HTTP proxies too, not yet against each real service; the window was looked at on Windows only.
  • The Windows builds are not signed, and the macOS builds are not notarized.

License

MIT (LICENSE). The licenses of everything built in are in THIRD-PARTY-NOTICES.

Jelajahi proyek terkait

Memuat…