← Back to Leaderboard
Gkarthink

karthink/gptel

An Emacs Lisp client for in-editor chat and rewriting via local models or hosted APIs

View on GitHub ↗
AI Plugin
Engineering Health (Methodology)
A · 82/100
Maintenance Activity
● Updated yesterday
Latest Release
v0.9.9.6
Commercial License Check
GPL-3.0 · Copyleft Warning

Automated SPDX check for reference only — not legal advice. Disclaimer

Maintenance35/35
Fork Adoption19/25
Release Cadence17/20
License Clarity11/20
Local AIAPI
Total Stars
★ 3,574
24h Growth
+1
7d Growth
+4
Forks
455

GitHub Star History

Full-history star trajectory from GitHub official history. Switch ranges or hover any point for exact counts.

karthink/gptel Star History (2023-03-05 - 2026-12-01) ALL-TIME STAR HISTORY (2023-03 – 2026-12) +3.6k in 1367d · avg +3/day 3.8k 1.9k 0 2023-03-05: ★ 42023-05-27: ★ 3192023-08-19: ★ 4022023-11-11: ★ 4822024-02-03: ★ 6642024-04-27: ★ 8692024-07-20: ★ 1,0222024-10-12: ★ 1,2702025-01-04: ★ 1,7072025-03-29: ★ 2,1732025-06-21: ★ 2,5202025-09-13: ★ 2,7812025-12-06: ★ 2,9742026-02-28: ★ 3,1572026-05-23: ★ 3,3122026-08-15: ★ 3,4582026-12-01: ★ 3,574 ★ 3.6k 2023-03 2025-01 2026-12

Evidence-Backed Technical Brief

AI Deep Review

Architecture & 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.

Client structure: gptel.el and gptel-request.el separate the Emacs client and request code from provider-specific modules.
Backend choice: gptel-ollama.el covers the local-model path, while OpenAI Responses has its own module.
Editor workflow: gptel-context.el, gptel-rewrite.el, and gptel-org.el give context handling, rewriting, and Org integration distinct code paths.
Tool controls: v0.9.9.5 added tool-call hooks, inspection, and interactive editing; v0.9.9.6 added tool-call rejection.
Response handling: v0.9.9.6 added steering messages and improved structured JSON responses.
Upgrade concern: v0.9.9.5 removed the default ChatGPT backend, so older configurations should be checked for implicit backend selection.
Best For

Emacs-centric users who want chat and rewriting in the editor and are willing to validate their chosen backends.

Skip If

You need an editor-independent chat client for a mixed team or a managed inference service rather than a client.

Reviewed on 2026-12-01 · Grounded in GitHub README, root file tree & releasesMethodologyReport inaccuracy

AI Context Briefing (for Claude / Cursor / Windsurf)

Standardized architecture summary & quickstart commands ready to paste into coding agents.

Raw .md ↗
curl -sL https://repoforai.com/repo/karthink/gptel.md

Embed Star History Chart & Badges in README.md

Full-history Star History SVGs and velocity cards on GitHub Camo: drop-in replacement for OSSInsight and Star History widgets.

karthink/gptel Star History on RepoForAI

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?

The source tree separates gptel.el, request handling in gptel-request.el, and provider-specific modules such as gptel-ollama.el and gptel-openai-responses.el. For an Emacs integration, choose the backend first and test the operations you need against it. The exact initialization forms and hook signatures are not established here.

Does gptel require a GPU or a specific amount of VRAM?

When inference runs behind a hosted API, there is no local model to fit in VRAM for that request path. With local Ollama, size the inference host for the chosen model, context length, and concurrent requests. No fixed RAM or VRAM minimum is established for gptel deployments.

Can a company use gptel internally or distribute a customized build?

GPL-3.0 allows commercial use. Internal use generally does not require publishing modifications; distributing the software or a modified version triggers GPL obligations, including providing corresponding source as required by the license. Review model licenses and API terms separately, and confirm where request data goes before treating a deployment as local-only.

When is gptel a better fit than a standalone chat client?

Choose gptel when the working surface is Emacs and tasks such as Org-based chat or in-editor rewriting matter. A standalone web or desktop chat client is a better starting point when users do not share an editor. The deciding factor is where the team works, not how many providers a client lists.

Upstream README & Documentation

This profile focuses on independent engineering analysis and live telemetry. Read the full upstream README, changelog, and examples directly on GitHub.

Maintaining karthink/gptel? Pin to Homepage + competitor /alternatives pages with a custom Cloud/Demo CTA.Feature karthink/gptel on Homepage & Alternatives ($19)
WEEKLY BREAKOUT DIGEST

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

Saved in your browser · Export Markdown RFC tables or jump into /vs compare