karthink/gptel
An Emacs Lisp client for in-editor chat and rewriting via local models or hosted APIs
Automated SPDX check for reference only — not legal advice. Disclaimer
GitHub Star History
Full-history star trajectory from GitHub official history. Switch ranges or hover any point for exact counts.
Evidence-Backed Technical Brief
AI Deep ReviewArchitecture & Core Mechanics
gptel is an Emacs Lisp client that keeps the interaction layer in Emacs and delegates model inference to the selected backend. The source tree separates the main client in gptel.el from request code in gptel-request.el and provider modules such as gptel-anthropic.el, gptel-gemini.el, and gptel-ollama.el. OpenAI and the OpenAI Responses API have distinct modules, so they should not be treated as interchangeable integration paths.
On the editor side, gptel-context.el, gptel-org.el, gptel-rewrite.el, and gptel-transient.el separate context, Org, rewriting, and interactive UI concerns. This layout gives maintainers a useful starting point when tracing an issue from the editor to request handling and then to a provider. File boundaries do not, by themselves, establish a stable backend API or hook contract.
Key Capabilities & Differentiators
gptel supports chat and rewriting inside Emacs, with dedicated code for Org mode and context handling. The backend options span hosted APIs and local inference through Ollama. v0.9.9.6 expanded model coverage across OpenAI, Anthropic, Gemini, Copilot, DeepSeek, and xAI; that breadth does not establish feature parity across providers or models.
v0.9.9.5 added the OpenAI Responses API, token-usage display, and tool-call hooks, inspection, and interactive editing. v0.9.9.6 added steering messages and tool-call rejection, and improved structured JSON responses, presets, and Org support. If a workflow depends on tool approval, structured output, or usage reporting, test that feature against the exact backend and model you plan to use.
Trade-offs & Limitations
Compared with a standalone web or desktop chat client, gptel avoids moving text between applications when chat and editing already happen in Emacs. The trade-off is that backend choices, presets, and provider-specific behavior become part of the editor configuration the team must maintain. A broader audience that does not use Emacs is likely better served by a standalone client.
Hosted APIs shift inference capacity off the workstation but introduce network dependence, provider pricing, and data-handling considerations. Ollama can keep inference local when requests are routed to a local instance, but the operator then owns model capacity and runtime availability. GPL-3.0 permits commercial use; teams distributing a customized package should review source and license obligations separately from the terms of the model or API.
Hardware & Deployment Guide
Run gptel inside Emacs and explicitly select a model backend. For hosted inference, plan for network access and the provider's access requirements. For local inference, make an Ollama instance and the chosen model available; RAM and VRAM planning then belongs to the inference host and depends on model choice, context length, and concurrency. A minimum Emacs version and exact installation commands are not established here.
The main migration issue is v0.9.9.5's removal of the default ChatGPT backend. Check older configurations for implicit backend selection before upgrading. When validating v0.9.9.6, focus on the paths your configuration actually uses: preset selection, chat or rewriting in Org buffers, and tool-call or JSON behavior where applicable. For a local-only deployment, verify routing rather than assuming that an Emacs-local client implies local inference.
Emacs-centric users who want chat and rewriting in the editor and are willing to validate their chosen backends.
You need an editor-independent chat client for a mixed team or a managed inference service rather than a client.
AI Context Briefing (for Claude / Cursor / Windsurf)
Standardized architecture summary & quickstart commands ready to paste into coding agents.
curl -sL https://repoforai.com/repo/karthink/gptel.md
Active README embeds unlock Hot-Tier 6h Telemetry Refresh automatically (zero pay-to-rank).
Frequently Asked Questions about gptel
Where should I start when integrating gptel into an Emacs workflow?
Does gptel require a GPU or a specific amount of VRAM?
Can a company use gptel internally or distribute a customized build?
When is gptel a better fit than a standalone chat client?
Upstream README & Documentation
This profile focuses on independent engineering analysis and live telemetry. Read the full upstream README, changelog, and examples directly on GitHub.
Top 10 Breakout Open-Source AI Repos, Every Thursday
Signal-only digest of fast-growing AI repos, SPDX license alerts, and architecture picks. Zero spam.
Zero spam · 1-click unsubscribe · Privacy Policy