Terminal and shell
A terminal is a record of recent run_code results. The shell is a separate, persistent bash session that is off by default.
run_code terminals
Keep the last 20 results. They are not processes.
Shell
Persistent sessions, up to 4 by default, 900 s per command, idle close at 1,800 s. Enabled only with SHELL_ENABLED.
Guard
Hard blocks never run. Risky commands wait for a button. The shell runs as the bot's user, so it is not isolated.
In this section
See also:Code execution
Checked against the source at commit f4fd89f on 29 Oct 2026. Everything here is merged on the main branch; no release has been tagged yet. The source is private, so these pages are the public description.