Skip to content

Introduction

Hi there! 👋 I'm Tony Aldon a passionate Emacs user and AI enthusiast.

If you want to learn how to build a ChatGPT client for Emacs integrating the OpenAI API, this course is for you!

Through 18 engaging lessons and 2.5 hours video content you'll learn how to build a fully functional Emacs package from scratch and you'll know how to use the OpenAI API.

It can help if you know a little bit of Emacs Lisp, but this is not a requirement as we'll meticulously write, review, and comment on each line of code.

In this course, we'll build chatgpt.el, a package that lets you send prompts to ChatGPT directly from Emacs using the OpenAI API. ️ Simply call the chatgpt command, enter your prompt in the dedicated buffer, press C-c C-c, and receive your response in an appended buffer seamlessly.

Beyond its simplicity, chatgpt.el offers these key features:

  • Secure API Key Handling: Automatically retrieves your OpenAI API key from ~/.authinfo.gpg for secure storage or from the plaintext ~/.authinfo file.
  • Prompt History: Keeps track of your previous prompts, allowing you to navigate back and forth through your request history using M-p and M-n.
  • Request Logging: Saves all requests and responses in a designated directory, efficiently organizing your interactions with ChatGPT for easy reference and review. Really handy for troubleshooting.