Welcome to Bryfo
Overview of the privacy-first, AI-native email workspace for self-hosted teams and cloud users.
Bryfo brings all of your standard IMAP/SMTP, Gmail / Microsoft 365 (XOAUTH2), and custom-domain Stalwart v1.2.1 mailboxes into one fast, keyboard-first workspace โ without exposing raw personal data to external AI models.
Two Runtime Modes, One MIT Codebase
Bryfo ships as a single Go binary (cmd/bryfo) paired with a React 19 Progressive Web App, PostgreSQL 17 (pgvector), and Valkey 8 (Asynq). A single DEPLOYMENT_MODE flag selects the operational profile:
| Capability | self_hosted (Default) | cloud |
|---|---|---|
| Quotas & Billing | Unlimited local quotas, billing disabled | Multi-tenant plans (USD & CNY) + dual-pool credit ledger |
| Registration | Invite codes or OIDC Single Sign-On | Open signup with 6-digit SMTP verification + Cloudflare Turnstile |
| Attachment Storage | Local disk (/data/blobs) or S3/R2 deduplicated blobs | S3/R2 deduplicated blobs + > 2 MiB on-demand IMAP streaming |
IMAP IDLE Push | Persistent RFC 2177 IDLE (25-minute renewal) | Active-window tiered IDLE + background Asynq polling |
Outbound Network (netguard) | Optional LAN mail/Ollama endpoints (ForcePublicOnly on user BYOK) | Strict public-only egress across all sockets |
Core Pillars
- Calm Inbox Triage: Hold strangers in
Screener, read newsletters inThe Feed, catch up with twice-dailyAI Briefs, and track unanswered outbound threads inAwaiting Reply. - Bidirectional AI Privacy Shield: Every outbound prompt passes through 7 deterministic Go validators (
EMAIL,PHONE,ID_CARD,BANK_CARD,OTP,SECRET,IP) plus your personal regex rules before reaching any cloud model โ or use 0-credit BYOK. - Hybrid Search & Native
/mcp: Reciprocal Rank Fusion (k=60) acrosspg_trgmtrigram search andpgvectorHNSW embeddings, indexing message bodies and local.pdf/ Office / text attachments (<= 2 MiB), plus a built-in 12-tool MCP server.