> ## 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.

# Claude Code

> Capture and recall with Claude Code.

# Claude Code Integration

BaseLayer works with Claude Code in two ways: **automatic capture** of your conversations, and **MCP recall** so Claude Code can search your memory.

## Capture (automatic)

The BaseLayer desktop app automatically detects Claude Code conversations via its IDE watcher. No setup needed, just make sure the desktop app is running.

Verify in **Settings → IDE Watchers**. You should see Claude Code listed.

## Recall (MCP setup)

To give Claude Code access to your memory, add BaseLayer as an MCP server:

```bash theme={null}
claude mcp add --transport sse baselayer https://api.baselayer.id/mcp
```

Once added, Claude Code can use all BaseLayer tools: `ask_question`, `record_memory`, `recent_conversations`, and more.

### Verify the connection

```bash theme={null}
claude mcp list
```

You should see `baselayer` listed.

Then in a Claude Code session, try:

> "What do you know about me?"

Claude Code should call `ask_question` and return knowledge from your memory.

## Both together

With both capture and recall active, Claude Code becomes a fully integrated part of your knowledge workflow:

1. Your Claude Code conversations are captured to your memory
2. Claude Code can search your memory for context from *all* your AI tools
3. Knowledge flows freely between Claude Code and every other connected tool
