How it works

Sci installs two small background services and wires Claude Code to route through them. Nothing about the setup depends on a remote server.

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”    HTTPS_PROXY=:3001    β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”   anonymized    β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚ Claude Code β”‚ ──────────────────────► β”‚  sci-helper  β”‚ ──────────────► β”‚ Anthropic β”‚
β”‚  (your Mac) β”‚ ◄────────────────────── β”‚   (:3001)    β”‚ ◄────────────── β”‚           β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜    deanonymized reply   β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜   real reply    β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
       β”‚                                        β”‚
       β”‚ MCP (memory tools)                     β”‚ local store
       β–Ό                                        β–Ό
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”                         β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚ com.sci.    β”‚                         β”‚  SQLite +    β”‚
β”‚ agent :8080 β”‚                         β”‚  local embed β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜                         β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

The request lifecycle

  1. Intercept. During install, Claude Code’s HTTPS_PROXY is set to http://127.0.0.1:3001. Every call it makes to api.anthropic.com is routed to the local proxy first.
  2. Terminate TLS locally. sci-helper holds a CA certificate that you trust in your macOS Keychain during install. That lets it read the request on your machine β€” and only on your machine β€” to do its work.
  3. Anonymize. It scans the outbound request for PII and substitutes placeholder tokens, recording the mapping in memory locally.
  4. Forward untouched auth. Whatever credentials Claude Code attached β€” an OAuth bearer token from your Claude subscription, or an x-api-key β€” are passed straight through. Sci doesn’t store or inspect them.
  5. Deanonymize. Anthropic streams its reply back through sci-helper, which restores your real values before Claude Code renders the response. The round trip is invisible to you.

The pieces

What leaves your machine β€” and what doesn’t

Leaves your machineStays local
The anonymized request to Anthropic (tokens, not PII)Your name, email, and the token↔value map
Your existing Claude Code auth, forwarded unchangedYour memory store (SQLite)
Embedding computation
The CA private key

The trust model

You’re trusting a local CA certificate so the proxy can see your own traffic on your own machine β€” the same mechanism corporate proxies and debugging tools like mitmproxy use, scoped to you. The certificate’s private key never leaves ~/.sci. You can inspect, distrust, or remove it from Keychain Access at any time.


For the deeper technical reference β€” the anonymization pipeline, hybrid retrieval, and storage adapters β€” see the technical docs.