# How to Vibe Code Your Own Proton (and Stop Paying for It)

> Privacy by default

- Site: https://proton.me
- Category: Security & Privacy Ecosystem
- Platforms: Web app, macOS app, Windows app, Linux app, iOS app, Android app, Browser extension
- Verdict: **Don't bother** (12/100 vibecodeable)
- Estimated effort: 6+ months of full-time work

## Verdict

Keep paying for Proton — you cannot vibecode a multi-platform zero-knowledge ecosystem.

Proton is a massive suite of interdependent privacy-first services spanning native desktop apps, mobile clients, an encrypted email mailserver infrastructure, zero-knowledge file storage, and a global VPN network. An AI coding agent can scaffold a toy encrypted note app or a basic web wrapper, but recreating zero-access cryptography securely, managing mailserver IP reputation, and building cross-platform native clients is completely out of reach for a solo developer.

### What you can't replicate

- Swiss legal jurisdiction and zero-access server guarantees
- Global VPN infrastructure across 140+ countries with strict no-logs integrity
- Email delivery reputation and enterprise SMTP/IMAP relay infrastructure
- Audited open-source security models trusted by millions

## What it does

An ecosystem of privacy-focused, end-to-end and zero-access encrypted digital services designed as an alternative to Big Tech platforms.

### Core features

- Zero-knowledge client-side encryption and key management (PGP/AES)
- Secure encrypted email and calendar sync
- Encrypted cloud storage with chunked file sharing
- No-logs VPN tunnel routing and connection management
- Zero-access password manager with vault sync
- Confidential AI assistant with local/private model inference
- Cross-platform client applications (Web, Mobile, Desktop)

## The business

### Pricing

- Free: Free — Basic tiers of Mail, Drive, Pass, and VPN with limited storage and speeds.
- Mail Plus: €3.99/mo — Advanced features for everyday communications.
- Proton Unlimited: €9.99/mo — Full access to the personal ecosystem.

### Funding

€2M raised.
- Crowdfunded (2014)
- European Commission Horizon 2020 Grant (€2M, 2019)
Investors: Proton Foundation (Swiss non-profit), Employees, Early users

Founded 2014.
Team size: 500-600.

## The hard parts

- Implementing client-side zero-access cryptography without data lockouts or corruption
- Global VPN infrastructure orchestration across 140+ countries with strict no-logs verification
- High-deliverability SMTP/IMAP mail server infrastructure and spam filtering
- Multi-platform native synchronization with local encrypted caching across Web, iOS, Android, and Desktop

## How to vibe code Proton

### Prerequisites

- Node.js (free): Required for building the web dashboard and API tooling.
- GitHub (free): Source control repository hosting.
- Cursor ($20/mo): AI code editor for iterative full-stack development.

### Recommended AI tools

- Claude Code: Agentic coding tool for scaffolding complex full-stack components and cryptographic utility functions.
- Cursor: Best for editing frontend React views and reviewing zero-knowledge encryption modules.

### Stack

- Frontend: Next.js
- Backend: Next.js API Routes
- Database: Turso
- Auth: better-auth
- Payments: Stripe
- Other: OpenAI API, Resend, Tailwind CSS

### Hosting

- Cloudflare (Hosts the personal secure web dashboard and static assets at the edge.): $0-5/mo
- Railway (Runs backend Node processes and local relay services.): $5/mo

### Build guide

1. **Project Scaffolding & Database Setup** — Initialize a Next.js monorepo with Tailwind CSS and configure Turso for secure metadata storage.

```
Create a Next.js 16 project configured with TypeScript, Tailwind CSS 4, and App Router. Set up Turso client connectivity using libSQL for data persistence. Implement an initial database schema for user profiles, encrypted vault entries, and secure mail metadata tables. Ensure all database interactions strictly handle encrypted payloads without storing plaintext secrets.
```

2. **Client-Side Zero-Knowledge Encryption Module** — Build browser-based cryptographic utilities using Web Crypto API for client-side encryption and decryption.

```
Build a robust client-side encryption utility using the Web Crypto API (SubtleCrypto) supporting AES-GCM and PBKDF2 key derivation. Implement functions to derive a master key from a user passphrase, encrypt text and file blobs locally in the browser before transmission, and decrypt retrieved records securely in memory. Write comprehensive tests verifying that plaintext never touches the server.
```

3. **Authentication & Vault Management** — Integrate better-auth for user identity and build an encrypted password/note vault interface.

```
Integrate better-auth into the Next.js application for email/password authentication. Build a password manager vault interface where users can store credentials, secure notes, and TOTP secrets. Ensure all vault items are encrypted using the client-side encryption module from Step 2 prior to saving them to Turso.
```

4. **Encrypted Mail & Calendar Subset** — Develop a simplified web-based mail client supporting end-to-end encrypted message composing and reading.

```
Create a minimalist webmail interface with inbox, compose, and view screens. Implement PGP-style key management where messages between users are encrypted client-side using recipient public keys stored in the database. Include a basic calendar event scheduler that encrypts event titles and descriptions before database sync.
```

5. **Confidential AI Assistant Integration** — Connect a privacy-preserving AI chat assistant powered by OpenAI API with zero-logging local handling.

```
Build an AI chat assistant page ('Lumo AI clone') using the Vercel AI SDK. Connect it to an API route that proxies requests to the OpenAI API while ensuring chat histories are stored encrypted in the user's private vault or discarded post-session to mimic zero-access retention policies.
```

### Cost vs paying

**Starting costs (one-time):**

- Custom domain name: $12 one-time
- Total: ~$12 one-time

**Ongoing costs (monthly):**

- Cloudflare & Railway hosting: ~$8/mo
- OpenAI API credits: ~$5/mo
- Total: ~$13/mo

- Paying for the SaaS instead: €9.99/mo
- Build time: 120+ hours of frustration
- AI tool credits: $20/mo
- Break-even: Never (Proton is cheaper and functionally complete)

## Sources

- [Proton Official Website](https://proton.me)
- [Wikipedia: Proton AG](https://en.wikipedia.org/wiki/Proton_AG)