velmux

Command line

Everything the sidebar does to slots is also a command, for agents, scripts and other tools. Commands act on the repo you're in (or -C <path>).

velmux                           # open velmux (starting its server)

# Slots
velmux init                      # create the pool's slots (idempotent)
velmux add-slot                  # one more slot (kept, beyond the configured count)
velmux claim [branch]            # claim a free slot and print its path
cd "$(velmux claim feat/login)"
velmux claim <branch> --repo api      # in a workstream: a slot in that repo, linked there
velmux claim <branch> --workstream x  # from a checkout: into workstream x, not this pane
velmux claim -C ../api <branch> --rehome  # move this pane to api for good: release leaves it there
velmux workstream [name] [--json]     # its slots (the one you're in, or all of them)
velmux release [slot]            # park the work, reset the slot, keep its dependencies
velmux status [--json]           # every slot: branch, dirty, ↓ behind / ↑ ahead, port; parked work
velmux sync [slot]               # fetch, then rebase (or merge) onto the base ref
velmux env [slot]                # the slot's ports etc. as exports: eval "$(velmux env)"
velmux path <slot>               # a slot's path
velmux open [slot]               # open it in your editor
velmux gc                        # prune dead worktrees, recreate missing slots
velmux gc --parked-older-than 30 # …and discard parked work older than that (branches stay)
velmux gc --merged               # …and forget parked branches that have merged, deleting them

# Parked work
velmux parked [--json]           # branches released with work on them
velmux discard <branch>          # drop a parked branch's stashed changes (the branch is kept)

# Panes
velmux panes [--json]            # every pane: its place (repo, slot, branch), what's running
velmux close-pane <n>            # close pane n, as <prefix> x does
velmux move <where>              # move this pane, still running: a repo, repo/slot-2, a path, or a branch a slot has

# The server
velmux restart                   # restart in place: panes keep running
velmux stop                      # stop it: everything comes back next time
velmux update [--check]          # update velmux the way it was installed (or just check)

# Setup
velmux doctor                    # check git, your agent, the skill, gh, your terminal, this repo's pool
velmux skill install [--project] # the Claude Code skill (rerun to update; skill uninstall)
velmux keys [--ghostty | --test] # key bindings / Ghostty config lines / what your terminal sends
velmux keys --ghostty --install  # write the Ghostty lines into its config
velmux import-herdr              # bring over a herdr session

[slot] defaults to the slot you're in.

Inside a velmux pane, velmux claim and velmux release go through the server, so the pane running them (usually a Claude) moves into the slot and back: back to where it came from, which is its own repo's base even when it claimed a slot in another repo. Claiming a branch a slot already has moves the pane into that slot. velmux move (or the pane menu's "move to…", <prefix> M) moves a pane without claiming or releasing anything. velmux panes shows where each one is. One claim runs at a time per pane.

claim takes --no-fetch, --no-install, --by <name> and --json.