update-models-gemini

update-models-gemini is a command for Claude Code from enricoros/big-AGI. It costs 9 tokens per session (561 once invoked), scanned A, original, MIT.

A coding command that refreshes the project's list of Google Gemini models, including their prices, capabilities, and retirement information, using Google's published documentation.

In plain words
What is it for?
Use it when keeping Gemini model definitions current in an application that connects to Google's AI models.
Why use it?
It removes the need to manually check Google's changing model information and update the model file by hand.

Command for Claude Code

Written for Claude Code: installed under .claude/.

Good fit Use it when keeping Gemini model definitions current in an application that connects to Google's AI models.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/enricoros/big-agi/update-models-gemini
About the project

Big-AGI is an open-source workspace for using multiple AI models through chat and other AI functions. It is intended for engineers, founders, researchers, and other users who want to work with AI personas, model comparisons, image generation, voice, documents, and code-related features. The catalogue entries provide commands, instructions, and a skill for working with Big-AGI.

enricoros/big-AGI · 7,114 stars · on GitHub · big-agi.com

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/enricoros/big-AGI

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for update-models-gemini

README.md
[![agentmods](https://agentmods.dev/badge/commands/enricoros/big-agi/update-models-gemini.svg)](https://agentmods.dev/commands/enricoros/big-agi/update-models-gemini)
Your own site
<a href="https://agentmods.dev/commands/enricoros/big-agi/update-models-gemini"><img src="https://agentmods.dev/badge/commands/enricoros/big-agi/update-models-gemini.svg" alt="Measured on agentmods" height="20"></a>
Per session 9 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 561 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00009 $0.00561
Opus 5 $0.00005 $0.00280
Sonnet 5 $0.00002 $0.00112
Haiku 4.5 $0.00001 $0.00056

Measured 8d ago against content hash 428a7947ab36, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

update-models-gemini scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 8d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

**Live endpoint (extra signal):** If `.env.api-keys` has `GEMINI_API_KEY`, scan the served model list as ground-truth for what's new/available and cross-check the docs above: `curl "https://generativelanguage.googleapis.
.claude/commands/llms/update-models-gemini.md · 27 lines

What it actually says

Update src/modules/llms/server/gemini/gemini.models.ts with latest model definitions.

Reference src/modules/llms/server/llm.types.ts, src/modules/llms/server/llm.server.types.ts, and src/modules/llms/server/models.mappings.ts for context only. Focus on the model file, do not descend into other code.

Primary Sources:

Fallbacks if blocked: Check Google AI JS SDK at https://github.com/googleapis/js-genai, search "gemini models latest pricing", "gemini latest models", or search GitHub for latest model prices and context windows

Live endpoint (extra signal): If .env.api-keys has GEMINI_API_KEY, scan the served model list as ground-truth for what's new/available and cross-check the docs above: curl "https://generativelanguage.googleapis.com/v1beta/models?pageSize=1000&key=$GEMINI_API_KEY". pageSize is required: the default is 50 and the tail (newest models included) is silently dropped behind a nextPageToken. Never commit or echo the key. When looping ids in zsh, write ${m}:generateContent - bare $m:ge... is eaten as a zsh history modifier and every probe silently 404s.

Listed != reachable: the list endpoint keeps returning models that 404 on generateContent (filterNotFoundModelNames), and returns retired-preview aliases that still serve (sometimes routed to their successor - check modelVersion in the response). Re-verify both with a 1-token POST per suspect id before adding or removing a def.

Important:

  • Ignore context windows (auto-determined at runtime) and training cutoffs (not supported)
  • Review the full model list for additions, removals, and price changes
  • Minimize whitespace/comment changes, focus on content
  • Preserve comments to make diffs easy to review, do NOT remove comments
  • Flag broken links or unexpected content
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 8d ago First seen · 27 lines · 9 tokens per session scan A 428a7947ab36

Subscribe to this mod's changes

update-models-gemini is a command published in the GitHub repository enricoros/big-AGI (7,114 stars, last pushed yesterday), licensed MIT. It adds 9 tokens to every session and 561 once invoked, about $0.0000 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.