Chatgpt-cli
From wikinotes
A golang interface for chatgpt.
Documentation
github https://github.com/kardolus/chatgpt-cli?tab=readme-ov-file#installation
Locations
~/.chatgpt-cli/config.yaml
config
Install
aur sync chatgpt-cli-git
Configuration
Autocompletion
# dump somewhere on your $fpath chatgpt --set-completions zsh > ~/.zsh/completion/_chatgpt
Usage
# adhoc questions chatgpt ask a question # contextual questions cat foo.txt | chatgpt ask a question about foo.txt # interactive sessions chatgpt -iThey're recommending not putting your api-key in a config, and using the environment instead.
Maybe create an alias and retrieve the password from pass ?