Insurgently

Obsidian plugin· Active · beta · not yet released

Model Hub

Named roles mapped to provider and model, keys kept in secret storage, and a cost ledger with the billed cost of every call. Other plugins call it for their AI.

Beta. Model Hub is not released yet. These pages describe the build in progress.

Model Hub

Set up your AI providers once, and let every plugin use them, with the cost of each call recorded.

Every AI plugin asks for its own API key, picks its own model and keeps quiet about what it spent. Model Hub holds your providers and keys in one place. Other plugins ask it for a model by role, such as clusters.extract, and you decide which models serve that role.

Every call is written to a ledger with its tokens, the listed price and what you were billed. A call that would go over a limit you set is stopped before it is sent. Model Hub also has a small chat panel for the note you are working on.

The four words to know

WordWhat it is
ProviderA place models come from: OpenRouter, Anthropic, Ollama, LM Studio, or another server you add.
TierAn ordered list of models with two limits: the most one call may cost, and the most the tier may spend in a month. There are seven built in, from Quick to Frontier.
RoleA job a plugin needs a model for. Each role runs on a tier unless you give it models of its own.
LedgerThe record of every call, kept in a file on your computer.

What you need

  • Obsidian 1.11.4 or later, on desktop. Model Hub does not run on mobile.
  • At least one provider: an OpenRouter or Anthropic account with an API key, or Ollama or LM Studio running on your computer.

Next: Getting started.