Skip to content
86% off$349 $48.86code BF2026

Docs

Sledbot docs30 pages

Gemini CLI "gemini-3.5-flash" was not found or is invalid

Gemini CLI says Model "gemini-3.5-flash" was not found or is invalid? Update the CLI, pick a listed model with /model, and check your login.

Updated 5 min read

On this page

You started Gemini CLI, or typed a prompt, and got this:

text
Model "gemini-3.5-flash" was not found or is invalid.

The CLI then offers Keep trying or Stop and points you to /model. Retrying with the same name changes nothing.

Why Gemini CLI says the model was not found or is invalid

The CLI sends the model name to Google and the request is rejected. We can't tell you from the reports which cause applies to you. People on the GitHub issue for this error described a newly released model that they could not select, and the thread was closed as not planned, with no fix stated. The likely causes, from most to least common:

CauseSymptomFix
Outdated CLIA newly released model name is rejectedUpdate the CLI
Account or sign-in route has no accessThe model is missing from /model for you but not for othersCompare sign-in methods, sign in again
Hard-coded model nameThe error appears on every launchRemove it from the alias, script or config
Name typed wrongly or not yet availableOnly that one name failsPick from the /model list

These are the usual suspects, not confirmed diagnoses. The sections below go in order of effort.

Fix 1: pick a model with /model

  1. At the Keep trying / Stop prompt, choose Stop.
  2. Type /model at the Gemini CLI prompt.
  3. Select a model from the list it shows.

If gemini-3.5-flash is not in that list, your CLI version or your login does not offer it yet. Choosing happens inside the CLI. Gemini CLI is not an "any model" agent in Sledbot, so Sledbot's own model picker does not apply to it.

Fix 2: update Gemini CLI

An older CLI may not know a newly released model.

  1. In Terminal, run gemini --version and note the number.

  2. Update with npm. Gemini CLI is published as the @google/gemini-cli package:

    bash
    npm install -g @google/gemini-cli

    This installs the latest published version over the old one. If you installed it another way, use that method's update command.

  3. Start gemini again, run /model, and retry.

Update it from Sledbot

If you run Gemini CLI in Sledbot, you can start the update from the app:

  1. Open Settings (⌘,) and choose Agents.
  2. Under Machine, pick the machine the CLI is installed on: This Mac or a remote machine you have added.
  3. Click Refresh next to Coding agents. The Gemini CLI row shows its vendor and installed version.
  4. Click Update… on that row and confirm in the sheet.

The update runs in a terminal pane on that machine, so you can watch the output. When it finishes, restart the agent (⇧⌘R with its terminal focused, or Restart in the agent header) so it starts on the new version.

If the version Sledbot shows differs from gemini --version in Terminal, the two are probably using different installs. By default Sledbot starts agents on This Mac through an interactive login shell (Settings > General > Load ~/.zshrc when starting agents, on by default). If your Node setup lives in ~/.zshrc, keep that setting on.

Fix 3: check where the model name is set

If something passes a model name every time you start Gemini CLI, you get the same error every session. Look at:

  • any shell alias or script you launch gemini from;
  • any saved Gemini CLI configuration;
  • in Sledbot, a customized Gemini CLI entry in ~/.config/sledbot/agents.json (custom presets are merged into the built-in list by id).

Remove the hard-coded name or replace it with one that /model lists.

Fix 4: check your login and account

Sign-in routes differ. Google's published limits differ between a personal Google account and a Gemini API key, and the free API-key tier covers Flash models only (as of November 2026). If a model shows up for a colleague but not for you, compare how each of you signed in.

To sign in again, run gemini in Terminal. In Sledbot, use Log in… on the Gemini CLI row in Settings > Agents; it runs in a terminal on that machine.

If you see 400 INVALID_ARGUMENT instead

A separate report describes 400 INVALID_ARGUMENT with "Request contains an invalid argument" on a setup that "was working yesterday", and two earlier duplicates exist. Its cause is not stated either. Use the same sequence: update the CLI, start a new session, then choose a model with /model.

Checklist before you try again

  • You chose Stop rather than looping on Keep trying.
  • gemini --version shows the version you expect after the update.
  • No alias, script or config hard-codes gemini-3.5-flash.
  • /model lists the model you are picking.
  • You signed in again if the list looks smaller than a colleague's.

If nothing works

Report it on the Gemini CLI GitHub repository, or to Google through the support route for your account type. Include:

  • the exact error text and whether it is the "not found or invalid" message or 400 INVALID_ARGUMENT;
  • the output of gemini --version and how you installed it;
  • how you sign in (personal Google account or API key);
  • what /model lists;
  • the steps you already tried.
text
Gemini CLI reports: Model "gemini-3.5-flash" was not found or is invalid.
Version: (output of gemini --version), installed via npm.
Sign-in: personal Google account (or: Gemini API key).
/model lists: (paste the list).
I updated the CLI, restarted it, and removed any hard-coded model name.
Is this model available for my account and CLI version?

What Sledbot covers here

Sledbot helps with one part. Settings > Agents shows the installed Gemini CLI version on each machine you have added and runs Update… and Log in… in a terminal there. Model availability, model names and account access are decided by Gemini CLI and your Google account, so the other fixes on this page happen there.

Common questions

Why does Keep trying never work?

It resends the same model name, so the same rejection comes back. Choose Stop and change the model or the CLI version instead.

Does the error mean my API key or login is broken?

Not necessarily. Other models may work fine on the same login. Check /model first: if other models are listed, the problem is that one model name, not your sign-in.

Can I pick a Gemini model in Sledbot's model picker?

No. The model chip in Sledbot appears only for agents that accept a model, and Gemini CLI is not one of them. Use /model inside the CLI.

Every app.
One purchase.