vev

command module
v0.11.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 20, 2026 License: MIT Imports: 3 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

vev

Last commit GitHub stars

Norwegian: to weave

A minimal, remote friendly terminal multiplexer for Linux and macOS.


Three modes

Mode Command What you get
Local vev Sessions on this machine, kept by a local daemon.
Remote vev attach user@host Sessions on a server, rendered there and sent as small diffs over SSH + QUIC.
Hybrid vev host add user@host Local and remote sessions in one picker; switch between them without leaving vev.

Remote and hybrid need vev installed on the remote host. Use vev host add --transport ssh user@host for SSH only. See remote sessions.

Features

  • No prefix key: Alt shortcuts plus a command palette with short codes.
  • Tabs, splits, stacks, and a floating terminal per tab.
  • Persistent sessions: detach and re-attach; named sessions survive daemon restarts.
  • Browser terminal: the same UI in a private web page.
  • Copy mode with vim motions, notifications, and a fuzzy session picker.
  • Scriptable: vev cmd controls a running daemon; --ui-driver drives it headlessly.

Install

curl -fsSL https://git.bnema.dev/vev/raw/main/install.sh | sh
# Arch Linux: yay -S vev-bin
# or: go install bnema.dev/vev@latest

Releases support Linux x86_64/arm64 and macOS Apple silicon.

Usage

vev                              new numbered session
vev new <name>                   new named session
vev attach <name>                attach (alias: a)
vev attach user@host[:session]   attach to a remote host
vev ls [<host>|--all]            list sessions
vev host add|rm|list             manage remote hosts
vev kill <name>|--sessions       kill one or all sessions
vev kill --all                   stop vev entirely
vev --web-daemon                 start the browser terminal
  • Numbered sessions survive detach, not a daemon stop. They close when their last client exits (ephemeral.close-on-exit).
  • Named sessions also come back after kill --all or a daemon restart (recovery).
  • The daemon starts on first use. Exiting the last shell of a session returns you to your previous one.

Keys and palette

Key Action
Alt+Space command palette
Alt+f floating terminal
Alt+1 … 9 switch tab
Ctrl+1 … 9 switch to a recent session (kitty keyboard terminals)
Alt+h/j/k/l or Alt+Arrow focus pane
Alt+a jump to a bell or a finished agent

Type a code or fuzzy-search the palette. Common default codes:

Code Action Code Action
CNT new tab CNS new named session
SPR / SPL split right / left SPU / SPD split up / down
STP / TFS stack / toggle stack TFP floating terminal
MFP / MAT move pane / tab SSP session picker
DET detach NTC notifications
  • Session picker (SSP): ↑/↓ or j/k to move, / to search, s to sort, x to kill, Escape or q to close.
  • Copy mode: scroll up, then vim motions, v to select, y to copy.
  • With local and remote daemons attached, CNS asks where to create the session.

Configuration

Optional file: ~/.config/vev/config. Changes apply live.

theme = auto                 # auto, dark, or light
open-palette = alt+space     # any binding can be changed
code.new-tab = CNT           # any palette code can be changed
floating.command =           # empty = your shell
scrollback.megabytes = 50
bar.top-right = date +%H:%M  # status command shown in the bar

Full list: configuration.

Browser terminal

vev --web-daemon serves the UI on 127.0.0.1:8778 and prints a private link. Use --web-listen and --web-origin behind an HTTPS proxy. See browser terminal.

Scripting

vev cmd controls a running daemon without starting one:

vev cmd split-right
vev cmd toast -l warn "build failed"
vev cmd list-panes --json
vev cmd env --json

Use vev cmd --help for all commands. For headless capture and input, see UI driver.

To refresh WAYLAND_DISPLAY, SSH_AUTH_SOCK, and other desktop variables in a running shell after you attach from another place, hook vev env fish | source (or eval "$(vev env sh)") into your prompt. See environment.

Documentation

Development

Use VEV_ENV to keep development runs separate from your installed vev and from other builds:

VEV_ENV=dev go run .
VEV_ENV=dev go run . kill --sessions
rm -rf .dev/dev

Each name gets its own daemon, config, sessions, and logs under .dev/<name>/. It is not a sandbox.

make test   # go test ./... -race
make lint   # goimports check, go vet
make mocks  # regenerate mocks
make demo   # regenerate docs/assets/demo.gif (needs Docker)

Contributor docs: architecture, protocol, performance measurement.

Documentation

The Go Gopher

There is no documentation for this package.

Source Files

  • main.go

Directories

Path Synopsis
cmd
internal
adapters/brokerconfig
Package brokerconfig owns the strict, isolated offline broker sandbox configuration.
Package brokerconfig owns the strict, isolated offline broker sandbox configuration.
adapters/brokeripc
Package brokeripc adapts the per-user broker service to private Unix IPC.
Package brokeripc adapts the per-user broker service to private Unix IPC.
adapters/brokerstore
Package brokerstore provides broker persistence.
Package brokerstore provides broker persistence.
adapters/brokerwire
Package brokerwire owns the broker conversation's directional Protobuf codec.
Package brokerwire owns the broker conversation's directional Protobuf codec.
adapters/clipboard
Package clipboard implements ports.ClipboardReader over Wayland's wl-clipboard CLI (wl-paste).
Package clipboard implements ports.ClipboardReader over Wayland's wl-clipboard CLI (wl-paste).
adapters/clock
Package clock provides the production ports.Clock: a thin wrapper over the standard library's time package.
Package clock provides the production ports.Clock: a thin wrapper over the standard library's time package.
adapters/daemonidentity
Package daemonidentity persists the stable authenticated identity of the per-user daemon.
Package daemonidentity persists the stable authenticated identity of the per-user daemon.
adapters/daemonmux
Aggregate listener over multiple physical listeners.
Aggregate listener over multiple physical listeners.
adapters/ipc
Package ipc adapts vev's ports to inter-process communication implementations.
Package ipc adapts vev's ports to inter-process communication implementations.
adapters/lifecycle
Package lifecycle provides exclusive process ownership of vev's durable state for the complete daemon lifetime.
Package lifecycle provides exclusive process ownership of vev's durable state for the complete daemon lifetime.
adapters/noticefile
Package noticefile persists undeliverable daemon notices as newline- delimited JSON so they survive a daemon restart and can be shown at the next client attach.
Package noticefile persists undeliverable daemon notices as newline- delimited JSON so they survive a daemon restart and can be shown at the next client attach.
adapters/observability
Package observability contains concrete process-local trace sinks.
Package observability contains concrete process-local trace sinks.
adapters/protoconv
Package protoconv holds the single canonical implementation of the semantic protocol value <-> generated wire envelope converters shared by internal/adapters/sessionwire and internal/adapters/brokerwire.
Package protoconv holds the single canonical implementation of the semantic protocol value <-> generated wire envelope converters shared by internal/adapters/sessionwire and internal/adapters/brokerwire.
adapters/pty
Package pty adapts vev's ports to pseudo-terminal implementations.
Package pty adapts vev's ports to pseudo-terminal implementations.
adapters/quic
Package quic carries complete serialized Protobuf envelopes over one bidirectional QUIC stream per connection.
Package quic carries complete serialized Protobuf envelopes over one bidirectional QUIC stream per connection.
adapters/quicnettest
Package quicnettest provides a deterministic, unprivileged UDP carriage simulator for adverse-network tests of QUIC-like traffic.
Package quicnettest provides a deterministic, unprivileged UDP carriage simulator for adverse-network tests of QUIC-like traffic.
adapters/sessionwire
Protobuf semantic converters.
Protobuf semantic converters.
adapters/sshstdio
Package sshstdio adapts an ssh subprocess' stdin/stdout into vev's framed Transport interface.
Package sshstdio adapts an ssh subprocess' stdin/stdout into vev's framed Transport interface.
adapters/streamframe
Package streamframe carries length-delimited Protobuf envelopes over one reliable ordered byte stream.
Package streamframe carries length-delimited Protobuf envelopes over one reliable ordered byte stream.
adapters/term
Package term adapts vev's ports to terminal I/O implementations.
Package term adapts vev's ports to terminal I/O implementations.
adapters/uidriver
Package uidriver exposes attachment UI primitives through bounded JSONL.
Package uidriver exposes attachment UI primitives through bounded JSONL.
adapters/uiterm
Package uiterm provides a deterministic VT-backed client terminal for UI automation and an observation sink for interactive terminals.
Package uiterm provides a deterministic VT-backed client terminal for UI automation and an observation sink for interactive terminals.
adapters/webterm
Package webterm connects the ordinary client terminal boundary to a browser.
Package webterm connects the ordinary client terminal boundary to a browser.
app
Package app wires vev's runtime together via dependency injection.
Package app wires vev's runtime together via dependency injection.
domain
Package domain contains vev's pure domain types.
Package domain contains vev's pure domain types.
domain/terminalcap
Package terminalcap owns pure terminal capability values and detection policy.
Package terminalcap owns pure terminal capability values and detection policy.
ports
Package ports defines the interfaces that decouple vev's core from its adapters.
Package ports defines the interfaces that decouple vev's core from its adapters.
protocol
Package protocol defines vev's typed, transport-neutral client/daemon contract.
Package protocol defines vev's typed, transport-neutral client/daemon contract.
protocol/catalogue
Package catalogue owns the independently versioned remote discovery schema.
Package catalogue owns the independently versioned remote discovery schema.
protocol/wire
Preamble and envelope limits for vev's Protobuf wire contract.
Preamble and envelope limits for vev's Protobuf wire contract.
snapshotcodec
Package snapshotcodec owns the durable snapshot format: the session codec, checkpoint manifests, content-addressed objects, and their bounded preflight.
Package snapshotcodec owns the durable snapshot format: the session codec, checkpoint manifests, content-addressed objects, and their bounded preflight.
testutil/replaytest
Package replaytest owns the protocol-neutral transport replay fixture and assertions shared by transport adapter tests.
Package replaytest owns the protocol-neutral transport replay fixture and assertions shared by transport adapter tests.
usecase
Package usecase implements vev's application use cases.
Package usecase implements vev's application use cases.
usecase/agentactivity
Package agentactivity detects what an agent CLI running in a pane is doing from its process identity and its rendered screen text.
Package agentactivity detects what an agent CLI running in a pane is doing from its process identity and its rendered screen text.
usecase/broker
Package broker owns per-user connectivity: configured hosts, daemon reachability and catalogue snapshots, pooled physical transports, and multiplexed logical streams.
Package broker owns per-user connectivity: configured hosts, daemon reachability and catalogue snapshots, pooled physical transports, and multiplexed logical streams.
usecase/colorprofile
Package colorprofile maps terminal color capabilities to the vev-vt renderer color profile.
Package colorprofile maps terminal color capabilities to the vev-vt renderer color profile.
usecase/daemon
Package daemon holds vev's server-side session multiplexer use case.
Package daemon holds vev's server-side session multiplexer use case.
usecase/fuzzy
Package fuzzy scores one already case-folded text against a folded query.
Package fuzzy scores one already case-folded text against a folded query.
usecase/keys
Package keys routes terminal input bytes into vev Alt/ESC bindings or PTY passthrough bytes.
Package keys routes terminal input bytes into vev Alt/ESC bindings or PTY passthrough bytes.
usecase/keys/kittykey
Package kittykey decodes kitty keyboard protocol key events and re-encodes them for a receiver that requested a given set of enhancement flags.
Package kittykey decodes kitty keyboard protocol key events and re-encodes them for a receiver that requested a given set of enhancement flags.
usecase/notices
Package notices renders the notification history overlay: a scrollable, newest-first list of the daemon's recorded notifications.
Package notices renders the notification history overlay: a scrollable, newest-first list of the daemon's recorded notifications.
usecase/recovery
Package recovery coordinates idempotent operations across the catalogue and snapshot repository without depending on filesystem adapters.
Package recovery coordinates idempotent operations across the catalogue and snapshot repository without depending on filesystem adapters.
pkg
kv
rawterm
Package rawterm provides the small set of terminal-control primitives vev needs directly on top of the frozen stdlib syscall package.
Package rawterm provides the small set of terminal-control primitives vev needs directly on top of the frozen stdlib syscall package.
safedir
Package safedir creates private directories and refuses to trust pre-existing ones that another user could control.
Package safedir creates private directories and refuses to trust pre-existing ones that another user could control.
scripts
remote-resilience-harness/pixels command
Command pixels compares the fixed 1280x720 fixture's terminal content.
Command pixels compares the fixed 1280x720 fixture's terminal content.
remote-resilience-harness/relay command
Command relay is disposable acceptance infrastructure, never a production proxy.
Command relay is disposable acceptance infrastructure, never a production proxy.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL