Skip to Content
Bryfo Docsv0.2.1

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:

Capabilityself_hosted (Default)cloud
Quotas & BillingUnlimited local quotas, billing disabledMulti-tenant plans (USD & CNY) + dual-pool credit ledger
RegistrationInvite codes or OIDC Single Sign-OnOpen signup with 6-digit SMTP verification + Cloudflare Turnstile
Attachment StorageLocal disk (/data/blobs) or S3/R2 deduplicated blobsS3/R2 deduplicated blobs + > 2 MiB on-demand IMAP streaming
IMAP IDLE PushPersistent 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

  1. Calm Inbox Triage: Hold strangers in Screener, read newsletters in The Feed, catch up with twice-daily AI Briefs, and track unanswered outbound threads in Awaiting Reply.
  2. 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.
  3. Hybrid Search & Native /mcp: Reciprocal Rank Fusion (k=60) across pg_trgm trigram search and pgvector HNSW embeddings, indexing message bodies and local .pdf / Office / text attachments (<= 2 MiB), plus a built-in 12-tool MCP server.

On this page