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:
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:
| Cause | Symptom | Fix |
|---|---|---|
| Outdated CLI | A newly released model name is rejected | Update the CLI |
| Account or sign-in route has no access | The model is missing from /model for you but not for others | Compare sign-in methods, sign in again |
| Hard-coded model name | The error appears on every launch | Remove it from the alias, script or config |
| Name typed wrongly or not yet available | Only that one name fails | Pick 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
- At the Keep trying / Stop prompt, choose Stop.
- Type
/modelat the Gemini CLI prompt. - 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.
In Terminal, run
gemini --versionand note the number.Update with npm. Gemini CLI is published as the
@google/gemini-clipackage:bash npm install -g @google/gemini-cliThis installs the latest published version over the old one. If you installed it another way, use that method's update command.
Start
geminiagain, run/model, and retry.
Update it from Sledbot
If you run Gemini CLI in Sledbot, you can start the update from the app:
- Open Settings (⌘,) and choose Agents.
- Under Machine, pick the machine the CLI is installed on: This Mac or a remote machine you have added.
- Click Refresh next to Coding agents. The Gemini CLI row shows its vendor and installed version.
- 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
geminifrom; - 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 --versionshows the version you expect after the update.- No alias, script or config hard-codes
gemini-3.5-flash. /modellists 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 --versionand how you installed it; - how you sign in (personal Google account or API key);
- what
/modellists; - the steps you already tried.
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.