Open source Grok Bot alternative, Bring your own agent and subscription: message Claude Code, Codex, Gemini CLI, Cursor, Copilot and 40+ AI agents as bots on your own computer, from iPhone, Mac, Windows, Linux or terminal. Agent-agnostic and free. Also a Muse and Dots alternative. Built in Rust.
Rust acpagent-client-protocolai-agentsai-assistantclaudeclaude-codecodexcoding-agentscursorgeminigemini-cligrok-bot-alternativeiosiphonelinuxmacosmcpopen-sourcerustself-hosted
//! The keys sheet.
use ratatui::buffer::Buffer;
use ratatui::layout::Rect;
use ratatui::style::Modifier;
use super::super::app::Editor;
use super::super::l10n::tr;
use super::buffer::{centered, frame_box, put, u};
use super::overlay::field_line;
use super::style::theme;
const HELP: [(&str, &str, &str); 75] = [
("MOVE", "j k ↑ ↓", "next / previous bot"),
("MOVE", "[ ]", "previous / next bot"),
("MOVE", "1…9", "jump to bot 1–9"),
("MOVE", "!", "next bot that needs you"),
("MOVE", "u", "next unread bot"),
("MOVE", "^k", "go to…"),
("MOVE", "tab h l", "roster ⇄ chat ⇄ trace"),
("MOVE", "^d ^u", "half page down / up"),
("MOVE", "g G", "top / bottom"),
("CHAT", "i ↵", "type a message"),
("CHAT", "y", "allow once"),
("CHAT", "a", "always allow"),
("CHAT", "n", "reject"),
("CHAT", "N", "reject and say why"),
("CHAT", "1…9", "pick an approval option"),
("CHAT", "s", "stop the bot"),
("CHAT", "S", "send the next queued message now"),
("CHAT", "D", "take back the last queued message"),
("CHAT", ">", "show / hide the working turn's steps (thinking details on)"),
("CHAT", "o", "last turn's steps"),
("CHAT", "c", "copy the last reply"),
("CHAT", "C", "open connection / login request"),
("CHAT", "F", "try a failed routine run again"),
("CHAT", "r", "reply to a message"),
("CHAT", "v", "pick a message"),
("CHAT", "j k ↵", "picking: move / reply"),
("CHAT", "1…6", "picking: react"),
("CHAT", "f", "picking: save its files or artifact"),
("CHAT", "o", "picking an artifact: open it in the browser"),
("CHAT", "o", "picking: show a summary, handoff or note change"),
("CHAT", "e K", "picking a handoff: edit / keep the chat"),
("CHAT", "A", "picking a failure: add a fallback agent"),
("CHAT", "↵", "picking a bot message: open its conversation"),
("CHAT", "esc", "cancel the reply"),
("TYPE", "↵", "send"),
("TYPE", "⇧↵ alt↵ ^j", "new line"),
("TYPE", "esc", "back to NAV"),
("TYPE", "^c", "clear the message"),
("TYPE", "^a ^e", "line start / end"),
("TYPE", "alt b / f", "word left / right"),
("TYPE", "^w ^u", "delete word / line"),
("TYPE", "@name", "group: ask just that bot"),
("TYPE", "/", "commands: /fast, /servers, skills"),
("BOTS", "n", "new bot"),
("BOTS", "m", "new group chat"),
("BOTS", "e", "settings, or edit a group"),
("BOTS", "I", "About the lead agent"),
("BOTS", "*", "Make lead agent"),
("BOTS", "p", "pin / unpin"),
("BOTS", "alt ↑ ↓", "move section up / down"),
("BOTS", "J K", "move bot down / up"),
("BOTS", "w", "move to section"),
("BOTS", "W", "rename / remove section"),
("BOTS", "z", "fold / unfold section"),
("BOTS", "M", "memory"),
("BOTS", "R", "details: routines, computer"),
("BOTS", "B", "details: switch back to the bot's own agent"),
("BOTS", "L", "library: artifacts and files; open, save, rename"),
("BOTS", "⇧← ⇧→", "between details, library, memory and settings"),
("BOTS", "A", "extensions, sign-in"),
("BOTS", "x", "delete bot or group"),
("VIEW", "t", "trace pane"),
("VIEW", "T", "trace full screen"),
("VIEW", "{ }", "previous / next turn"),
("VIEW", "b", "compact roster"),
("VIEW", "U", "usage"),
("VIEW", "P", "pair a phone"),
("VIEW", "N", "network: your other computers"),
("VIEW", "^k share", "share usage analytics on / off"),
("VIEW", "^k about", "what usage analytics include"),
("VIEW", "language", "app language: follow system or choose a language"),
("VIEW", "esc", "close / go back"),
("VIEW", "q", "quit; bots keep going"),
("MOUSE", "click", "open, press a button"),
("MOUSE", "wheel", "scroll under pointer"),
];
pub(super) fn help(buf: &mut Buffer, area: Rect, filter: &Editor) {
let t = theme();
// Two columns fit everything from 42 rows up; shorter windows get a third.
let r = centered(area, if area.height >= 42 { 80 } else { 120 }, 40);
let inner = frame_box(buf, r, t.text, t.panel, Some((tr("Keys").as_ref(), t.text)));
field_line(buf, inner, inner.y, filter, "filter actions and keys", true);
let q = filter.text.to_lowercase();
let items: Vec<&(&str, &str, &str)> = HELP
.iter()
.filter(|(_, k, d)| q.is_empty() || d.to_lowercase().contains(&q) || k.to_lowercase().contains(&q))
.collect();
// As many 38-wide columns as fit; what doesn't fit is counted in the footer.
let cols = (inner.width / 38).max(1);
let col_w = inner.width / cols;
let rows = usize::from(inner.height.saturating_sub(3));
let total = items.len();
let (mut col, mut y, mut section, mut shown) = (0u16, inner.y + 2, "", 0usize);
for (sec, k, d) in items {
let need = if *sec == section { 1 } else { 2 + u16::from(!section.is_empty()) };
if y + need > inner.y + 2 + u(rows) {
if col + 1 == cols {
break;
}
col += 1;
y = inner.y + 2;
section = "";
}
let x = inner.x + col * col_w;
if *sec != section {
if !section.is_empty() {
y += 1;
}
put(buf, x, y, col_w, sec, t.dim.patch(t.panel).add_modifier(Modifier::BOLD));
y += 1;
section = sec;
}
put(buf, x, y, 11, k, t.bold.patch(t.panel));
put(buf, x + 12, y, col_w.saturating_sub(13), d, t.secondary.patch(t.panel));
y += 1;
shown += 1;
}
let foot =
if shown < total { format!("{} more: type to filter · esc close", total - shown) } else { "esc close".into() };
put(buf, inner.x, inner.bottom() - 1, inner.width, &foot, t.dim.patch(t.panel));
}