TUI shortcuts
kaio-cli tuiThe TUI is fully event-driven: a single message loop multiplexes keyboard input, periodic refreshes, the live SSE event stream, log streaming and one-shot data fetches, so network calls never block rendering. It reaches feature parity with the web app and the CLI.
![The TUI walked through with Tab: the blog stack logs streamed under [l], the Stacks tree filtered on db with / and sorted by CPU with o, a folded container group, the images, volumes, networks, events and audit tables, then a new stack named in the [n] dialog, its compose.yml written in $EDITOR, a variable added and the stack deployed, then the node prod-01 entered from the Nodes tab and a shell opened with [!] on one of its containers, straight from the Stacks tab.](/_astro/tui.Dy2G3RUL_Z1FAV5l.webp)
Navigation
Section titled “Navigation”| Key | Action |
|---|---|
Tab / Shift+Tab |
Switch tabs: Stacks (default), Containers, Images, Volumes, Networks, Nodes, Events, Audit, System |
↑ / ↓ or j / k |
Scroll lists |
? |
Every key of the current tab, in an overlay (q, ? or Esc to close) |
| Mouse | Wheel to scroll, click to select a row or switch tabs, double click a node to enter it |
q |
Quit |
The top border names who the server takes you for and your level, the way the
web UI’s badge does: your user when a proxy or the control plane named you,
else local, network or cluster. A key whose action your level does not
reach gets the server’s 403 in the status line.
CPU and RAM sparklines over the last 12 hours sit alongside the global status table on every tab. Their titles give the live value, the same sum as the lists below, the share of the host’s cores when the server reports them, and the peak. CPU follows Docker’s scale, where 100% is one core. The table counts running over total, exited, paused and unhealthy containers, stacks with an update waiting, CVEs by severity, and the live network traffic; a count at zero is muted.
Filtering and sorting
Section titled “Filtering and sorting”On the Stacks and Containers tabs:
| Key | Action |
|---|---|
/ |
Filter on stack, container or image names. Type, then Enter keeps the filter and Esc clears it. Esc also clears a kept filter |
o |
Cycle the order: attention, name, cpu, ram, net, vulns |
While the filter is open, every key goes to it, q included. A stack kept for
one of its containers unfolds and reads, for instance, 1 of 2 containers. The
attention order, the default, lists first the stacks with a container not
running, an image update waiting, variables pending or a critical CVE, then the
rest by name.
The table title shows the order and the filter in use.

The footer carries the keys that matter on the tab you are on, and the position
in the list. It is deliberately short: ? opens the full set, including the
keys the footer leaves out.

The keys always start at the left edge. Whatever the TUI has to say goes on the
right, next to the position, so nothing shifts when a message comes and goes.
While an action runs, it shows a spinner, what is being done and the time it
has taken so far, such as deploy stack media-hub… 2s. Several at once show
the oldest with a (+N) count. The line goes away when the server answers, and
the usual ok or failed takes its place.

A message stays four seconds, an error fifteen. One longer than half the footer
is cut with …, and an error or a cut message carries [m]ore: m opens the
last 100 messages, newest first, each with its time and in full, errors in red.
↑↓/jk scroll, q, Esc or m close. m also works over the
environment editor, for instance when a failed deploy brings the draft back, and
over the help, a confirmation, the versions or the compose.yml: closing the
messages returns to it as it was. While a field takes text, m is typed in it.
The same message repeated in a row, such as a stream retrying, is kept once with
the time it last came.
![The Messages overlay opened with m over the Stacks tab: a line in red, led by its time, reads the whole error of a failed restart, restart stack failed (500 Internal Server Error): docker compose restart failed: Error response from daemon: driver failed programming external connectivity on endpoint blog-web-1, Bind for 0.0.0.0:8080 failed: port is already allocated, wrapped over three lines, while the footer below shows it cut with [m]ore ahead of it.](/_astro/tui-messages.DxDfpX53_e84nr.webp)
Stacks tab
Section titled “Stacks tab”Each stack shows an aggregated STATE column (running / partial / paused /
stopped, with a running count), the CPU, RAM and network traffic summed over
its containers, its version, and available (n) under UPDATE when n images
have a newer version. Its containers are listed underneath, with their ports
next to their name. A container
row can be selected like any other; every key below still acts on the stack it
belongs to, so nothing is ambiguous. Only ! reads the selection as a
container.
| Key | Action |
|---|---|
s |
Start the stack, or resume it when it is paused |
p |
Pause the stack, or resume it when it is paused |
u |
Update (pull & recreate) |
r |
Restart |
R |
Recreate every container from the compose file |
c |
Check for image updates |
l |
Stream the logs of every container, prefixed by service (q to close) |
v |
Version history, then r to rollback, d to delete a version |
e |
Edit environment variables |
a |
Apply pending changes |
C |
Copy the stack to another server, or here under another name |
n |
New stack (no selection needed) |
E |
Edit the compose.yml in $VISUAL / $EDITOR |
Enter |
View the compose.yml (scrollable) |
d |
Delete |
! |
Attach an interactive shell to the selected container (Ctrl-] to detach) |
A container that is not running has nothing to attach to: ! says so in the
status line instead of opening a terminal that would close at once. A failing
health check is not a reason to refuse, that is when a shell is most useful.
Copy dialog (C)
Section titled “Copy dialog (C)”| Key | Action |
|---|---|
↑ / ↓ |
Walk the rows: the destinations, the name, then every published port. On a destination, picks it: this server (the control plane while viewing a node), or any node that is online |
i |
Edit the row you are on: the name of the copy, or the port it publishes there; Enter or Esc leaves the field |
e |
Open the variables of the copy |
v |
Carry the volume data across |
s |
Start the copy once it has landed, ticked by default |
b |
Accept that mounted host paths stay behind |
a |
Accept losing volumes Docker named itself |
r |
Accept that its Compose file hands the host to a service |
Enter |
Copy |
Esc |
Cancel |
The source is never touched. A copy that is refused says why in the status line, so nothing is changed on either end.
Environment editor (e)
Section titled “Environment editor (e)”| Key | Action |
|---|---|
a |
Add |
e / Enter |
Edit |
d |
Delete |
s |
Toggle secret |
w |
Save as pending |
q |
Close |
Inside the inline editor: Tab switches between key and value, Enter
validates, Esc cancels. Stacks with unapplied variables show ✎ env pending,
stacks whose deployed file hands the host to a service show ◈ host, and
stacks started outside Kaio
show ⇱ external and answer only l here.
Creating a stack (n)
Section titled “Creating a stack (n)”Type a name, then write the compose file in your editor ($VISUAL, $EDITOR,
fallback vi). Leaving the template unchanged cancels. The variables table
opens next: add variables if needed, E to reopen the compose file, w to
deploy (q twice to cancel). If the deployment fails, the draft reopens so you
can fix it.
Editing the compose file (E)
Section titled “Editing the compose file (E)”If the file changed, the stack is redeployed after confirmation; pending environment changes are applied at the same time.
Containers tab
Section titled “Containers tab”Enter expands or collapses a stack group. A group row sums the CPU, RAM and
network traffic of its containers. With a container selected:
| Key | Action |
|---|---|
s |
Start |
x |
Stop |
r |
Restart |
p |
Pause / unpause |
d |
Delete (with confirmation) |
l |
Stream logs full-screen (q to close); on a stack group row, the whole stack |
! |
Attach an interactive shell to the selected container (Ctrl-] to detach) |
Images / Volumes / Networks tabs
Section titled “Images / Volumes / Networks tabs”Each table ends with a STACKS column: the stacks whose containers use the
item, - when none does.
| Key | Action |
|---|---|
d |
Delete the selected item |
p |
Prune all unused items of that type |
v |
Scan the selected image for CVEs (Images tab) |
Nodes tab
Section titled “Nodes tab”The control plane first, then the Kaio servers that have joined it. See Multiple servers.
| Key | Action |
|---|---|
Enter or a double click |
View that node: the whole TUI switches to its stacks. On the control plane row, come back to it |
Esc |
Leave the node, back to the server the TUI started on |
c |
Probe the selected node |
C |
Probe every node |
d |
Remove the selected node from the registry (with confirmation) |
Each row carries a name, a URL and the result of the last probe: status, the
version the node reports, and the last successful contact. The control plane
row shows the version and commit the control plane itself runs, so a node left
behind on an older release stands out; it cannot be probed or removed. A server enters this
list by running kaio-cli join on it; the TUI reads the registry and probes it,
it never creates an entry.
Viewing a node
Section titled “Viewing a node”Enter on an online node, or a double click on its row, points every tab at it,
through the control plane’s proxy, and lands on its Stacks tab. The header reads
KAIO · <node> with [Esc] Control plane opposite it, the selected node is
marked ▸ in the list, and Esc from any tab comes back. The Nodes tab keeps
showing the registry of the server the TUI started on, so Enter hops straight
from one node to the next. A node that last probed offline or unauthorized is refused, since every
request would fail.
![The Stacks tab of the node prod-01, reached with Enter from the Nodes tab: the header reads KAIO · prod-01 with [Esc] Control plane opposite, and the table lists that node's own gitea and registry stacks.](/_astro/tui-node.aWMUWSCM_2goWbT.webp)
kaio-cli node <name> run tui does the same thing from the shell, for a single
node, without the hop back.
Audit tab
Section titled “Audit tab”The audit log, newest first and
refreshed with the other tabs: when, who, from where, what on which target, and
whether it went through, denied in red. ↑ / ↓ scroll it. It needs the
admin level, like kaio-cli audit: below that, the title says so and the
status line carries the server’s 403. Pointed at a node, it is that node’s
log.
System tab
Section titled “System tab”p executes a global prune: containers, images and networks.
Confirmations
Section titled “Confirmations”Every destructive action (delete, prune, rollback, apply) pops a confirmation
modal: y to confirm, n or Esc to cancel.
Related
Section titled “Related”Kaio, built by Régis Gaidot