Save commands you use often
If you find yourself typing the same long log checks, deployment steps or status commands every week, save them as Snippets so you can reuse them in a couple of keystrokes.

- Open Settings → Snippets.
- Click to create a new snippet and give it a clear, descriptive name (such as Check Nginx Error Logs or Disk Space Summary).
- Enter the command or script body you want to save. If you are saving a managed host script, check its working folder, Run as account and approval settings, then click Save script.
- Whenever you are typing in the bottom command bar or terminal, type a few letters of the snippet's name to insert it—and always glance at which server you are connected to before pressing Enter.
Never store passwords, secret keys or API tokens inside a snippet. Keep secrets in your encrypted vault instead.
Search and import your command history
As you work, LeapTerm remembers your recent commands so you can reuse them without retyping. Start typing in the bottom bar or terminal input to see matching commands from your history with the matched letters highlighted, or learn more in smart autocomplete and command corrections.

You can also bring in your existing shell history (such as .bash_history or .zsh_history) from a computer or server:
- Open Settings → Terminal and select Import command history.
- Unlock your vault if prompted and pick which server profile the history belongs to.
- Paste your history lines or choose a history file from your computer.
- Check the preview list and click Import History.
Because command history can occasionally include private file paths or old arguments, LeapTerm protects imported history inside your vault—and you should avoid pasting raw history files into public support tickets.
Local autocomplete vs. AI suggestions
Command history and snippet suggestions work locally from the commands you have already saved or run. They are completely separate from optional AI assistance, which only runs when you ask the AI companion a question or enable an AI provider. Read AI assistance and voice to see how AI features work and how to configure them.