asksh

asksh

Bind ? in your shell to ask an agent for the right command, edit files with explicit permission, or run it in place.

Install

curl -fsSL https://setup.asksh.ai | sh
Endpoints
OpenRouter, OpenCode, or any OpenAI-compatible endpoint.
Secrets
Literal, { env }, or { cmd } (e.g. 1Password)
Safety
Explicit tool prompts + pre-edit snapshots

Manual

Keybindings & slash commands
Input Behavior
? Launch inline TUI from an empty prompt
Enter Submit prompt or execute suggested command
Tab Insert command onto shell prompt without running
/model Switch between configured [[models]] profiles
/new Archive current directory session and reset

Permission rules

Project rules in .asksh/permissions.toml override global rules in ~/.config/asksh/permissions.toml.

[permissions]
allow = [
  "ShellHistory",
  "Read(**/*.md)",
  "Shell(git status)",
  "Shell(git diff *)",
]
deny = ["Read(.env)", "Shell(rm)"]