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

# Gemini CLI

> Capture and recall with Gemini CLI.

# Gemini CLI Integration

BaseLayer works with Gemini CLI for both **automatic capture** and **MCP recall**.

## Capture (automatic)

The desktop app's IDE watcher detects Gemini CLI conversations automatically. No setup needed beyond having the desktop app running.

## Recall (MCP setup)

To give Gemini CLI access to your memory:

```bash theme={null}
gemini mcp add baselayer https://api.baselayer.id/mcp
```

Once added, Gemini can use all BaseLayer tools.

### Verify

In a Gemini CLI session, try:

> "What do you know about me?"

Gemini should call `ask_question` and return knowledge from your memory.
