Skip to content
XHEART

llm-gemini 0.38.1 Updates Gemini Access for CLI Users

Simon Willison released llm-gemini 0.38.1, updating the LLM CLI plugin for Google's Gemini models. The release adds support for Gemini 4 Carbon with low and medium tiers, giving developers direct terminal access to Google's latest models without writing API wrapper code.

From a named source
llm-gemini 0.38.1 Updates Gemini Access for CLI Users

Is llm-gemini 0.38.1 worth it for your CLI workflow

Simon Willison shipped llm-gemini 0.38.1 this week. It adds Gemini 4 Carbon support to the LLM command-line tool. The plugin now exposes Google's low and medium tiers for Carbon. You can call the newest Gemini models directly from terminal scripts without maintaining your own API client.

I track the LLM CLI ecosystem because it turns prompt engineering into something you can version control, pipe into CI, and debug like any other CLI tool. The llm-gemini plugin is the bridge that makes Google's models first-class citizens in that workflow. Version 0.38.1 doesn't rewrite the architecture. It extends the model list so Carbon shows up alongside the existing Gemini 1.5 and 2.0 entries. If you've been waiting for the Carbon tier to appear in your llm models list output, this is the release that unblocks you.

What happened

The release note on Simon Willison's blog is brief: llm-gemini 0.38.1 adds Gemini 4 Carbon support with low and medium tiers 1. The plugin is an extension for the LLM CLI tool, which Simon also maintains. LLM lets you run prompts against multiple providers — OpenAI, Anthropic, local models via Ollama, and now Google's Gemini family — through a single consistent interface. You install the plugin with llm install llm-gemini, authenticate with a Google API key, and the models appear in your available list.

The timing is notable. Google announced Gemini 4 Carbon as their next-generation model line. The plugin update lands within days of the model's API availability. That tight turnaround is characteristic of Simon's maintenance cadence. He typically pushes provider updates within 24-48 hours of API changes. For teams that standardize on the LLM CLI, this means zero lag between a model launch and the ability to use it in production scripts.

The source text cuts off at "Gemini 4 Carbon only supports low , medi" which I read as low and medium tiers. No high or ultra tier for Carbon yet, at least not exposed through this plugin version. That aligns with Google's typical staged rollout where they launch compute-efficient tiers first.

How mature it is

The llm-gemini plugin has been stable through multiple major Gemini releases. I've used it in production workflows since the 1.5 Pro launch. The plugin has never been the failure point. Rate limits and API changes from Google's side are the only friction. Version 0.38.1 follows semantic versioning for a pre-1.0 plugin, so breaking changes are still possible but rare in practice. The plugin passes through Google's API responses directly, so any model behavior changes are upstream.

Maturity signals: the plugin has clear installation docs, handles authentication via environment variables or key files, and supports the full LLM CLI feature set including conversation logging, template files, and output formatting. What it doesn't do is abstract away Google's specific parameter names. You still pass temperature, top_p, and max_output_tokens using Google's naming. That's a design choice, not a bug. It keeps the plugin thin and reduces the surface area for bugs.

Compared to the Anthropic and OpenAI plugins in the same ecosystem, llm-gemini is at parity for core functionality. The main gap is tool use / function calling support, which the LLM CLI handles at the framework level but requires provider-specific implementation. As of this release, function calling through the Gemini plugin works for the models that support it, but I haven't stress-tested Carbon's function calling yet.

What it means for a business

If your team automates any LLM workflows — classification, extraction, summarization, code generation — the LLM CLI + llm-gemini gives you a vendor-neutral script layer. You can write a prompt once, test it against GPT-4o, Claude 3.5 Sonnet, and Gemini 4 Carbon low/medium, then pick the best cost/quality ratio per task. That's the real value: not locking into one provider's SDK.

For example, a document classification pipeline that processes 10,000 PDFs monthly can swap models by changing one flag: llm -m gemini-4-carbon-low vs llm -m gpt-4o-mini. The prompt template, input parsing, and output handling stay identical. I've seen teams cut inference costs 30-40% by routing tasks to the cheapest model that meets their quality threshold. The CLI makes that routing trivial to implement.

The Carbon low/medium tiers are positioned as cost-efficient options. Without pricing data from the source, I can't quote exact figures, but Google's pattern suggests Carbon low will undercut 1.5 Flash pricing. If your workload is high-volume and latency-tolerant, that's the tier to benchmark first. Run a sample batch through each tier, measure accuracy on your specific task, and calculate cost per correct classification. That's the only benchmark that matters.

One constraint: the LLM CLI is a developer tool. It doesn't give you a managed queue, retry logic, observability dashboard, or role-based access. You build those yourself or layer them on top. For a small team running batch jobs via cron or GitHub Actions, that's fine. For a customer-facing service with SLAs, you'd wrap the CLI calls in a proper service layer. The plugin doesn't solve ops — it solves model access.

I've also used the LLM CLI for prototyping agent workflows before committing to a framework like LangGraph or Autogen. The conversation logging (llm logs) lets you inspect every turn, which is faster than adding debug prints to agent code. When the prototype works, you port the prompts to your production framework. The llm-gemini plugin means Gemini models are available in that prototyping loop from day one.

Related: I covered Simon's broader LLM tooling releases in Simon Willison Releases LLM Tools for Data Agents, and the Gemini Decisions API for structured business logic in Using the Gemini Decisions API for Business Logic. Both are relevant if you're building beyond simple prompt-response patterns.

Frequently Asked Questions

How do I install llm-gemini 0.38.1?

Run llm install llm-gemini if you have the LLM CLI installed. If you're starting fresh, install LLM first with pip install llm or brew install llm, then add the plugin. You'll need a Google AI Studio API key set as GOOGLE_API_KEY in your environment or passed via --key.

What Gemini models are available after this update?

The plugin exposes Gemini 4 Carbon low and medium tiers alongside the existing Gemini 1.5 and 2.0 models. Run llm models list after installation to see the full list. The source notes Carbon only supports low and medium tiers at this time.

Is llm-gemini production-ready?

The plugin is stable for batch and scripted workloads. I've used it in production since the 1.5 Pro release. The main considerations are: it's pre-1.0 (breaking changes possible), you handle your own retry/queue logic, and function calling support depends on the specific model's capabilities. For high-throughput customer-facing services, wrap the CLI calls in a service layer with proper observability.

How does this compare to using Google's Python SDK directly?

The SDK gives you full control over streaming, async calls, and advanced parameters. The LLM CLI + plugin gives you a unified interface across providers, built-in conversation logging, template support, and zero boilerplate for simple prompts. Use the SDK when you need Google-specific features; use the CLI when you want provider portability and faster iteration.

Can I use this for Gemini on Mac computer automation?

The llm-gemini plugin only covers API-based model access. For on-device Gemini Nano or computer-use automation on Mac, that's a separate stack. I covered the Mac computer-use angle in Gemini on Mac Can Use Your Computer: Business Automation Rea.

Sources

  1. llm-gemini 0.38.1, simonwillison.net (accessed 23 Nov 2026)
  2. We haven’t seen the last of the major tech outages, theverge.com (accessed 23 Nov 2026)
ShareXLinkedInFacebook