packages/happy-server/README.md
Minimal backend for open-source end-to-end encrypted Claude Code clients.
Happy Server is the synchronization backbone for secure Claude Code clients. It enables multiple devices to share encrypted conversations while maintaining complete privacy - the server never sees your messages, only encrypted blobs it cannot read.
Your Claude Code clients generate encryption keys locally and use Happy Server as a secure relay. Messages are end-to-end encrypted before leaving your device. The server's job is simple: store encrypted blobs and sync them between your devices in real-time.
You don't need to self-host! Our free cloud Happy Server at happy-api.slopus.com is just as secure as running your own. Since all data is end-to-end encrypted before it reaches our servers, we literally cannot read your messages even if we wanted to. The encryption happens on your device, and only you have the keys.
That said, Happy Server is open source and self-hostable if you prefer running your own infrastructure. The security model is identical whether you use our servers or your own.
The standalone Docker image runs everything in a single container with no external dependencies (no Postgres, no Redis, no S3).
docker build -t happy-server -f Dockerfile .
Run from the monorepo root:
docker run -p 3005:3005 \
-e HANDY_MASTER_SECRET=<your-secret> \
-v happy-data:/data \
happy-server
This uses:
/data/pglite)/data/files)Data persists in the happy-data Docker volume across container restarts.
| Variable | Required | Default | Description |
|---|---|---|---|
HANDY_MASTER_SECRET | Yes | - | Master secret for auth/encryption |
PUBLIC_URL | No | http://localhost:3005 | Public base URL for file URLs sent to clients |
PORT | No | 3005 | Server port |
DATA_DIR | No | /data | Base data directory |
PGLITE_DIR | No | /data/pglite | PGlite database directory |
To use external Postgres or Redis instead of the embedded defaults, set:
| Variable | Description |
|---|---|
DATABASE_URL | PostgreSQL connection URL (bypasses PGlite) |
REDIS_URL | Redis connection URL |
S3_HOST | S3/MinIO host (bypasses local file storage) |
MIT - Use it, modify it, deploy it anywhere.