# Google-Gemini-CLI

> Google-Gemini-CLI is the user agent of the Gemini CLI web fetch tool when it fetches a page directly. Google's crawler pages do not list it.

Canonical: https://promptlyfound.com/crawlers/google-gemini-cli
Updated: 2026-11-29

## Short answer

Google-Gemini-CLI is the user agent that Gemini CLI sends when its web fetch tool fetches a page directly. The tool normally uses the Gemini API's URL context feature and fetches from the user's machine only as a fallback. **Google publishes no robots.txt policy for Gemini CLI, so a Google-Gemini-CLI rule is only a request.** Google's crawler pages do not list it.

## Key findings

- Gemini CLI's documentation says the web_fetch tool retrieves and processes content from URLs in the user's prompt, up to 20 URLs per request. It shows a confirmation dialog first. [1]
- Gemini CLI's documentation says the tool uses the Gemini API's urlContext for retrieval. If API access fails, it fetches raw content directly from the user's local machine. [1]
- The Gemini CLI source code sets the user agent Mozilla/5.0 (compatible; Google-Gemini-CLI/1.0; +https://github.com/google-gemini/gemini-cli) for direct fetches. It limits the tool to 10 URLs per host per minute. [2]
- The web fetch source file does not mention robots.txt. Google's list of user-triggered fetchers does not name Gemini CLI. [2]
- Known Agents reports the same user agent string and says a user action triggers Google-Gemini-CLI. [4]

## What blocking it does

Gemini CLI is a Google coding agent. Its [web fetch documentation](https://raw.githubusercontent.com/google-gemini/gemini-cli/main/docs/tools/web-fetch.md) says the `web_fetch` tool retrieves and processes content from URLs in the user's prompt. A prompt can hold up to 20 URLs. The tool shows a confirmation dialog first.[1]

The tool uses the Gemini API's urlContext for retrieval. If API access fails, it fetches raw content directly from the user's local machine.[1] The [source code](https://raw.githubusercontent.com/google-gemini/gemini-cli/main/packages/core/src/tools/web-fetch.ts) sends the Google-Gemini-CLI user agent on these direct fetches.[2] On the API path, the Gemini API's URL context tool does the retrieval. The [GoogleAgent-URLContext](https://promptlyfound.com/crawlers/googleagent-urlcontext) profile covers that tool.

Google's [list of user-triggered fetchers](https://developers.google.com/crawling/docs/crawlers-fetchers/google-user-triggered-fetchers) does not name Gemini CLI.[3] The web fetch source file does not mention robots.txt.[2] [Known Agents](https://knownagents.com/agents/google-gemini-cli) expects Google-Gemini-CLI to follow robots.txt.[4] This is a third-party view, not a Google statement.

## robots.txt rules

This group asks Google-Gemini-CLI to stay out of the whole site. Google has not said that Gemini CLI reads it:

```
User-agent: Google-Gemini-CLI
Disallow: /
```

A rule for Google-Gemini-CLI does not name Googlebot or Google-Extended. A firewall rule that matches "Google-Gemini-CLI" in the user agent can refuse direct fetches. robots.txt can only ask.

## Verify a request

You cannot verify a Google-Gemini-CLI request. The source code sets the full string `Mozilla/5.0 (compatible; Google-Gemini-CLI/1.0; +https://github.com/google-gemini/gemini-cli)`.[2] Known Agents reports the same string.[4] Direct fetches come from the user's local machine.[1] The Gemini CLI documentation gives no IP list. Any client can send the name. A match in your logs is only a clue.

## Sources

1. Web fetch tool (web_fetch). Gemini CLI documentation (Google, GitHub). https://raw.githubusercontent.com/google-gemini/gemini-cli/main/docs/tools/web-fetch.md
2. packages/core/src/tools/web-fetch.ts. Gemini CLI source code (Google, GitHub). https://raw.githubusercontent.com/google-gemini/gemini-cli/main/packages/core/src/tools/web-fetch.ts
3. Google user-triggered fetchers. Google Crawling Infrastructure. https://developers.google.com/crawling/docs/crawlers-fetchers/google-user-triggered-fetchers
4. What Is Google-Gemini-CLI? User Agent & Robots.txt Blocking. Known Agents. https://knownagents.com/agents/google-gemini-cli

---

This is a plain-text copy of https://promptlyfound.com/crawlers/google-gemini-cli from Promptly Found. The web page is the canonical version and includes the charts.
