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

# Privacy & Data Safety

> How auto-sop protects your code — captures never leave your machine, your own Claude does the learning, and cloud only gets previews.

# Privacy & Data Safety

auto-sop is built on three privacy principles. Understanding them takes 60 seconds.

## The three principles

<CardGroup cols={3}>
  <Card title="Captures never leave your machine" icon="lock">
    Raw tool-call captures, session transcripts, and your source code stay local. Always. No exceptions.
  </Card>

  <Card title="Your own Claude does the learning" icon="brain">
    LLM analysis runs through your existing Claude Max subscription. auto-sop adds \$0 in LLM costs — you're already paying for Claude.
  </Card>

  <Card title="Cloud only gets previews + stats" icon="cloud">
    The server receives the first 10 words of each directive and aggregate statistics. Nothing else.
  </Card>
</CardGroup>

## What stays local

Everything sensitive lives on your machine and never touches a server:

| Data               | Storage location                                           |
| ------------------ | ---------------------------------------------------------- |
| **Raw captures**   | `.auto-sop/captures/` — complete tool-call transcripts     |
| **Full CLAUDE.md** | Your project root — the entire directive file              |
| **Learner state**  | `.auto-sop/learner/` — pattern candidates and analysis     |
| **Session data**   | `.auto-sop/sessions/` — session metadata and logs          |
| **Source code**    | Your filesystem — auto-sop never reads or transmits source |
| **Error logs**     | `.auto-sop/errors.jsonl` — local error history             |

<Warning>
  auto-sop **never** reads your source code. It only captures Claude Code tool calls and their outcomes — the same data Claude Code already processes locally.
</Warning>

## What syncs to the cloud

Cloud sync is available on **all plans** and is always opt-in via `auto-sop install --license <key>`. The Free plan syncs stats and project data for 1 project. The Pro plan adds directive sync and unlimited projects.

When cloud sync is active, the server receives:

| Data                      | Example                                                              |
| ------------------------- | -------------------------------------------------------------------- |
| **Directive previews**    | First 10 words: *"Always use the dedicated Read tool instead of..."* |
| **Aggregate statistics**  | Tokens saved: 12,450. Errors prevented: 23.                          |
| **Project slug**          | `my-project` (directory name only)                                   |
| **Directive fire counts** | `sop-70ad`: 7 fires                                                  |

<Info>
  Directive previews are truncated to **exactly 10 words** before leaving your machine. The full directive text is never transmitted.
</Info>

## Free tier — minimal cloud footprint

On the free plan with a license key, auto-sop communicates only:

* **License validation** — periodic key check (encrypted)
* **Stats sync** — aggregate metrics (tokens saved, errors prevented) for 1 project
* **Project binding** — project slug and machine ID

No directive content is synced on the free plan (directive sync is Pro only). Without a license key, auto-sop operates fully offline with zero network requests.

## Source-available — Elastic License 2.0

auto-sop is source-available under the [Elastic License 2.0 (ELv2)](https://github.com/auto-sop/auto-sop). You can audit the source code to verify these privacy claims:

* The hook shim that captures tool calls
* The learner that analyzes patterns
* The sync module that sends previews to the cloud
* The managed-section writer that updates CLAUDE.md

<Tip>
  Don't trust, verify. The entire capture and sync pipeline is in the open-source repository. Search for `syncStats` to see exactly what leaves your machine.
</Tip>

## Data flow diagram

```
Your machine (always local)          Cloud (opt-in via license key)
─────────────────────────────        ─────────────────────────────
Claude Code session
  └─ Hook captures tool calls
       └─ Raw captures stored locally
            └─ Learner analyzes patterns
                 └─ Directives written to CLAUDE.md
                      └─ Stats sync ─────────────► Aggregate stats (all plans)
                                                   Project slug (all plans)
                                                   10-word previews (Pro only)
                                                   Directive fires (Pro only)
                                                        │
                                                        ▼
                                                   Dashboard displays
```

## Questions?

See the [FAQ](/docs/docs/faq) for common privacy questions, or [open an issue](https://github.com/auto-sop/auto-sop/issues) on GitHub.
