# Codra Privacy Policy

> How Codra collects, uses, and protects information when you use the self-hosted code review Service.

Canonical: https://codra.run/privacy
Last updated: 2026-11-01

Welcome to Codra. This Privacy Policy explains how Codra ("we", "us", or "our") collects, uses, and discloses information about you when you visit our website at `codra.run`, use our services (such as our CLA signing flow), or run self-hosted instances of the Codra software.

## 1. Information We Collect

### A. Telemetry from Self-Hosted Instances
By default, the self-hosted Codra software sends anonymous, aggregate telemetry back to our servers at `codra.run`. This helps us understand how the project is being used and how we can improve it. 

**What we collect:**
* A randomly generated, per-instance identifier.
* Aggregate job statistics: lines/files reviewed, number of findings, token usage, models used, file extensions reviewed, trigger types, job durations, verdicts, and severity distribution of findings.

**What we DO NOT collect:**
* Your source code or diffs.
* Repository names or organization-identifying information.
* Usernames, API keys, or any other personally identifiable information.

*Note: Telemetry is designed to track aggregate usage trends, not content. Operators can opt out at any time by setting the `TELEMETRY_DISABLED` environment variable (see "Your Choices" below).*

### B. Information You Provide to Us
* **Mailing List:** If you voluntarily opt-in to receive release and security updates via the Codra dashboard, we collect your email address. 
* **CLA Signing:** When you sign the Contributor License Agreement (CLA) at `codra.run/cla`, we collect information associated with your GitHub account (such as your GitHub username) and your signature to maintain a record of authorized contributions.
* **Direct Communication:** If you contact us via email (e.g., `me@devarshi.dev`) for support or security disclosures, we collect your email address and any content you include in the message.

### C. Website Visitors
When you visit `codra.run`, we may automatically collect basic technical information, such as your IP address, browser type, operating system, referring URLs, and page views, to ensure the reliable operation of our website.

## 2. How We Use Your Information

We use the information we collect to:
* **Improve Codra:** Telemetry data helps us understand model usage patterns, system performance, and feature adoption to guide future development.
* **Communicate with You:** We use your email address (if provided) to send you important release notes, security advisories, and project updates. We promise not to spam you.
* **Manage Contributions:** CLA data is used strictly to verify that pull requests meet our legal requirements for contribution and dual-licensing.
* **Security and Support:** To respond to your security reports or support inquiries.

## 3. How We Share Your Information

We do not sell, rent, or trade your personal information. We may share information only in the following limited circumstances:
* **Service Providers:** We may use third-party services (like hosting providers or email delivery services) to help operate our infrastructure.
* **Legal Compliance:** We may disclose your information if required by law, subpoena, or other legal process, or to protect the rights, property, and safety of Codra, our users, or others.
* **Aggregate/De-identified Data:** We may share anonymous, aggregate telemetry statistics publicly or with partners (e.g., "X million lines of code reviewed by Codra this month").

## 4. Security

We take reasonable measures to help protect your information from loss, theft, misuse, unauthorized access, disclosure, alteration, and destruction. However, no internet transmission or electronic storage is 100% secure, so we cannot guarantee absolute security.

## 5. Your Choices
* **Email Updates:** You can unsubscribe from our release/security emails at any time by following the instructions in the email or contacting us directly.
* **Telemetry:** Telemetry is optional. Set the `TELEMETRY_DISABLED` environment variable to `true` on your self-hosted instance to disable it completely — no instance identifier is generated and nothing is sent. As Codra is open-source software (AGPL-3.0), operators are also free to inspect the telemetry implementation themselves.

## 6. Changes to this Privacy Policy

We may update this Privacy Policy from time to time. If we make material changes, we will notify you by updating the date at the top of the policy and, in some cases, we may provide additional notice (such as an email or a banner on our website).

## 7. Contact Us

If you have any questions about this Privacy Policy or our data practices, please contact us at:
**Email:** me@devarshi.dev
