gemini-core

Reviewed at commit 0e4c0dd New version, not yet reviewed

Keeps the Gemini keys and tier of every Gemini mod, and each mod's model and thinking level, in one place: adds $.gemini, which builds their Gemini requests…

Made by
Kerem Gok
What we checked

Shared base for the other Gemini mods. It keeps your Gemini API key (from its setting or GEMINI_API_KEY), tier, model and thinking level, builds their requests to Google and offers /gemini-core to change them. On its own it sends your key to Google only to list the available models; the Gemini mods that use it send the conversation.

Review details

Static review of the source at the pinned commit; not run. Registers engine.create (adds $.gemini with enroll, settings, request, read, configure), session.start (registers /gemini-core), command.run (status, free, paid, models [refresh], model <mod> [id], thinking <mod> <level>, reset), ui.render and ui.close for a model picker pane. Reads the apiKey plugin option (marked sensitive) or the GEMINI_API_KEY environment variable, never logs or stores it, and sends it only in the x-goog-api-key header to https://generativelanguage.googleapis.com/v1beta/models (generateContent built for other mods, and a GET models list sent by its own command). Several comma-separated keys are tried in turn after quota or key errors. Stores tier, enrolled mods and per-mod model and thinking choices with $.store. The hook itself never sends conversation content; $.gemini.request only builds a request that the consuming mod sends with $.http.fetch. Free tier warning text states Google may use submitted data. No files, no processes.

What it uses
  • Reads your prompts: no
  • Sees tool calls: no
  • Blocks or changes tool calls: no
  • Reads or writes files: no
  • Runs programs on your machine: no
  • Calls the model (uses tokens): no
  • Sends data over the network: yes
  • Stores data: yes
  • Shows something on screen: yes
Hooked events

Keeps the Gemini keys and tier of every Gemini mod, and each mod's model and thinking level, in one place: adds $.gemini, which builds their Gemini requests, reads the answers and moves to the next key after a quota or key error, and picks a model from Google's list.

Made this mod? Add a badge to your README

modsforClaude badge for gemini-core

Paste this into your README. The badge says reviewed once the current version has been reviewed, and links readers to this page.

[![Listed on modsforClaude](https://modsforclaude.com/badge/gemini-core.svg)](https://modsforclaude.com/mods/gemini-core/)

← All mods