BibGenieBibGenie

Custom and Local Models

Connect your own API key, an institutional endpoint, or local models via Ollama to Zotero, and choose the model used for chat or semantic search.

BibGenie includes official models optimized for reading and understanding papers and using research tools, balancing quality and value. Start AI paper reading in Zotero without configuring an API key.

If research data privacy is a priority, or you want to use an existing model service, custom models let you connect your own API key (BYOK), institutional services, or local models through Ollama and LM Studio, directing model requests to the service you specify.

BYOK means Bring Your Own Key: use your own provider credentials instead of BibGenie's official model service. You can also connect an institutional endpoint or a local service that does not require an API key. Use this page to set up the connection, select the model, and understand where data and charges go.

The Add Model menu in Model Settings has two entries:

  • Add chat model: configure a model for chat, paper reading, and tool calls.
  • Add Embedding model: configure a model for semantic indexing and literature search.

Is a Custom Model Right for You?

Official models need no API-key setup. Configure a custom model if you:

  • Already have a provider API account and want charges on that account.
  • Need an institutional model service.
  • Want local model computation for sensitive material.
  • Need a model outside the official list.

Before adding a model

For a cloud service, prepare the provider's API Key, Model ID, and API address.

For a local model, start the service, prepare the appropriate model, and confirm the service address and Model ID. Local services usually do not require an API key.

Add a model

Open the add dialog. Go to Settings → Models (Model Settings). Under Custom Models, click Add Model, then choose the appropriate entry.

Enter the provider and model. Search for a provider in Provider ID, then select a model in Model ID. Catalog entries fill in available names, connection settings, and model details. You can enter missing entries manually.

Check the connection. Enter the API Key and check Provider Type and Base URL against the provider's requirements. Model ID is the identifier used by the API; Model Name is the name displayed in BibGenie.

Test and save. Click Test, then Add Model after Connected appears. If the test fails, check the configuration using the error message. When adding an Embedding model, you can leave dimensions empty to detect them on test or save.

Expand these notes if you need to check the connection type or model parameters:

Use your added model

Chat model

Make sure the model is enabled in Model Settings, then return to the chat page and select it in the model selector.

To use it by default in new conversations, go to Settings → Chat Settings → Default Model and select it from the dropdown. Only enabled chat models appear here.

Embedding model

Enable the model, then select it in Settings → Library & Index → Semantic Index → Embedding Model.

If a confirmation appears, click Switch and rebuild. BibGenie regenerates the semantic index for included libraries without changing your original items. Rebuilding can take time and incur provider charges. See Semantic Index for index status and retrying failures.

Data and API Key Storage

Custom model requests go directly from the local Zotero plugin to the service you configure, without passing through BibGenie's model service. Your API key and model connection settings are stored locally in Zotero and are not uploaded to BibGenie servers.

Model purposeWhat the service receivesWhere you choose it
ChatConversation content and paper context needed for the taskChat page or Default Model in Chat Settings
EmbeddingTitles and abstracts for indexing, plus semantic search queriesEmbedding Model in Library & Index

Chat and embeddings are independent. Choosing a custom chat model does not reroute an official embedding model. A compatible API or proxy receives requests at your configured Base URL; a cloud provider still receives the content needed for its model. Choose the service according to your research data requirements and its own terms.

For local computation, run Ollama or LM Studio on your computer and keep the service available. If you want both chat and embedding computation local, prepare and select a local model for each purpose. A locally stored semantic index alone does not mean its vectors were generated locally. Web search and connected services have their own data routes.

Examples of Request Destinations

ConfigurationWhere the model request goes
OpenAI or Anthropic with that provider’s API addressDirectly to the configured provider
OpenAI Compatible proxy or institutional serviceTo the configured Base URL; the operator of that service receives the request
Ollama or LM Studio running on this computerTo that local service for model computation

An API key alone does not determine the destination: check the Base URL. Apply this choice separately to chat and embeddings; local model computation does not make web tools local.

Costs and BibGenie Credits

Custom chat and embedding requests do not consume BibGenie's model credits. A cloud provider may charge your provider account; local models use your computer's resources. Building or rebuilding an index and running semantic queries may incur embedding-provider charges.

External tools still follow your BibGenie plan's separate charging rules. A separately selected official chat or embedding model also keeps its official billing rules. See Pricing & Credits for those distinctions.

Usage tracking and optional sync

Under Settings → Usage in the plugin, you can view model token usage, cache read proportions, and activity heatmaps.

  • Local by default: New custom model usage is recorded locally. Uploads are off by default, and the switch applies only to this device.
  • Optional uploads: With Upload custom model usage enabled, opening the Usage page can sync records automatically when needed. You can also sync manually. Changing the switch does not immediately start a sync.
  • Where to view usage: The web Usage page combines records uploaded from devices using the same account. The plugin shows synced official and custom usage for the account, plus custom usage from this device that has not been uploaded.
  • Turning uploads off: Already uploaded account usage still downloads. Turning uploads off does not delete cloud records or local records.

Usage uploads contain only usage information, such as model details, token counts, and costs—not prompts, model responses, document contents, or API keys. Uploading custom model usage does not consume BibGenie model credits.

Common questions