Execute shell commands on the host system. Commands are run via sh -c.
sh -c
command
—
A command is auto-approved only if both conditions are met:
terminal.allowed_prefixes
; | && || $() ` (backticks)
ls, cat, head, tail, echo, date, whoami, pwd, find, wc, grep, tree, file, stat, uname, df, du, ps, which, env, printenv
Returns stdout first, then stderr (if any). Output is truncated to 4000 characters.
When the user clicks "Allow Always" in Telegram, the command prefix is added to terminal.allowed_prefixes in config.toml. Future commands with the same prefix are auto-approved.