> ## Documentation Index
> Fetch the complete documentation index at: https://docs.nika.sh/llms.txt
> Use this file to discover all available pages before exploring further.

# Use Nika with Gemini CLI

> Add the read-only Nika oracle to Gemini CLI's settings.json — nika wire gemini writes the stanza.

> [!NOTE]
>
> **Where Gemini CLI stands** · on 2026-06-18 Google ended the consumer
> service (AI Pro, Ultra and free tiers) in favor of
> [Antigravity CLI](https://antigravity.google/docs/gcli-migration) ·
> enterprise access and paid API keys continue, and the
> [OSS repo](https://github.com/google-gemini/gemini-cli) stays active. This
> guide remains valid for those paths. For Antigravity, `nika wire antigravity`
> writes the same stanza to `~/.gemini/config/mcp_config.json`
> ([MCP clients](https://docs.nika.sh/integrations/mcp-clients.md#antigravity)).

[Gemini CLI](https://github.com/google-gemini/gemini-cli) reads MCP servers
from `mcpServers` in its user-scope `~/.gemini/settings.json`. The binary
comes first: `brew install supernovae-st/tap/nika`
([other paths](https://docs.nika.sh/getting-started/installation.md)).

Add the `nika` entry to `~/.gemini/settings.json`:

```json theme={"system"}
{ "mcpServers": { "nika": { "command": "nika", "args": ["mcp"] } } }
```

`nika wire gemini` writes exactly this · it touches only the `mcpServers`
key, so every other setting in the shared file survives, and re-running
prints `· current` (idempotent).

> [!NOTE]
>
> Gemini CLI's policy parser splits server names on underscores — a server
> named `my_server` misbehaves upstream. `nika` is underscore-free, safe
> as-is.

## The repo side

`nika init` writes the agent-teaching surface (`AGENTS.md`, rules) plus
the `$schema` modeline for validation and completion on `*.nika`.

## Verify

`/mcp` in a Gemini CLI session lists `nika` with the nine `nika_*` tools
([the oracle's contract](https://docs.nika.sh/reference/mcp-server.md): validate, explain, schema,
cost — no execution). Then prove the loop end-to-end:
[integrate in 10 minutes](https://docs.nika.sh/integrations/quickstart.md).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.