Security & Privacy
Your code never leaves your machine. That's not a policy — it's the architecture.
The Short Version
- ✓No cloud servers. Broski connects your phone directly to your own computer. We don't operate servers that touch your code.
- ✓No telemetry. Zero analytics libraries. No Firebase, no Mixpanel, no Sentry, no Amplitude. We literally cannot see what you do.
- ✓No data collection. Your conversations, code, files, and terminal output stay between your phone and your system. Period.
- ✓Encrypted everything. Noise end-to-end encryption between your phone and your Mac, on the local network and through a relay.
- ✓You run the server. The bridge runs on your machine, in your terminal. You can inspect every line of traffic.
Zero-Cloud Architecture
Unlike cloud-based coding tools that route your code through remote servers, Broski is peer-to-peer. Your phone talks directly to your computer — nothing in between.
The bridge server runs in your terminal on your own machine. It translates between your phone and the AI agent (Claude Code or Pi) running locally. At no point does any of this traffic pass through a Broski-operated server.
Where Your Data Lives
Here's exactly what goes where. No vague language, no footnotes.
Stays on Your Computer (never leaves)
- •Your source code and project files
- •Session history and AI conversation logs
- •Terminal output and command history
- •Your API keys and credentials (in the OS keychain (macOS Keychain, Windows Credential Manager, or Linux keyring) or local config files)
- •Broski Link identity key and the list of paired phones
- •The local hook token and loopback TLS certificate (self-signed, generated locally)
Stays on Your Phone (encrypted on-device)
- •Pairing data and encryption keys (in iOS Keychain / Android EncryptedSharedPreferences)
- •Cached sessions and messages (for offline viewing)
- •UI preferences (themes, settings)
- •Voice API keys if you configure voice input (stored encrypted, sent only to provider you chose)
Sent to AI Providers (same as terminal usage)
- •Your prompts and questions to the AI
- •Code snippets the AI reads (only what the agent requests)
- •File contents needed for context
This is handled by the AI agent (Claude Code, Pi) on your system — exactly the same data that would be sent if you used the agent directly in your terminal. Broski doesn't add anything extra.
What Broski Never Sees
- •Your source code or project files
- •Your conversations with AI
- •Your API keys or credentials
- •Your file system or network traffic
- •Any usage data, analytics, or behavioral metrics
Encryption
Every connection between your phone and your computer is end-to-end encrypted, whichever route it takes:
| Route | Encryption | How It Works |
|---|---|---|
| Local network | Noise end-to-end | Hybrid X25519 + ML-KEM-768 handshake with your Mac, pinned to the fingerprint from the QR code. |
| Relay | Noise end-to-end | The same Noise session runs inside the relay connection. The relay forwards ciphertext and cannot decrypt it. |
Machine Fingerprint
When you scan the QR code, your phone learns your Mac's fingerprint. On pairing the phone checks that the machine it reaches matches that fingerprint, and every later connection is made to that same machine. If someone tries to intercept the connection, the handshake fails and the app refuses to connect.
This means even on a compromised WiFi network (coffee shop, hotel, airport), or through a relay you do not control, your connection is secure.
Pairing & Authentication
Only phones you paired can connect. Here's how it works:
One-Time Pairing Secret
- • The pairing QR carries a 32-byte random secret and your Mac's fingerprint
- • It expires after 10 minutes
- • It works once; the next pairing needs a new QR
- • A wrong secret fails the handshake before any data is exchanged
Per-Device Keys
Each phone has its own key, created on the phone. Your Mac keeps the list of paired phones (see broski-link devices) and only accepts those. Remove a phone at any time with broski-link revoke.
broski-link pair again: a new QR replaces the old one.Filesystem Protection
The bridge restricts which files and directories can be accessed through the mobile app:
- •Allowlist-based access — Only your home directory and common project paths are accessible. Paths outside the allowlist are blocked.
- •Symlink protection — Symbolic links are resolved and re-checked against the allowlist, preventing directory traversal attacks.
- •Path validation — Null bytes, control characters, and excessively long paths are rejected before any file operation.
- •Text-only reads — The file browser only serves text content. Binary files are blocked.
- •Size limits — Large files are truncated to prevent memory exhaustion.
Zero Telemetry
We don't mean “minimal telemetry” or “anonymous analytics.” We mean zero. None. The app and bridge contain:
If the app crashes, we don't know about it unless you email us. If you use a feature 1000 times a day, we have no idea. This is by design — we built a developer tool, not a data product.
Third-Party Services
Broski uses exactly two external services. Here's what they do and what they can see:
Authentication (Google / Apple Sign-In)
Standard OAuth 2.0 identity verification. We use this to know who you are for subscription management.
| Receives | Does NOT Receive |
|---|---|
| Your name and email | Your code or projects |
| OAuth identity token | Your conversations |
| Your API keys | |
| Any app usage data |
No subscription backend
Broski is free and open source. There is no RevenueCat, Stripe, or cloud billing service.
On-Device Storage Security
Sensitive data on your phone is stored using platform-native encrypted storage:
| Platform | Storage Method | Encryption |
|---|---|---|
| iOS | Keychain Services | Hardware-backed (Secure Enclave on supported devices) |
| Android | EncryptedSharedPreferences | AES-256 (Android Keystore system) |
Your pairing data, cached credentials, and voice API keys are stored in this encrypted storage. UI preferences and cached session data also use this encrypted layer.
On your system, the bridge stores its local hook token and loopback TLS certificate in ~/.broski/, and Broski Link stores its identity key and the list of paired phones in ~/.broski/link/, all with restricted file permissions (owner read/write only). Your AI agent's credentials stay in their own secure storage (the OS keychain (macOS Keychain or Linux keyring) for Claude Code, ~/.pi/agent/auth.json for Pi).
Network Security
Local Network
On the same network, your phone connects straight to broski-link on your Mac. The connection is a Noise handshake pinned to the fingerprint from the QR code, so someone sniffing or spoofing WiFi traffic sees only encrypted data and cannot impersonate your Mac.
Relay
Away from home, your phone and Mac both connect out to a relay. The relay forwards opaque encrypted frames. It sees ids, connection timing, message sizes and notification metadata, and it never has the keys to read your traffic. Nothing is exposed publicly and no inbound port needs to be opened.
The Bridge Is Not on the Network
The bridge listens on a local Unix socket for broski-link and on 127.0.0.1 (loopback only, TLS with a local bearer token) for agent hooks, the dashboard and dev-server previews. There's no configuration that exposes the bridge to your LAN.
Input Validation & Hardening
The bridge validates every message from the mobile app before processing:
- •Prototype pollution protection — All incoming payloads are checked for prototype poisoning keys and rejected if found.
- •Type enforcement — String values are validated to be actual strings before use.
- •Message size limits — Large payloads are rejected to prevent resource exhaustion.
- •Log redaction — Tokens, passwords, API keys, and secrets are automatically redacted from bridge logs.
Permission System
When the AI wants to perform a potentially dangerous action (running a shell command, editing a file, deleting something), you see the request on your phone and explicitly approve or deny it. Nothing happens without your consent.
You can configure permission levels in Settings:
| Preset | Behavior |
|---|---|
| Ask Everything | Approve every tool call individually (safest) |
| Ask Code Changes | Auto-approve reads, ask for writes and commands |
| Trust Me | Auto-approve most actions (for experienced users) |
| Custom | Define your own rules per tool and per path pattern |
Permission rules are stored locally on your phone and sent to the bridge for enforcement. They're never uploaded anywhere.
How This Compares
Most developer tools collect some amount of data. Here's how Broski's approach is different:
| Aspect | Typical Dev Tool | Broski |
|---|---|---|
| Architecture | Cloud-hosted backend | Peer-to-peer (your devices only) |
| Code access | Code passes through vendor servers | Code never leaves your machine |
| Analytics | Usage tracking, session recordings | Zero analytics, zero tracking |
| Crash reporting | Automatic error reporting | None (email us if something breaks) |
| Data storage | Vendor databases | Your device only (encrypted) |
| Server trust | Trust the vendor's infrastructure | You run the server yourself |
Verify It Yourself
You don't have to take our word for it. The bridge runs on your machine, and you can verify everything:
- •Inspect network traffic — Use Wireshark or Charles Proxy. You'll see encrypted WebSocket frames between your phone and your system, and nothing going to any Broski endpoint.
- •Run the doctor —
broski doctorruns 30+ diagnostics including loopback TLS cert validity, hook token status, port bindings, and daemon health. - •Check DNS queries — Monitor outgoing DNS.
broski-linkonly connects to the relay you configured, if any.
Quick Answers
“Can Broski read my code?”
Broski the company? No. The Broski app on your phone? Only what you explicitly open in the file browser or what the AI agent sends during a session. All of this stays between your phone and your system.
“What if someone finds my bridge on the network?”
Nothing, because the bridge is not on the network. It listens on your machine's loopback interface and a local socket only. The only network-facing process is broski-link, and it only completes an encrypted handshake with phones you paired. An unpaired device cannot get past it.
“Do you sell data?”
We don't have data to sell. We don't collect analytics, we don't track usage, we don't store conversations.
“Is there a Broski subscription?”
No. Broski is free and open source. Pairing data stays on your phone and your machine.
“How do I delete everything?”
Phone: Settings > Clear Cache removes all cached data. Uninstalling removes everything.
System: Delete ~/.broski to remove all bridge data (hook token, certificates, config, link state).
That's it. There's nothing on our end to delete because we never had it.