benpjohnson / chatgpt-shell

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

👉 Support my work via GitHub Sponsors

chatgpt-shell

A minimal ChapGPT Emacs shell.

Note

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.

Install

Load (require 'chatgpt-shell)

Set OpenAI key

As function

(setq chatgpt-shell-openai-key
      (lambda ()
        (nth 0 (process-lines "pass" "show" "openai-key"))))

Manually

M-x set-variable chatgpt-shell-openai-key

As variable

(setq chatgpt-shell-openai-key "my key")

Launch

Execute with M-x chatgpt-shell.

About

License:GNU General Public License v3.0


Languages

Language:Emacs Lisp 100.0%