Starting the REPL
Runopsh with no arguments to open the REPL:
The prompt
The prompt shows your current directory followed by>:
~ instead of the full path:
Typing a request
Type your request in plain English and press Enter. You don’t need to remember any command syntax — just describe what you want to do:The confirmation prompt
After Opsh shows the generated plan, it waits for your response:| Key | Action |
|---|---|
Enter or y | Run the command |
n | Cancel without running |
e | Edit the command before running |
r | Regenerate with a different interpretation |
e, Opsh shows an edit prompt where you can modify the command directly:
r, Opsh asks the AI to produce a safer or simpler alternative.
Example session
Keyboard shortcuts
- Ctrl+C — cancels the current input and returns to a fresh prompt. It does not exit Opsh.
- Up arrow — cycles through your shell history within the REPL session, the same as in a standard terminal.
Exiting
Type!exit or press Ctrl+D to exit the REPL and return to your shell.
If you installed Opsh with shell integration, the REPL starts automatically whenever you open a new terminal window. You can disable this by running
!uninstall to remove the shell integration, or by editing your shell startup file directly.
