Terminal Documentation

Install and configure YEN for macOS. Find terminal shortcuts, dictation setup, workspace tools, and CLI workflows.

Get Started

StepAction
1. DownloadOpen the .dmg file
2. InstallDrag YEN to Applications
3. First launchOpen YEN from Applications
4. UpdatesChoose Check for Updates in YEN; automatic checks are optional

Requires macOS 13 Ventura or newer on Apple silicon or Intel. No YEN account is required. Dictation needs Accessibility, Microphone, and Speech Recognition permissions; see dictation setup.

Workspace

YEN starts with a native macOS terminal and layers IDE workflows around it. Settings and workspace panels use native macOS UI; browser preview uses Apple WebKit. Editor commands can open your configured external editor.

The terminal renders with Metal. Windows, tabs, split layouts, and positions restore on relaunch; this does not resume running commands. Use the shortcut reference for tabs, splits, Quick Terminal, and window screenshots.

  • Scratchpad: one locally saved notes buffer shared across windows. It supports copy, paste, and copy-on-select when enabled.
  • Layouts: ten presets from the File menu, the command palette, or Cmd + Option + 1-0. Single Pane requires a second invocation to confirm closing other panes.
  • Bundled tools: fd, rg, fzf, zoxide, bat, jq, and other terminal helpers. IDE integrations can require additional tools; see IDE Workflows.
  • Shell integration: automatic detection supports bash, zsh, fish, elvish, and nushell. YEN command wrappers and cd-on-quit are supplied for bash and zsh.

Local Git changes

Press Cmd + Shift + G for the read-only Git drawer. It shows branch status, changed files, stashes, and raw diffs for the focused split. It follows directory and focus changes independently of the tab sidebar. Use yengit for Git operations, or the command palette for PR review and merge-conflict workspaces.

Tab Sidebar

Press Cmd + Shift + B. Select a tab to switch, double-click its title to rename it, or use its color chip. Custom titles restore on relaunch. Press Esc to dismiss the transient sidebar when not editing.

The pin button switches between a transient overlay and a docked rail. Docked mode is unavailable in fullscreen and Quick Terminal. The gear opens General settings; the footer creates a tab.

Rows show the focused split's directory, Git state, and recent task status when available. Untrusted local paths, remote sessions, and multiplexers can leave directory and Git details blank.

Split Pane Labels

Enable Settings > General > Pane Labels, then run Rename Split Label from the command palette. Leave the name blank to return to automatic naming. Labels are off by default and separate from tab titles.

Turn on Name Panes After Worktree to use the worktree folder or branch. An agent can report its directory with yen pane cwd; this does not change your shell's directory or where new splits open. A custom label overrides automatic naming and survives session restore.

Labels hide in very small panes, during drag and drop, and while hovering over a URL.

Clipboard & Paste

With the default bindings, Cmd + C copies the terminal selection and Cmd + V uses the native paste action, including in terminal applications. Custom bindings are respected; applications still control how pasted text is handled.

ActionWhat YEN does
Cmd + CCopies the selection. With copy-on-select on (default), releasing the mouse already copies — hold Shift to select inside TUIs that capture mouse events.
Cmd + VUses the native paste action when bound to paste. A custom non-paste binding is not overridden.
Paste an image (screenshot, copied picture)YEN materializes it as a temp file in a private, auto-pruned directory and pastes the path — ready to cat, cp, or hand to your editor.
Right-click in a terminalNative macOS context menu with Copy / Paste / Paste as Plain Text / Paste from Selection.

Copy on Select can be disabled in Settings > General. File URLs paste as paths; image-only clipboards become temporary image files.

IDE Workflows

Run yen ide --help for the full command reference. Start with the status commands below, then grant trust only for the capabilities you need.

Before you start

Run commands from your project directory. Trust is granted per project and capability; a status command does not grant it. LSP and AST tools need Python 3 and the relevant language server or compiler. Debugging needs Python, Node, or LLDB. Devcontainers need the devcontainer CLI and a container runtime. Sharing needs upterm or tmate and OpenSSL. GitHub review needs an authenticated GitHub CLI; agent adapters need the corresponding Claude or Codex CLI and its own authentication.

Start with project status:

Terminal
$ yen ide doctor
yen ide trust status
yen ide test status
yen ide workflow discover
yen ide lsp status
yen ide --help
Workflow commands and requirements
CommandWhat you get
yen ide doctorAggregated repo health: blockers, warnings, verify / security / debugger readiness, with remediation copy in text / JSON / env
yen ide debugTrust-gated Python pdb, Node inspect, and LLDB sessions, locally or over SSH. Node starts at entry; LLDB requires an executable. Attach-to-process and direct TypeScript debugging are not supported.
yen ide searchProject-scoped search across files, symbols, content, history, diagnostics, and actions; powers the macOS Cmd + Shift + P palette and adds CODEOWNERS / git-history routing hints in repo-backed CLI search
yen ide lspLocal LSP lifecycle plus hover, definition, references, code actions, rename, and grouped diagnostics with freshness state
yen ide astPolyglot AST fallback for Python, JS / TS, Go, and Swift with parser-labeled engines; explicit no-fallback guidance for Rust / Zig
yen ide devcontainer / vscodeLocal + remote devcontainer control and deterministic VS Code inventory / import with dry-run diffs and migration-report artifacts
yen ide shareTerminal sharing over upterm / tmate with a passphrase-encrypted join token, read-only or interactive mode, expiry, and revoke
yen ide explain (??)Failed-command explanation with project-aware hints
yen ide verify / gateVerification reports, evidence bundles, and approval checkpoints. Security scans need their external tools; missing tools are reported.
yen ide format / lint / fixRepo-native quality baseline with dry-run planning, changed-file scoping, and approval gating
yen ide workflowRepo-native task discovery + execution over package, make, just, and task sources, local or remote (ssh://...)
yen ide test status / runLocal runner discovery, failed-test replay, and watch-mode loops with explicit runner selection
yen ide trust status / revoke / resetWorkspace trust records, share approvals, and local reset controls for trusted project state
yen agentsAdapter board for separately installed Claude / Codex sessions with workspace timeline, handoff notes, and Markdown / JSON evidence export linked to local verify, test, and PR-review artifacts
yen ide pr-reviewFocused PR diffs, hunk navigation, inline comments, and a desktop workspace launched from Cmd + Shift + P with raw selectable previews and posting + decision actions
Optional local test and workflow examples

These commands run project code. Use them only in a project you trust, with the named runner or package script available. Review each command's help and grant the requested trust first.

Terminal
$ yen ide test run --runner node-test --watch --watch-interval 0.5 --max-runs 3
yen ide workflow run --native package.json:test --dry-run
yen ide workflow run --native package.json:test --watch --watch-interval 0.5 --max-runs 2

On macOS, Cmd + Shift + P opens the command palette for actions and project search. It can jump straight to matching files and lines, and in trusted local repos it also launches dedicated PR review and merge-conflict workspaces.

Remote targets are supported by detect, doctor, trust status, verify status, workflow, devcontainer, debug, and share. Use ssh://user@host/absolute/path and check the command's help for supported options. SSH probes need Python 3 on the remote host. Local-only options such as --watch remain blocked instead of silently degrading.

Speech-to-Text

Recorded dictation demonstration. Use the setup instructions below for current permissions and platform requirements.

In Settings > Dictation > Permissions, grant Accessibility, Microphone, and Speech Recognition. Focus a text field, hold Option + Space, speak, and release to paste. Use no extra modifiers.

On macOS 26+, Apple's SpeechAnalyzer transcribes on-device after language assets are installed. Prepare missing assets in Settings. YEN imposes no 60-second timer on this path, but system or input errors can end a session. Older macOS and runtime fallback use Apple's legacy recognizer: it stops after 60 seconds and may use Apple's service when on-device recognition is unavailable. YEN receives no audio or transcripts.

Turn on Show Live Transcript in Settings > Dictation to see partial text. Translate Dictation is off by default and requires macOS 26+ and an installed language pair. A translation failure inserts the original transcript.

Successful in-app paste restores the previous clipboard; cross-app paste leaves the transcript there.

Recording indicator

A recording dot blinks in the menu bar while listening. Release to paste.

Choose a microphone in Settings > Dictation. System Default follows macOS; an unavailable selected device falls back to it. A change during recording stops that capture; select a device before restarting.

Secure Input blocks both clipboard writes and automatic insertion. If the target changes or automatic paste fails, YEN leaves the transcript on the clipboard for manual paste and shows a recovery notification.

Pro tip: On older macOS, release and press again for longer content. Enable Open YEN at Login in Settings> General for dictation without a terminal window open.

Settings

Press Cmd + ,. The window is a live terminal preview: every appearance change shows in it at once. Five panes float beside it. Changes apply immediately except background opacity, which applies the next time you open YEN.

YEN Settings on the Appearance pane: a live terminal preview on the left, the theme dock below it, and the Appearance controls in a glass panel on the right.
Appearance: the preview shows each change as you make it.
The same Settings window after picking a light theme from the dock: the preview switches to the light colors.
Pick a theme from the dock to preview it.
The Shortcuts pane: shortcut groups across the top and each shortcut as a button you click to record new keys.
Shortcuts: click a shortcut, then press the new keys.
  • Appearance: pick one of the bundled themes from the theme dock, then set the font, cursor, opacity, padding, a PNG or JPEG background image, and the window border.
  • General: open at login, copy on select, the scroll bar, the tab sidebar, pane labels, the scratchpad, and how terminal links open.
  • Notifications: command-finish alerts, one alert sound each for General and Build notifications, and what happens while YEN is active.
  • Dictation: permissions, the microphone, the live transcript, and translation.
  • Shortcuts: click a shortcut, then press the new keys. Conflicts with macOS and other apps show under the row. Fixed shortcuts are locked.

Reset All Settings in General restores every setting and shortcut; Restore Default Shortcuts in Shortcuts restores only shortcuts.

Advanced configuration
Config file
~/Library/Application Support/com.yenchat.yen/config.yen

This file does not hold every Settings preference. Window border, workspace, notification, and dictation choices are stored in macOS preferences for YEN.

File Browser

Press Cmd + Shift + O to open the file browser in the active terminal. It does not open as a floating window or global sidebar, and it will not steal focus from another window. Browse directories, preview files, and manage the project without leaving the terminal.

Terminal-native with cd-on-quit

Launch with the shortcut or y in a YEN bash or zsh shell. Press q to exit and your shell follows the last directory you visited. The browse command opens the same browser without changing the shell directory. Press Enter on a code file for a colorized read-only preview, or O for open-with.

FeatureDetails
File previewsSyntax-highlighted code, images, archive listings, and video / PDF thumbnails
Quick LookSpace for native macOS preview
Search and fuzzy find/ to find in the current directory, z for fuzzy file / directory search, and Z for frequent directories
File operationsCopy, move, trash or delete, bulk rename, archive extract
Vim + mouse navigationh / j / k / l, visual selection, click, scroll
Git status indicatorsModified, staged, untracked icons inline
cd-on-quitq to exit; shell follows to last directory
Open in editor / Findere for $EDITOR, g r for Finder
Full shortcut referencePress ? inside the file browser

Browser Preview

Open the command palette with Cmd + Shift + P, search Browser, web preview, localhost, or dev server, and press Enter. Search terminal browser for Browser Split. YEN opens a native WebKit window or explicit split for docs, HTTPS pages, and localhost/loopback development servers.

Native and isolated

WebKit connects directly to each site you open, and YEN does not receive that browsing activity. The browser uses a non-persistent WebKit data store. yen web can open, navigate, reload, close, and report status, with explicit window, split, automatic, or focused targets for stateful commands. When the CLI can identify the intended app copy, status confirms the executable that answered. Terminal link capture is off by default, explicit-activation only, and controlled from Settings > General > Links. There is no bundled browser runtime.

Terminal
yen web open https://yen.chat/docs
yen web open --split http://localhost:3000
yen web reload --target window
yen web status
yen web close
URLBehavior
https://...Opens in YEN
http://localhost, 127.0.0.1, ::1Opens in YEN
mailto:, tel:Hands off direct links to macOS; blocked in embedded frames
file:, data:, javascript:,blob:, unknown schemes, non-local http:Blocked

macOS Automation

On macOS 14+, YEN also exposes actions in Apple Shortcuts. The macos-shortcuts config accepts ask, allow, or deny. The default asks for permission by action scope. Action invocation is limited to YEN's approved command catalog.

YEN ships a branded AppleScript dictionary for local macOS automation. It is enabled by default and can be disabled in config.yen with macos-applescript = false. Target YEN by absolute bundle path when scripting a specific build.

SurfaceAppleScript boundary
windows, tabs, terminalsAddress live terminal surfaces
new window, new tab, splitCreate project workspaces with surface configuration
input text, send key, send mouse button, send mouse position, send mouse scrollInject local input after macOS automation permission
pid, ttyRead foreground process ID and PTY path
perform actionAllowlisted command-catalog actions only

AppleScript can create windows, tabs, and splits with an initial working directory and input. YEN-native overlays such as layout presets, scratchpad, tab sidebar, and PR review workspaces remain command-palette or config-driven instead of being cloned into a second scripting model.

send key does not derive text from your active keyboard layout. Use input text to send literal text.

AppleScript
on yenNewWindow(appPath, surfaceConfig)
	tell application appPath
		return «event GhstNWin» given «class GNwS»:surfaceConfig
	end tell
end yenNewWindow

set appPath to "/Applications/YEN.app"
set projectRoot to "/absolute/path/to/project"
set windowRef to yenNewWindow(appPath, {initial working directory:projectRoot, initial input:"git status" & linefeed})

tell application appPath
	get tty of terminal 1 of windowRef
end tell

Commands & Shortcuts

Default shortcuts are listed below. Editable bindings can change in Settings > Shortcuts.

Keyboard shortcuts:

ActionKey
Command paletteCmd + Shift + P
Browser previewCommand palette → Browser / Browser Splitsearch web preview, localhost, or terminal browser
SettingsCmd + ,
File browserCmd + Shift + O
Speech-to-textOption + Space
Split layout presetsCmd + Option + 1-0
Split in a directionHold ← / → / ↑ / ↓, then press Cmd + D
Split right / downCmd + D / Cmd + Shift + D
New tab / windowCmd + T / Cmd + N
Close tab / paneCmd + W
Quick TerminalCtrl + `
Window screenshot to file and clipboardCmd + Shift + S
Tab sidebarCmd + Shift + B
Git drawerCmd + Shift + G
ScratchpadCmd + Shift + J
Copy screen file pathCmd + Ctrl + Shift + U
Paste screen file pathCmd + Shift + U
Open screen fileCmd + Option + Shift + U
Copy-on-selectSelect text; hold Shift in TUI apps
Find terminal textCmd + F
Focus adjacent splitCmd + Option + Arrow
Zoom focused splitCmd + Shift + Enter
Font size +/-Cmd + + / Cmd + -
Toggle fullscreenCmd + Enter
Rename split labelCommand palette → Rename Split Label

CLI commands:

YEN-launched bash and zsh shells include command wrappers. In an external shell, run yen init zsh or yen init bash to print setup code. Review and add that output to your shell startup file (~/.zshrc, or ~/.bashrc / ~/.bash_profile), then restart the shell. The command does not edit those files. If yen is not on PATH, invoke /Applications/YEN.app/Contents/Resources/bin/yen.

CommandDescription
btop (monitor, resources)System monitor TUI (bundled btop)
fastfetch (fetch)System info snapshot (bundled fastfetch)
biosSystem info snapshot with YEN BIOS branding
browse (files, fm)File browser
webNative browser controls and optional split target
yFile browser with cd-on-quit
yengit (lazygit, gitlazy, gityen)Git TUI (bundled lazygit)
yen helpFull command reference and aliases
yen ide --helpSee IDE Workflows for capabilities and prerequisites
yen agents --helpClaude / Codex adapter help; see IDE Workflows
yen pane cwd <directory>Report an agent worktree from an agent or hook; use yen pane --help for hook setup and clearing a report. The next shell prompt clears it.
yen +list-themesList curated bundled themes
yen +edit-configOpen config in $EDITOR
yen init zshPrint shell setup for external zsh
yen init bashPrint shell setup for external bash
yen updateCheck signed release metadata (requires OpenSSL 3); install updates through YEN
yen config / reloadShow the config location / reload terminal configuration
yen --versionShow version

Need the complete command + alias reference? Run yen help. For full file browser shortcuts, press ? inside the file browser.

Custom keybindings:

Shortcut editing lives in Settings > Shortcuts. For advanced changes, edit the config file directly.

Troubleshooting

  • App won't open: Right-click YEN.app, then Open, or allow in System Settings > Privacy & Security.
  • Commands not found: Follow the shell setup instructions. In YEN, check that shell integration is enabled. Bare command wrappers and y require bash or zsh.
  • Speech-to-text not working: Grant Accessibility, Microphone, and Speech Recognition permissions in System Settings > Privacy & Security. Dictation listens to exact Option + Space only (no Cmd/Ctrl/Shift). Click the YEN menu bar extra (a template waveform when idle, or the recording-dot status item while dictation is active) for blocked-state recovery actions, or open Settings > Dictation, where the permission status refreshes while the pane is open.
  • Option + Space conflicts: Check for conflicts with input source, Spotlight, Alfred, or Raycast shortcuts. Use Settings > Shortcuts for fixed-shortcut conflict guidance.
  • Layout shortcut not firing: Use exact Cmd + Option + 1-0 with no extra modifiers and click a terminal window first. Layout presets are intentionally ignored while Settings or another utility window is key.
  • Cursor style / blink not previewing: Changes are applied, but preview appears after you refocus a terminal window (unfocused terminals show a hollow block cursor).
  • Opacity slider looks unchanged: Background opacity applies after app restart. Use Window Border for an immediate focus cue.
  • File browser not opening: Verify the terminal window is focused, not the Settings panel or another window.
  • Browser preview blocks a URL: Use HTTPS for remote pages or localhost / loopback HTTP for local development servers. File, data, JavaScript, blob, unknown-scheme, and non-local HTTP URLs are intentionally blocked.
  • "command not found: y": The cd-on-quit wrapper is supplied only in YEN-launched bash and zsh shells. External shells can use yen browse, which does not change the shell directory.
  • btop / fastfetch runs a system command: Check the shell setup and restart the shell. YEN's wrappers should resolve the bundled tools.

Back up config.yen before resetting terminal settings:

Terminal
$ mv "$HOME/Library/Application Support/com.yenchat.yen/config.yen" "$HOME/Library/Application Support/com.yenchat.yen/config.yen.backup-$(date +%s)"

Quit YEN before moving the file, then reopen it. This removes the overrides stored in config.yen (font, cursor, background opacity, padding, theme, keyboard overrides). Preferences kept in macOS UserDefaults — Window Border, workspace and link toggles, dictation preview and translation state, and notification routing — survive this. To restore every in-app preference, open Settings (Cmd + ,) > General and use Reset All Settings.