---
title: Claude Code
description: Record Claude Code sessions from every laptop.
---

**What it records.** Every conversation a person has with Claude Code on the laptop: prompts, replies, the model used, tool calls, and token counts.

**How.** The collector registers with Claude Code's managed settings so Claude Code calls it after each turn. It reads the turn from Claude Code's own session file and passes it to the scanner.

## Before you begin

- You have the **Owner** or **Admin** role.
- Claude Code is installed on at least one enrolled laptop, so you can confirm a session arrives.

## Turn it on

1. **Open Extensions**

    Under **Endpoint Extensions**, find **Claude Code**.

2. **Click the switch**

    You see "Claude Code discovery enabled".

3. **Check**

    Within 15 minutes, laptops activate the collector. The next Claude Code conversation appears on the [Sessions](/surface/sessions/review) page with **Claude Code** as the source.

## On the laptop

`sudo surface extension list` shows `claude` as installed. `sudo surface logs --extension claude` shows its activity.

## Turn it off

Click the switch again. Laptops remove the hook on their next scan.

## Next steps

- [Review sessions](/surface/sessions/review) to open a trace or transcript
- [AI usage](/surface/sessions/ai-usage) for cost and top adopters
- [Codex](/surface/extensions/endpoint/prompt-collectors/codex) to record another tool
