git404hub

what is gptel-openrouter fr?

bharadswami/gptel-openrouter — explained in plain English

Analysis updated 2026-05-18

2Emacs LispAudience · developerComplexity · 2/5Setup · easy

tl;dr

An Emacs package that auto-fills the gptel chat tool with OpenRouter's full AI model catalog, including prices and capabilities, cached locally for instant access.

vibe map

mindmap
  root((gptel-openrouter))
    What it does
      Populates gptel backends
      Caches model catalog
      Async refresh
    Tech stack
      Emacs Lisp
      gptel
      OpenRouter API
    Use cases
      Browse model catalog
      See pricing and capabilities
      Share cache across backends
    Audience
      Emacs users
      gptel users
    Setup
      Add to load path
      Set API key
      Customize refresh interval

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

what do people make with this?

VIBE 1

Browse OpenRouter's full AI model list inside Emacs without manual configuration.

VIBE 2

See per-model pricing, context window, and capabilities before choosing a model.

VIBE 3

Keep multiple OpenRouter backends in gptel synced to one shared model cache.

VIBE 4

Automatically know which models support tools, JSON output, or file attachments.

what's the stack?

Emacs LispgptelOpenRouter API

how it stacks up fr

bharadswami/gptel-openrouterdouo/lims_dot_emacssebastiaanspeck/magik
Stars221
LanguageEmacs LispEmacs LispEmacs Lisp
Last pushed2026-06-162026-06-20
MaintenanceMaintainedMaintained
Setup difficultyeasymoderatemoderate
Complexity2/53/53/5
Audiencedeveloperdeveloperdeveloper

Figures from each repo's GitHub metadata at analysis time.

how do i run it?

Difficulty · easy time til it works · 5min

Requires an existing Emacs + gptel setup and an OpenRouter API key.

in plain english

gptel-openrouter is a small add-on for the Emacs text editor that connects a chat tool called gptel to OpenRouter, a service that gives access to many different AI models through one account. Instead of manually typing in details about each AI model you want to use, this package automatically downloads OpenRouter's full list of text-capable models and fills in the details for you inside Emacs. It keeps a local cached copy of that model list and refreshes it in the background, so opening Emacs and picking a model never has to wait on a network request. Along with each model's name, it pulls in useful details like the price per million tokens for input and output, how much text the model can handle at once, its knowledge cutoff date, and whether it supports things like reasoning, using tools, returning structured JSON, or handling images, PDFs, audio, or video. Having this information means gptel automatically knows which models can accept a file attachment or use tools, and it makes the model picker in Emacs more informative when browsing through choices. Setting it up means adding the package to your Emacs configuration, then telling gptel to use it as a backend with your OpenRouter API key. On first use it falls back to a general purpose default model while the full list downloads in the background, and later runs load instantly from the cache. You can refresh the list manually at any time, and you can create multiple OpenRouter backends in gptel that all share and update from the same cached catalog. Most of the settings, like where the cache file lives and how often it refreshes, can be customized through Emacs' built in customization menu. This tool is meant for existing Emacs and gptel users who want an easier, more informed way to browse and switch between the many AI models OpenRouter offers, without manually configuring each one by hand.

prompts (copy fr)

prompt 1
Help me install and configure gptel-openrouter in my Emacs setup.
prompt 2
Show me how to set up multiple OpenRouter backends that share the same model cache.
prompt 3
Explain how to change the cache location and refresh interval for gptel-openrouter.
prompt 4
Walk me through refreshing the OpenRouter model catalog manually in Emacs.

Frequently asked questions

what is gptel-openrouter fr?

An Emacs package that auto-fills the gptel chat tool with OpenRouter's full AI model catalog, including prices and capabilities, cached locally for instant access.

What language is gptel-openrouter written in?

Mainly Emacs Lisp. The stack also includes Emacs Lisp, gptel, OpenRouter API.

How hard is gptel-openrouter to set up?

Setup difficulty is rated easy, with roughly 5min to a first successful run.

Who is gptel-openrouter for?

Mainly developer.

peek the repo → explain another one

This repo across BitVibe Labs

double-check against the repo, no cap.