Installation
With Go
Section titled “With Go”go install github.com/malonaz/sgpt/cmd/sgpt-cli@latestmv "$(go env GOPATH)/bin/sgpt-cli" ~/.local/bin/sgptMake sure ~/.local/bin is on your PATH.
From source (please)
Section titled “From source (please)”The repo builds with please:
git clone https://github.com/malonaz/sgpt && cd sgptplz build //cmd/sgpt-cli./scripts/install.sh # moves the binary to ~/.local/bin/sgpt, installs completionsShell completions
Section titled “Shell completions”sgpt completion bash > ~/.local/share/bash-completion/completions/sgptsgpt completion zsh > ~/.zfunc/_sgptsgpt completion fish > ~/.config/fish/completions/sgpt.fishCompletions cover roles, models (including aliases), tool names and chats.
Requirements
Section titled “Requirements”- A reachable
AiServicegRPC backend and an API key for it. - A terminal with alt/meta key support (most do; on macOS Terminal enable Use Option as Meta key).
- Optional:
$EDITORfor composing long messages and viewing chats.