Save and run snippets
Esta página aún no está disponible en tu idioma.
A snippet is a saved command or script you can type into any session. Snippets sync with your hosts. On the desktop they are under Snippets in the sidebar; on the phone under Settings › Tools › Snippets.
Save a snippet
Section titled “Save a snippet”- Choose New snippet.
- Give it a Name, and write the Script: the text typed into the session, one or more lines.
- Choose its Kind:
- Command: typed into the session and, when you run it, followed by Enter.
- Note: only ever pasted at the prompt, without Enter, so you can check it first.
- Macro: a list of steps that types, waits for output and answers prompts (below).
- Optionally put it in a Package, a folder for snippets that belong together.
- Save.
With an AI provider set up (Settings › AI), Describe what it should do writes the script for you from a sentence. Read it before you save or run it.
Ask for values when it runs
Section titled “Ask for values when it runs”Write {{name}} where a value should be asked for, or {{name:default}} to offer a default:
sudo systemctl restart {{service:nginx}}These are filled in, never asked: {{$HOST}} (the host’s address), {{$USER}} (the user name it logs in as), {{$PORT}} and {{$NAME}} (the host’s label). A local terminal has no host, so give such a built-in a default there: {{$USER:root}}.
A value you type is inserted exactly as typed, with no quoting: quote it in the script if it may hold spaces. Built-ins are quoted for the host’s shell where Sternway has seen a POSIX shell or fish on that host, and refused where they cannot be placed safely. The field help has the full rules.
Run it
Section titled “Run it”- In a terminal: press Ctrl+. (macOS: Cmd+.) or Ctrl+Shift+P to open the snippets beside the terminal, and choose one. Or search for it with the command palette, Ctrl+K. Asked-for values are filled in the side panel.
- With a key of its own (desktop): give the snippet a Keyboard shortcut. It works while a terminal has the focus, and is kept on this device only.
- In all tabs: run a command snippet in every open terminal at once.
- On several hosts: Run on hosts… on the snippet. See Act on many hosts at once, including Collect results, which shows each host’s exit status and output.
- When a host connects: set it as the host’s Startup snippet in the host editor.
Automate a login with a macro
Section titled “Automate a login with a macro”A macro’s Steps are one per line:
send sudo -iwait for "password for"send secret identity "Ops admin"wait for /[#$] $/ 10ssend systemctl restart nginxsendtypes the rest of the line and Enter (variables and built-ins are filled in).wait for "text"orwait for /pattern/waits for the output, 30 seconds unless you write another time.send secret identity "Name"types that identity’s saved password;key "Name"a key’s passphrase;host "Name"a host’s saved password.pause 2swaits; a line starting with#is a comment.
A secret is typed only into a terminal it belongs to (a host’s password into a session to that host or through it), only right after a wait whose line is still the terminal’s last line and is a password prompt ending in :, and never into a local terminal. It is not written to the window, the scrollback, recordings, logs, AI or a shared session. If another password prompt comes right after it (a wrong password), or none at all, the macro stops and types nothing more. Locking the app stops every macro.
Share snippets
Section titled “Share snippets”A snippet in a team vault is there for everyone in that vault. Copy or Move it to another vault from its menu. A macro only reaches secrets saved in its own vault, so a macro shared with a team cannot type your personal passwords.
© 2026 IRONPINE LABS LLC
ALL RIGHTS RESERVED.