> For the complete documentation index, see [llms.txt](https://burp-ai-agent.six2dez.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://burp-ai-agent.six2dez.com/backends/gemini-cli.md).

# Gemini CLI

Gemini CLI is useful for large-context cloud analysis and agent-style workflows.

{% hint style="info" %}
**Full build only.** The Gemini CLI backend is part of the GitHub full build (`Custom-AI-Agent-full-<version>.jar`, built with `./gradlew fullJar`). The BApp Store build (`./gradlew bappJar`) does not include it: all five CLI backends (Gemini CLI, Claude CLI, Codex CLI, OpenCode CLI and Copilot CLI) are full build only. See [Which Build?](https://burp-ai-agent.six2dez.com/getting-started/which-build.md).
{% endhint %}

## Requirements

* `gemini` CLI installed.
* Authentication completed with `gemini auth login`.

## Setup

1. Install/verify the CLI from the official docs.
2. Authenticate:

```bash
gemini auth login
```

3. Verify locally:

```bash
gemini "hello"
```

4. Configure in **AI Backend** settings tab.

## Configuration

| Setting                | Value                                                         |
| ---------------------- | ------------------------------------------------------------- |
| **Preferred Backend**  | `gemini-cli`                                                  |
| **Gemini CLI Command** | `gemini --output-format text --model gemini-2.5-flash --yolo` |

## Non-Interactive Mode

`--yolo` is used by default to avoid interactive approval prompts that can block embedded MCP workflows.

### Windows

npm-installed CLI shims are resolved automatically on Windows. The extension detects `.cmd` siblings and uses them instead of shell script shims that Java cannot execute directly.

## Troubleshooting

{% hint style="info" %}

* `command not found`: use full executable path if needed.
* Windows: npm shim paths are resolved automatically. If auto-resolution fails, use the full `.cmd` path: `C:\\Users\\<you>\\AppData\\Roaming\\npm\\gemini.cmd`.
* `ModelNotFoundError` / `RESOURCE_EXHAUSTED`: choose available model and update `--model`.
* Auth errors: re-run `gemini auth login`.
  {% endhint %}

## Related Pages

* [Backends Overview](https://burp-ai-agent.six2dez.com/backends/overview.md)
* [Troubleshooting](https://burp-ai-agent.six2dez.com/reference/troubleshooting.md)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://burp-ai-agent.six2dez.com/backends/gemini-cli.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
