Get AI assistance in Emacs with gptel, ideal for founders, with 3.4k+ GitHub stars.
3,416 stars407 forksEmacs LispQuality 8/10Updated 7/4/2026100% free ยท open source
What it does
Gptel provides AI assistance directly within the Emacs editor, allowing founders to access language model capabilities without leaving their workflow.
Install / run
M-x package-install gptel
When to use it
โขYou need to generate text, such as emails or social media posts, based on a prompt or context.
โขYou want to use AI to summarize long documents or articles, directly from within Emacs.
โขYou're looking for an AI-powered tool to assist with coding tasks, such as function suggestions or code completion, in Emacs.
Quick start
1Add the gptel package to your Emacs configuration by adding (require 'gptel) to your init.el file.
2Configure your API key by setting the gptel-api-key variable, e.g., (setq gptel-api-key "your_api_key_here")
3Use M-x gptel to start the gptel interactive mode, where you can input prompts and receive AI-generated responses.
4Explore other gptel commands, such as gptel-chat, gptel-code, or gptel-doc, for more specific AI assistance.
Ready-to-paste prompt
M-x gptel-chat, then input 'Write a product description for a new sustainable water bottle.' to generate a response.
Heads up: You need an API key from a supported language model provider, such as OpenAI, to use gptel; set this key with (setq gptel-api-key "your_api_key_here") in your Emacs configuration.
Saves to your device
Topics
chatgpt
emacs
llms
org-mode
What's inside โ free to inspect
No purchase needed
Read the entire source before you build โ unlike paid marketplaces that hide it behind a buy button.