# Privacy & Architecture

Tipolink is built for repositories where source code privacy is mandatory. With **Zero Source-Code Upload**, your proprietary code never leaves your machine.

## How it works

| Layer | Where it runs | What it does |
| --- | --- | --- |
| Local Cloud Connector (`@tipolink/mcp`) | Your workstation or CI runner | Indexes your project structure locally on your machine (*Zero Source-Code Upload*) and sends only minimal structural metadata when files change. |
| Tipolink Cloud Engine | Tipolink servers, over HTTPS | Authenticates `TIPOLINK_API_KEY`, meters credits, and runs Impact Map, Helper Discovery, and Codebase Guard checks. |

## What leaves your machine

The connector sends only minimal structural metadata needed to map module relationships:

- module import and export links between files,
- exported symbol names and type signatures,
- opaque, non-reversible metadata used by Codebase Guard to detect duplicated utilities.

## What never leaves your machine

- raw source files and function implementations,
- comments, prompts, and string literal values,
- environment variables, credentials, and application secrets.

## Authentication and metering

Every request carries your `TIPOLINK_API_KEY` as a bearer token over HTTPS. Credits are metered transparently for each Cloud operation, and your balance and full usage ledger are always visible in the Console.

## Why a thin local connector

Processing files locally keeps your proprietary implementation private on your workstation while Tipolink Cloud delivers fast impact mapping, helper reuse, and automated guardrails across your repositories.
