Skip to content

de-otio/chaoskb

Repository files navigation

ChaosKB

A personal knowledge base for saving and searching web articles. All intelligence — content fetching, text extraction, chunking, embedding, searching, encryption — runs on your device. The server is an optional encrypted blob store for backup and multi-device sync.

How it works

  1. Save a URL (via chat agent, share sheet, or CLI)
  2. The client fetches, chunks, and embeds the article on-device
  3. Everything is encrypted before leaving the device
  4. Search your knowledge base with natural language — locally, instantly

Install

npm install -g @deotio/chaoskb-client
chaoskb-mcp setup

Clients

  • Desktop@deotio/chaoskb-client, an npm package that runs as an MCP server for any compatible chat agent (Claude Desktop, Claude Code, Cursor, VS Code, etc.)
  • Mobile (future) — Flutter app for iOS and Android

Key properties

Property Value
Privacy Server never sees plaintext — opaque ciphertext only
Offline Fully functional without a server
Search On-device embedding + brute-force cosine similarity (<50ms)
Encryption XChaCha20-Poly1305, HKDF-SHA256, Argon2id
Server cost ~$0.25/mo (DynamoDB + Lambda), or $0 in local-only mode

Security tiers

Tier Who it's for Recovery
Standard (default) Most users Automatic via account
Enhanced Privacy-conscious users 24-word recovery key
Maximum Journalists, activists, high-risk users Passphrase only

Standard tier uses client-side encryption with server-assisted recovery. Enhanced and Maximum are end-to-end encrypted — the server cannot access your data under any circumstances.

Self-hosting

Deploy your own backend with a single command:

npx chaoskb-deploy

This creates a Lambda Function URL + DynamoDB table in your AWS account. See self-hosting docs.

Documentation

User guide (doc/user/)

Admin guide (doc/admin/)

  • Deploy — deploy a self-hosted backend
  • Configure — CDK customizations, client config
  • Operations — monitoring, cost, API key rotation, backups
  • Tear down — remove the backend safely

Design (doc/design/)

Security

See SECURITY.md for the vulnerability disclosure policy and cryptographic dependencies.

License

MIT