Add LobeChat browser-local chat option (Duck.ai-style) to Tier 2 privacy design
This commit is contained in:
1 parent
c20302ce3d
commit
ef73e4f073
1 file changed
+40
-1
@@ -301,12 +301,51 @@ The privacy model should be designed in layers, each stronger than the last:
|
||||
- **No training on member data:** Models are pre-trained; member conversations are never used for fine-tuning
|
||||
- Sources: [Open WebUI security docs](https://docs.openwebui.com/enterprise/security/), [Open WebUI hardening guide](https://docs.openwebui.com/getting-started/advanced-topics/hardening/)
|
||||
|
||||
**Tier 2: Member-controlled retention**
|
||||
**Tier 2: Member-controlled retention + browser-local chat history**
|
||||
|
||||
Two complementary approaches:
|
||||
|
||||
*Option A: Open WebUI with server-side retention controls*
|
||||
- Members choose their own data retention: session-only, 7 days, 30 days, permanent
|
||||
- Session-only mode: conversations deleted when the session ends — no persistent storage at all
|
||||
- API access: no conversation logging for API users, only usage metering (token counts)
|
||||
- This requires a small configuration layer on top of Open WebUI's existing retention settings
|
||||
|
||||
*Option B: LobeChat in browser-local mode (Duck.ai-style)*
|
||||
|
||||
**LobeChat** is the better architecture for the Duck.ai approach. It has two deployment modes:
|
||||
- **Standalone/Lite mode:** All conversations stored in browser's IndexedDB. No server-side database. Chat history never leaves the user's device. This is exactly the Duck.ai model.
|
||||
- **Database mode:** PostgreSQL server-side storage with multi-user support for when persistence/sync is needed.
|
||||
|
||||
LobeChat features relevant to inference.coop:
|
||||
- **Browser-local storage:** IndexedDB — conversations stay on the user's device, not on cooperative servers
|
||||
- **CRDT-based sync:** Experimental multi-device sync using Conflict-Free Replicated Data Types — no central server needed
|
||||
- **Multi-provider support:** Connect to Ollama, vLLM, OpenAI, Anthropic, OpenRouter from one interface
|
||||
- **OpenAI-compatible:** Points at any OpenAI-compatible API endpoint — works with our inference backend
|
||||
- **Plugin system:** Extensible with web search, data tools, MCP (Model Context Protocol)
|
||||
- **PWA:** Works as a Progressive Web App on mobile and desktop
|
||||
- **MIT licensed, self-hostable, Docker deployment**
|
||||
- 55K+ GitHub stars
|
||||
|
||||
This means members can use LobeChat in standalone mode pointed at inference.coop's API endpoint — their chat history lives only in their browser, the cooperative never stores conversation content, and the cooperative's servers only see transient inference requests.
|
||||
|
||||
**Duck.ai's architecture** (for reference):
|
||||
- Chat history stored locally in browser by default — no server-side storage
|
||||
- Optional "Sync & Backup" uses end-to-end encrypted server storage (DuckDuckGo never holds decryption keys)
|
||||
- 18-month automatic deletion for synced chats not accessed
|
||||
- Up to 100 recent conversations stored locally
|
||||
- Notably, Duck.ai now uses **Tinfoil.sh** to host some models — the same TEE-based confidential inference platform relevant to our Tier 3 design
|
||||
- Sources: [DuckDuckGo help: recent chats](https://duckduckgo.com/duckduckgo-help-pages/duckai/recent-chats), [DuckDuckGo help: AI chat privacy](https://duckduckgo.com/duckduckgo-help-pages/duckai/ai-chat-privacy), [Factually.co: Duck.ai storage analysis](https://factually.co/fact-checks/technology/duck-ai-data-storage-fire-button-delete-chat-history-23ba86)
|
||||
|
||||
**Recommendation:** Offer both interfaces:
|
||||
- **Open WebUI** for members who want server-side chat history (with retention controls) and multi-user features
|
||||
- **LobeChat in standalone mode** for members who want Duck.ai-style browser-local privacy
|
||||
|
||||
Both point at the same inference API. Members choose their privacy posture by choosing their frontend.
|
||||
|
||||
- [LobeChat](https://github.com/lobehub/lobe-chat) — 55K+ stars, MIT license, browser-local mode
|
||||
- [LobeChat docs: local database](https://lobehub.com/docs/self-hosting/advanced/server-database)
|
||||
|
||||
**Tier 3: Encrypted inference via TEEs (Confer.to model)**
|
||||
|
||||
This is where it gets interesting — and where Confer.to's architecture becomes directly relevant.
|
||||
|
||||
Reference in new issue
Block a user