# Security and data

One place for a security review of Repowise, with where code is read and stored per deployment, the GitHub App permissions, telemetry and the detailed pages.

Start here for a security review. This page shows where your code is read and
what is kept under each deployment, then links to the detailed page for each
question.

## Where code is read, per deployment

| | Local (open source) | Hosted | Your network (Enterprise) |
|---|---|---|---|
| Where code is read | From disk on your machine, parsed in memory | An isolated, short-lived container; the clone is deleted after every run, including failed runs | Inside your cloud, data center or air-gapped network |
| What is stored | The `.repowise/` index in the repository: graph, git metadata, documentation, decisions, health, embeddings. Never raw source | Data derived from the code (documentation, graph, git metadata, decisions, health, embeddings), isolated per account. Never raw source | The same index, on your infrastructure, under your controls |
| Model calls | Only when you turn on model-written documentation, chat or a semantic embedder, to your own provider with your key | Model features call Anthropic, OpenAI or Google Gemini models through Repowise's accounts | Your own provider contract, a local model, or none |
| What leaves your network | Anonymous usage telemetry (four off switches) | Your code goes to the hosted platform | Nothing: no telemetry, and an air-gapped install needs no outbound connection |

## The detailed pages

- [What leaves your network, per deployment](https://docs.repowise.dev/security): what is
  processed and what is persisted, the layers that need no model, bring your
  own key, offline mode, authentication on a shared server, and the questions
  a security team asks about self-hosted Repowise.
- [Hosted security and data handling](https://docs.repowise.dev/hosted/data-handling): how
  repowise.dev handles your source, what it keeps, when a model sees it,
  access control, retention and deletion.
- [Security suite (hosted product feature)](https://docs.repowise.dev/hosted/security): the
  scanner that checks *your* code. CVE-aware dependency scanning with
  reachability, secret detection across the full git history, SBOM and VEX
  export, and control-coverage reports.
- [Telemetry](https://docs.repowise.dev/reference/telemetry): every field the CLI sends, what it
  never sends, and how to turn it off.

## GitHub App permissions

Hosted uses two GitHub Apps, each installed on the repositories you choose.

| App | What it does | Permissions |
|---|---|---|
| [Repowise indexing app](https://github.com/apps/repowise-app/installations/new) | Reads private repositories so hosted can index them (paid plans) | Read-only repository access, through short-lived installation tokens |
| [Repowise PR bot](https://github.com/apps/repowise-bot/installations/new) | Posts the review comment and the `Repowise review` check on pull requests | Contents: Read, Pull requests: Write, Metadata: Read, Issues: Write (PR comments are issue comments), Checks: Write |

The PR bot's one-click [coverage setup](https://docs.repowise.dev/hosted/bot#coverage-setup)
opens a pull request that adds a workflow, so it also asks for Contents: Read
and write and Workflows: Read and write.

## Telemetry

The open-source CLI sends anonymous usage events: command and tool names,
flag names, status and timings. Never code, paths, repository names or flag
values. The first command prints a one-time notice ending
"Details: https://repowise.dev/telemetry". Any one of these turns it off:

```bash
repowise telemetry disable
export REPOWISE_TELEMETRY_DISABLED=1
export DO_NOT_TRACK=1
```

Print the exact payload without sending anything with
`REPOWISE_TELEMETRY_DEBUG=1 repowise status`. Enterprise installs ship with
telemetry off.

## Security review

Bring your questionnaire and a representative repository to a call. Security
questions and vulnerability reports go to
[security@repowise.dev](mailto:security@repowise.dev).

[Book a security review](https://cal.com/repowise-demo/30min?overlayCalendar=true)

## Next

- [What leaves your network](https://docs.repowise.dev/security) for the self-hosted detail.
- [Hosted security and data handling](https://docs.repowise.dev/hosted/data-handling) for repowise.dev.
- [Enterprise](https://docs.repowise.dev/enterprise) for a deployment inside your perimeter.
