# Data and privacy (https://docs.ctxpipe.ai/docs/resources/data-processing)

This page is about **hosted ctxpipe**. On a self-hosted deployment, you choose
the providers and the retention. The model calls go from your deployment to the
provider that you configure. The ctxpipe team never sees your prompts or your
model traffic.

## What ctxpipe reads

* The git repositories that you link to a Workspace, and the Workspace
  repository itself.
* The content of the sources that you add. This is:

  * Linear, Notion, Confluence, PagerDuty, Buildkite, and Plain mirrors.
  * The issues and closed pull requests of linked GitHub repositories.
  * The Slack threads that a person captures.

  ctxpipe writes this content into the Workspace repository, which you control.
  Then it indexes the content.

ctxpipe reads nothing that you did not connect.

## What you control

* You create each Workspace, link each repository, and approve each source scope
  in a pull request. ctxpipe ingests nothing without one of these actions.
* ctxpipe writes only to Workspace repositories. It never writes to your code
  repositories. See
  [What ctxpipe writes](/docs/workspaces#what-ctxpipe-writes).
* You can unlink a repository, remove a source, or delete a Workspace at any
  time. This stops new indexing. The indexed data can stay until the deletion
  process of your organization is complete.
  [Get in touch](/docs/getting-started/get-in-touch) for the details.
* The data of your organization is separate from the data of other
  organizations.
* If you stop using ctxpipe, your Workspace repositories stay with you, with
  their full history.

## Sub-processors

| Provider                             | Purpose                                                                                                                                                                                                                                                                                           |
| ------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Amazon Web Services (AWS), us-west-2 | Compute and hosting, the Postgres database, storage, logs, and traces. Traces, which may hold prompt text, are kept 30 days. Isolated sandboxes (microVMs) for Workspace chat and for ingestion. A sandbox holds a copy of the Workspace repository, or of the linked repository that it ingests. |
| Cloudflare                           | The edge network: DNS, TLS, the proxy that each request to ctxpipe passes through, the tunnels to AWS, and Access for our internal tools                                                                                                                                                          |
| OpenRouter                           | Model routing, only to zero data retention endpoints                                                                                                                                                                                                                                              |
| Anthropic                            | AI assistants used by the ctxpipe team for engineering operations; may process production logs and traces, outside OpenRouter, so zero data retention does not apply                                                                                                                              |
| OpenAI                               | AI assistants used by the ctxpipe team for engineering operations; may process production logs and traces, outside OpenRouter, so zero data retention does not apply                                                                                                                              |

## How ctxpipe uses models

* **Workspace chat.** Your messages, and the context that the agent retrieves
  (search results, file excerpts, and graph context), go to the model. See
  [Where the agent runs](/docs/workspaces/chat#where-the-agent-runs).
* **Ingestion.** ctxpipe uses models to extract knowledge from parts of the
  linked repositories, in a sandbox with a closed network. See
  [Where extraction runs](/docs/workspaces/indexing#where-extraction-runs).
* **MCP tools.** The tools search and read your data. They do not write an
  answer. `search_knowledge` and `get_related` send the query text to an
  embedding model. If that call fails, the default retrieval path searches full
  text only. ctxpipe can turn on the knowledge plane, a newer retrieval path,
  for an organization. When it is on, both tools also send the query, and the
  title, passages, dates, status, and source type of each document that they
  rank, to a ranking model. `get_related` also embeds a question built from the
  seed paths. Your coding agent uses its own model.

ctxpipe does not send a whole repository to a model in one request. Retrieval
and tools select the context.

On hosted ctxpipe, each model call goes through OpenRouter to
[zero data retention (ZDR)](https://openrouter.ai/docs/guides/features/zdr)
endpoints only. Our OpenRouter account enforces this, so the model providers do
not store your prompts or train on them. See the
[OpenRouter privacy policy](https://openrouter.ai/privacy).

## Retention

We do not publish fixed retention periods for indexed data yet. One exception:
ctxpipe deletes the sandbox files of a Workspace chat conversation when its
sandbox stops, 5 minutes after the last use of the conversation. The branch of
the conversation in your repository stays. For deletion times, export, or a DPA,
[get in touch](/docs/getting-started/get-in-touch).

## What we do not do

* We do not train models on your content.
* We do not share data across organizations, and we do not sell it. The
  sub-processors above only operate the product.
* We do not ingest sources that you did not connect.

## Certifications

SOC 2 and ISO 27001 for ctxpipe are on the roadmap. Our infrastructure
sub-processors publish their own compliance and security documents.

For questions about your data, sub-processors, or contracts,
[get in touch](/docs/getting-started/get-in-touch).
