Language: English · 繁體中文
Every container runtime in one terminal screen.
boxu shows what your container engines hold, kind by kind: compose projects, pods, containers, images, networks and
volumes, from every context you check, in the same lists. It finds Docker's contexts by itself (Docker Desktop,
OrbStack, Colima, Rancher Desktop, a remote one over ssh) and follows each engine as things change. It talks to
Apple's container, Docker, Podman, containerd (through nerdctl) and CRI-O (through crictl).
- One list of kinds, always the same: Compose, Pods, Containers, Images, Networks, Volumes and Contexts. Move the cursor and the list beside it follows.
- Details under the list: the item under the cursor, in tabs: for a container its log, following the newest line, then its relatives and its info.
- Relatives: what a container uses (its image, networks, volumes, compose project) and which containers use an
image, a network or a volume.
Enteron one takes you to it;Escbrings you back. - Compose projects:
Enteron a project goes into its containers. - Act on what you see: start, stop, restart and delete containers, open a shell in one or its published port in the browser; bring a compose project up or down, restart it, pull its images; pull and delete images; delete or prune what nothing uses. Whatever removes something asks first.
- Monitor: several logs on one screen: pin containers (or all of a compose project's) and their logs are side by
side, up to four to a page (
Lsets how many), each following its newest line. A container that ends leaves its place; made again under the same name, it is back. The pins and their order are kept. - Several contexts at once:
Cchecks which contexts to show; with more than one, every list says which context a row is from, and an engine two contexts point at is listed once. - What is in use: images, networks and volumes say how many containers use them; the ones nobody uses are dimmed.
- Always current: boxu listens to each engine's events, so the lists follow by themselves.
- Add a context by hand: a remote engine or another socket, with a form; test the connection before saving.
- A context in trouble says why: not running, no permission or unreachable, with what to do about it.
- Two screens:
[B]rowseto look around,[M]onitorfor the logs of the containers you pin. - The terminu family's keys:
Spaceshows what you can do here,?every key that works here.
- macOS or Linux (WSL too).
- A Nerd Font terminal profile: the icons and the frames are Nerd Font glyphs.
- A truecolor (24-bit) terminal: the faded colours and the layer colours cannot be told apart in 256 colours.
- A terminal at least 60 columns wide and 32 rows high; in a smaller one boxu shows only its name, the size it needs and how to quit, and comes back as it was once the terminal grows.
boxu measures how many cells an icon and a powerline symbol take when it starts; boxu iconwidth prints what it
found. When it gets them wrong, set them:
| Variable | What it sets |
|---|---|
BOXU__ICON_WIDTH |
The cells an icon takes, for boxu |
BOXU__POWERLINE_WIDTH |
The cells a powerline symbol takes, for boxu |
TERMINU__ICON_WIDTH |
The cells an icon takes, for every terminu family app: set it once and they all read it |
TERMINU__POWERLINE_WIDTH |
The cells a powerline symbol takes, for every terminu family app |
LC_TERMINU_ICON_WIDTH |
The cells an icon takes, brought over ssh by a family app with ssh |
LC_TERMINU_POWERLINE_WIDTH |
The cells a powerline symbol takes, brought over ssh by a family app with ssh |
For an icon and for a powerline symbol each, boxu takes the first one set in the order of the table, and measures only
when none is. Run inside a family app's terminal, boxu gets the TERMINU__ ones from the app around it; reached over
ssh from one, the LC_TERMINU_ ones.
brew install vulcanshen/tap/boxu
curl -fsSL https://raw.githubusercontent.com/vulcanshen/boxu/main/install.sh | shNo sudo: it installs to ~/.local/bin.
boxu opens on the [B]rowse screen with the cursor on Containers, and checks every context it finds that answers; press
C to check another set. It writes nothing until you change something.
boxu update
It updates boxu the way it was installed: through Homebrew, or by downloading the latest release.
brew uninstall boxu
Installed with the script:
curl -fsSL https://raw.githubusercontent.com/vulcanshen/boxu/main/uninstall.sh | sh- Run
boxu. - Press
jandkto go through the kinds; the list beside them follows. - Press
EnterorTabto go over to the list,/to filter it,Spaceto see what you can do there. - Press
Cto check which contexts to show. - Press
pon a container to pin it, thenMfor the Monitor screen to follow its log;Bcomes back. - Press
qto quit.
boxu start
boxu version print the version (-v, --version)
boxu help print the command-line usage (-h, --help)
boxu update update boxu to its latest release
boxu iconwidth print how many cells an icon and a powerline symbol take
The keys every family app shares:
| Key | What it does |
|---|---|
Space |
What you can do here: on this item, on this panel, and for the whole app |
? |
Every key that works here |
! |
The App Log: what was done and what went wrong, newest last |
Tab, 1–9 |
The next panel; jump to a panel by its number |
j|k, h|l |
Move; h|l switch tabs; past the last one you are back at the first |
u|d, gg|G |
Half a page up and down; to the top, to the bottom |
/ |
Filter the list as you type |
> < + -, = |
Make the panel wider, narrower, taller, shorter; put the screen's layout back |
Enter |
The obvious thing: on a kind, go to its list |
Esc |
Close the popup on top, or go one level up; it never leaves boxu |
q |
Quit |
boxu's own:
| Key | Where | What it does |
|---|---|---|
B, M |
everywhere | The [B]rowse and [M]onitor screens |
C |
everywhere | Check which contexts to show |
z |
everywhere | Zoom: the focused panel alone; again for all of them |
s, t, r |
containers, pods | Start, stop, restart |
S, o |
containers | A shell in the container; its published port in the browser |
U, r, P |
compose projects | Up, restart, pull the images |
P |
images | Pull the image again |
x |
the list | Delete, after asking; on a compose project, take it down (X takes its volumes too) |
X |
images, networks, volumes | Prune: delete every image with no tag, every network or volume nothing uses, after asking |
p |
containers, compose projects, pods | Pin to the Monitor: the container, or every running container of the group |
Enter |
the list | On a compose project or a pod, go into its containers (Esc comes back out); on anything else, go to its details |
A, e, T |
contexts | Add a context by hand; edit one you added; test the connection |
Enter |
the details | On the info and the log, open them to scroll, search (/) and copy (v, y); on a relative, go to it (Esc goes back) |
On the Monitor screen:
| Key | What it does |
|---|---|
h|l, j|k |
The log on the left, on the right, below, above; past the page's edge l turns to the next page, h to the one before |
Enter |
Open the log to scroll, search (/) and copy (v, y); it goes on following |
z |
Zoom: this log alone; again for the page |
PgUp|PgDn, gg|G |
The page before, after; the first page, the last. The frame's bottom right says which page it is: 2 of 3 |
1–9 |
Go to that page |
D |
Drag: hold this log, move it with h|l and j|k, Enter drops it, Esc puts it back |
m |
Move this log to the start |
p |
Unpin it |
P |
Unpin all, after asking |
L |
Logs per page: 1 to 4 |
| What | Where | Moved by |
|---|---|---|
| Settings | ~/.config/boxu/config.yaml ($XDG_CONFIG_HOME/boxu) |
BOXU__CONFIG |
| State | state.yaml, beside the settings |
BOXU__STATE |
| Data | ~/.boxu/ |
BOXU__DATA |
config.yamlis yours to write; boxu only reads it. Of the family's shared setting keys it readsinput_tab_width(default4): how many cells a tab in a log is drawn as.state.yamlkeeps the contexts you checked and where you moved the lines between panels. Delete it and boxu is back to its defaults.- The data directory holds what you chose for boxu:
contexts.yaml, the contexts you added by hand, andpins.yaml, the containers pinned to the Monitor, by context and name, in your order.
A file boxu cannot read is never overwritten: boxu asks to move it aside to .bak first.
- CRI-O is to look at only: its containers are the kubelet's, which would put back what boxu changed.
- A shell in a container, the browser and the compose actions run the engine's own client (
docker,podman,container,nerdctl,crictl), which must be onPATH; bringing a compose project up or pulling its images also needs its compose file where it was, and containerd does not note where that is: its projects can be restarted and taken down, not brought up or pulled. - The Monitor shows at most four logs a page, and a long log line is cut at the cell's edge: zoom (
z) or open it (Enter) to read it whole. - macOS and Linux only (WSL too); there is no Windows build.
boxu follows terminu design:
- terminu design: the family's design rules
- terminu-go: the Go library boxu is built with
- terminu-harness: the Claude Code plugin for building apps to terminu design
