Skip to content

Getting started

This guide walks through setting up asksh one step at a time. If you only want the install command, use the quickstart on the home page.

Setting up asksh takes four steps:

  1. Install asksh
  2. Configure a provider and model
  3. Load the shell integration
  4. Run your first prompts

1. Install asksh

On macOS or Linux, run the install script:

curl -fsSL https://setup.asksh.ai | sh

The installer downloads the release archive for your OS and architecture, verifies its SHA-256 checksum, places the binary in ~/.local/bin/asksh, starts asksh setup if no config exists yet, and adds the shell hook to your startup file.

If you prefer to download a release archive manually or build from source, see Installation.

2. Configure a provider and model

If you skipped the wizard during installation, or want to reconfigure later, run:

asksh setup

The wizard lets you choose a preset (OpenRouter, OpenCode Go, OpenCode Zen, DeepSeek, Ollama (local), or Custom URL), pick a model, and choose how to supply your API key (environment variable, subprocess command such as op read ..., literal string, or none for local Ollama).

On the review screen, press t to run a live connection test, then press Enter to write ~/.config/asksh/config.toml with 0600 permissions.

Anthropic and Gemini endpoints

The setup wizard targets OpenAI-compatible endpoints. To use the native Anthropic Messages API or native Gemini API instead, set provider = "anthropic" or provider = "gemini" in ~/.config/asksh/config.toml. See Config.

3. Load the shell integration

Restart your shell, or source the startup file that the installer updated:

source ~/.zshrc
source ~/.bashrc
source ~/.config/fish/config.fish

See Shell integration if you want to inspect or customize the hook.

4. Run your first prompts

At an empty prompt, press ? to open the inline TUI and ask for a command:

find all Go files modified in the last 24 hours

Press Enter to run a suggested low-danger command immediately, or press Tab to place it on your command line for editing without running it.

If you already started typing a command, press Alt+? anywhere in the line (or type a trailing ?) to pass your current buffer into asksh for completion or repair. You can also run asksh directly from the CLI:

asksh "show disk usage sorted by size in the current directory"

Next steps

  • Basic usage: confirmation for dangerous commands, dry-run sandboxing, multi-step plans, and session history
  • Permissions: allow, deny, and prompt rules in permissions.toml
  • Keybindings and slash commands: every TUI key and /command
  • Config: model profiles, fast/strong routing, and environment overrides