👉 Support this work via GitHub Sponsors
A minimal ChatGPT Emacs shell.
This is very much an experimental proof of concept, possibly incomplete, or maybe with some rough edges. Pull requests with improvements or fixes totally welcome.
Load (require 'chatgpt-shell)
(setq chatgpt-shell-openai-key
(lambda ()
(nth 0 (process-lines "pass" "show" "openai-key"))))M-x set-variable chatgpt-shell-openai-key
(setq chatgpt-shell-openai-key "my key")Launch with M-x chatgpt-shell.
Type clear as a prompt.
ChatGPT> clearAlternatively, use either M-x chatgpt-shell-clear-buffer or M-x comint-clear-buffer.
