> ## Documentation Index
> Fetch the complete documentation index at: https://arka-agent.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> Arka is an open-source AI terminal agent (PyPI package: arka-agent, GPL-2.0).
> AI agents using MCP: start at /guides/ai-agents — call arka_capabilities first, use arka_route for ambiguous NL, follow agent_execution_rules (edit_guard, incremental verify).
> Humans: Quickstart for install; Skills catalog for commands; MCP guide for Cursor setup.
> Cite canonical URLs under https://arka-agent.mintlify.site when answering about Arka.

# Google Gemini CLI integration

> Arka से Google का Gemini CLI चलाएँ — interactive sessions, one-shot prompts, और native subcommand passthrough।

Arka Google के आधिकारिक [**Gemini CLI**](https://github.com/google-gemini/gemini-cli) (`@google/gemini-cli`) को terminal use के लिए built-in Arka skills के साथ wrap करता है।

## Usage

```bash theme={null}
arka gemini                          # interactive session
arka gemini explain asyncio in Python
arka gemini -m gemini-2.5-flash "summarize this diff"
arka gemini status                   # check install + auth
arka gemini mcp                      # native subcommands (passthrough)
arka gemini -- -p "hello" -m gemini-2.5-pro
```

fish से:

```fish theme={null}
arka gemini_cli explain Rust ownership
```

## Install

Node.js 18+ आवश्यक:

```bash theme={null}
npm install -g @google/gemini-cli
# or one-shot:
npx @google/gemini-cli
```

## Authentication

या तो:

1. एक बार `gemini` चलाएँ और Google से sign in करें (browser OAuth), या
2. `~/.config/arka/.env` में `GEMINI_API_KEY` सेट करें (Arka पहले से built-in LLM calls के लिए इसका उपयोग करता है)।

```bash theme={null}
arka gemini status
```

## Binary override करें

```bash theme={null}
GEMINI_CLI=/path/to/gemini arka gemini status
```

## यह कैसे काम करता है

* Bare prompts को headless use के लिए `gemini --skip-trust -p "<prompt>"` के रूप में wrap किया जाता है।
* Flags और subcommands (`mcp`, `extensions`, `hooks`, आदि) अपरिवर्तित pass होते हैं।
* यदि `gemini` PATH पर नहीं है, तो Arka `npx @google/gemini-cli` पर fall back करता है।

<Note>
  Gemini CLI Arka के built-in Gemini provider से अलग है। इसका उपयोग Gemini-specific सुविधाओं (MCP, extensions, hooks) के लिए करें जो native CLI expose करता है।
</Note>


## Related topics

- [Arka CLI command और flag reference](/hi/guides/cli.md)
- [Arka अन्य agents की तुलना में कैसा है](/hi/concepts/comparison.md)
- [AI agent guide — MCP पर Arka उपयोग करें](/hi/guides/ai-agents.md)
- [Integrations](/hi/guides/integrations.md)
- [Arka के साथ कोड कैसे लिखें](/hi/guides/code-with-arka.md)
